Thank you for your interest in contributing to OpenPlugin!
- Clone the repository:
git clone https://github.com/yourusername/openplugin
cd openplugin- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -e ".[dev]"pytestWe use:
blackfor code formattingrufffor lintingmypyfor type checking
Run checks:
black openplugin/
ruff check openplugin/
mypy openplugin/- Create a new file in
openplugin/providers/(e.g.,anthropic_provider.py) - Implement the
LLMProviderinterface - Add conversion logic for MCP tools to provider format
- Export in
openplugin/providers/__init__.py - Add tests
- Update documentation
- Create an issue to discuss the feature
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Update documentation
- Submit a pull request
To test your plugin:
- Place it in the
plugins/directory - Use the example script to test:
python examples/basic_usage.pyOpen an issue or start a discussion!