π The fast, Pythonic way to build MCP servers and clients.
Merge branch 'main' into tests_coverage
Alain IVARScc6ecca416b9
diff --cc README.mdindex 21db5ea16,b2ea78658..6b74ad960--- a/README.md+++ b/README.md@@@ -704,82 -320,59 +320,63 @@@ See the [**Server Documentation**](http## Contributing- Contributions make the open-source community vibrant! We welcome improvements and features.-- <details>-- <summary><h3>Open Developer Guide</h3></summary>+ Contributions are the core of open source! We welcome improvements and features.- #### Prerequisites+ ### Prerequisites* Python 3.10+- * [uv](https://docs.astral.sh/uv/)+ * [uv](https://docs.astral.sh/uv/) (Recommended for environment management)- #### Setup+ ### Setup- 1. Clone: `git clone https://github.com/jlowin/fastmcp.git && cd fastmcp`- 2. Install Env & Dependencies: `uv venv && uv sync` (Activate the `.venv` after creation)+ 1. Clone the repository:+ ```bash+ git clone https://github.com/jlowin/fastmcp.git+ cd fastmcp+ ```+ 2. Create and sync the environment:+ ```bash+ uv sync+ ```+ This installs all dependencies, including dev tools.++ 3. Activate the virtual environment (e.g., `source .venv/bin/activate` or via your IDE).- #### Testing+ ### Unit Tests- Run the test suite:+ FastMCP has a comprehensive unit test suite. All PRs must introduce or update tests as appropriate and pass the full suite.++ Run tests using pytest:```bash- uv run --frozen pytest -vv+ pytest```+or if you want an overview of the code coverage+```bash+uv run pytest --cov=src --cov=examples --cov-report=html+```- #### Formatting & Linting+ ### Static Checks- We use `ruff` via `pre-commit`.- 1. Install hooks: `pre-commit install`- 2. Run checks: `pre-commit run --all-files`+ FastMCP uses `pre-commit` for code formatting, linting, and type-checking. All PRs must pass these checks (they run automatically in CI).- #### Pull Requests+ Install the hooks locally:+ ```bash+ uv run pre-commit install+ ```+ The hooks will now run automatically on `git commit`. You can also run them manually at any time:+ ```bash+ pre-commit run --all-files+ # or via uv+ uv run pre-commit run --all-files+ ```- 1. Fork the repository.- 2. Create a feature branch.- 3. Make changes, commit, and push to your fork.- 4. Open a pull request against the `main` branch of `jlowin/fastmcp`.+ ### Pull Requests- Please open an issue or discussion for questions or suggestions!+ 1. Fork the repository on GitHub.+ 2. Create a feature branch from `main`.+ 3. Make your changes, including tests and documentation updates.+ 4. Ensure tests and pre-commit hooks pass.+ 5. Commit your changes and push to your fork.+ 6. Open a pull request against the `main` branch of `jlowin/fastmcp`.- </details>+ Please open an issue or discussion for questions or suggestions before starting significant work!