This repository was archived by the owner on Jan 21, 2026. It is now read-only.
Repository navigation
v0.4.0
This release changes how clients handle server capabilities during initialization. Instead of requiring users to define server capabilities when creating a client, which proved impractical in real-world usage where MCP hosts often lack compile-time knowledge of server capabilities, the client can now connect to any server and dynamically check for desired capabilities. This is implemented through new methods like PromptServerSupported and ResourceServerSupported, allowing runtime verification of specific server features.
Added
- Added
PromptServerSupported,ResourceServerSupported,ToolServerSupported, andLoggingServerSupportedmethods toClientstruct to check if the server supports specific features. - Added more tests for
mcppackage.
Removed
ServerRequirementfor creating a new client.