This release includes several major improvements to the SDK architect…
…ure, adds example servers, and improves type safety throughout the codebase.
- Added example servers demonstrating common use cases:
- `simple-prompt`: Example server exposing a customizable prompt template
- `simple-resource`: Example server exposing sample text files as resources
- `simple-tool`: Example server implementing a website fetching tool
- Added client capability checking:
- New `check_client_capability()` method to verify specific capabilities
- Store client parameters from initialization request
- Improved type safety for capability verification
- Minimum supported Python version is now explicitly set to 3.10
- Removed re-exported types from `mcp.server` - clients should now import directly from `mcp.types`
- Removed helper types from `mcp.server.types` in favor of using spec types directly from `mcp.types`
- Renamed `mcp.server.types` to `mcp.server.models` with minimal required types
- More explicit type safety with `RequestContext[ServerSession]` return type
- Simplified server architecture by reducing abstraction layers
- Improved package infrastructure with PyPI release workflow
- Added GitHub Actions workflows for releases and checks
- Added README files for all example servers
- Improved main package documentation
- Updated installation instructions to reflect new package name
- @dsp-ant (David Soria Parra)
None
```bash
pip install mcp==0.8.0
```
For more information, please see the [documentation](https://github.com/modelcontextprotocol/python-sdk).