Contribution Guide¶
Thank you for your interest in contributing to Litestar MCP! This guide will help you get started.
Development Setup¶
Clone the repository:
git clone https://github.com/litestar-org/litestar-mcp.git
cd litestar-mcp
Install development dependencies:
make install
Running Tests¶
# Run tests and the coverage gate
make test
make coverage
# Run the pinned MCP 2026-07-28 conformance framework
make conformance
# Run specific test
uv run --python 3.10 pytest tests/unit/test_plugin.py
The Makefile pins conformance to Node.js 24.18.1. If nodenv is
installed, the target selects it with NODENV_VERSION without requiring a
tracked .node-version file. Otherwise, it uses the active Node.js runtime.
The npm dependency itself is locked in package-lock.json.
Code Quality¶
We use several tools to maintain code quality:
make lint
make check-all
Building Documentation¶
make docs
make validate-examples
make validate-uvx
make validate-pep723
Pull Request Guidelines¶
Fork and Branch: Create a feature branch from main
Test Coverage: Ensure new code has appropriate tests
Documentation: Update docs for new features
Commit Messages: Use clear, descriptive commit messages
Pull Request: Create a PR with a clear description
Code Style¶
Follow PEP 8
Use type hints for all public APIs
Write docstrings for all public functions/classes
Keep line length to 120 characters
Issue Guidelines¶
When reporting bugs or requesting features:
Check existing issues first
Provide minimal reproduction code
Include environment details
Be specific about expected vs actual behavior
Community¶
Discord: Join the Litestar Discord server
GitHub Discussions: For questions and ideas
GitHub Issues: For bugs and feature requests