Contributing
Contributing
Section titled “Contributing”Thank you for your interest in improving UV-MCP. We follow standard open-source practices and use uv for all development workflows.
Development Setup
Section titled “Development Setup”1. Fork and Clone
Section titled “1. Fork and Clone”Fork the repository to your GitHub account, then clone it locally:
git clone https://github.com/YOUR_USERNAME/uv-mcp.gitcd uv-mcp2. Initialize Environment
Section titled “2. Initialize Environment”Use uv to sync dependencies and set up the development virtual environment:
uv syncThis command reads pyproject.toml and installs all necessary dependencies, including dev tools like pytest.
Testing
Section titled “Testing”We prioritize reliability. Ensure all tests pass before submitting changes.
Run All Tests
Section titled “Run All Tests”Execute the full test suite:
uv run pytestTargeted Testing
Section titled “Targeted Testing”To test specific components (e.g., tool definitions):
uv run python test_tools.pyWorkflow for New Features
Section titled “Workflow for New Features”- Branching: Create a feature branch (
feat/new-toolorfix/bug-fix). - Implementation:
- Add core logic to
actions.pyordiagnostics.py. - Expose the new capability in
server.pyusing the@mcp.tool()decorator.
- Add core logic to
- Documentation: Update
src/content/docs/reference/tools.mdwith the new API signature. - Verification: Add a corresponding test case in
tests/.
Code Standards
Section titled “Code Standards”- Type Safety: All function signatures must include Python type hints.
- Formatting: We adhere to PEP 8.
- Docstrings: Public functions must include clear docstrings describing parameters and return values.
Submitting a Pull Request
Section titled “Submitting a Pull Request”- Push your branch to your fork.
- Open a Pull Request against the
mainbranch of the upstream repository. - Provide a clear description of the problem solved and the solution implemented.