Development Guide
This guide will help you set up your development environment and contribute to mcp_use.Prerequisites
- Python 3.11 or higher
- Git
- Node.js and npm (for MCP server dependencies)
Setting Up Development Environment
- Clone the repository:
- Install development dependencies:
- Install pre-commit hooks:
Code Style
mcp_use uses Ruff for code formatting and linting. The project follows these style guidelines:- Use type hints for all function parameters and return values
- Follow PEP 8 style guide
- Use docstrings for all public functions and classes
- Keep functions focused and single-purpose
Running Tests
The project uses pytest for testing. To run the test suite:Documentation
Documentation is written in MDX format and uses Mintlify for rendering. To preview documentation changes:- Install Mintlify CLI:
- Run the development server:
Contributing
- Create a new branch for your feature:
- Make your changes and commit them:
- Push your changes and create a pull request: