-
This release includes several major improvements to the SDK architecture, adds example servers, and improves type safety throughout the codebase.
发布于
2024-11-13 14:50:36 +00:00 | 965 次提交 在此版本后已推送到 main-
Added example servers demonstrating common use cases:
simple-prompt: Example server exposing a customizable prompt templatesimple-resource: Example server exposing sample text files as resourcessimple-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
- New
-
Minimum supported Python version is now explicitly set to 3.10
-
Removed re-exported types from
mcp.server- clients should now import directly frommcp.types -
Removed helper types from
mcp.server.typesin favor of using spec types directly frommcp.types -
Renamed
mcp.server.typestomcp.server.modelswith 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
pip install mcp==0.8.0For more information, please see the documentation.
下载附件
-