Expand description
Capability flags for MCP clients and servers.
Capabilities are negotiated during the initialization handshake. They determine what features are available in the session.
Structs§
- Client
Capabilities - Client capabilities advertised during initialization.
- Client
Info - Client information provided during initialization.
- Completion
Capability - Completion capability flags.
- Elicitation
Capability - Elicitation capability flags.
- Initialize
Request - Initialize request parameters.
- Initialize
Result - Initialize response.
- Initialized
Notification - Initialized notification (sent by client after receiving initialize result).
- Logging
Capability - Logging capability flags.
- Ping
Request - Ping request for keep-alive.
- Ping
Result - Ping response.
- Prompt
Capability - Prompt capability flags.
- Resource
Capability - Resource capability flags.
- Roots
Capability - Roots capability flags.
- Sampling
Capability - Sampling capability flags.
- Server
Capabilities - Server capabilities advertised during initialization.
- Server
Info - Server information provided during initialization.
- Task
Capability - Task capability flags.
- Tool
Capability - Tool capability flags.
Enums§
- Version
Negotiation Result - Protocol version negotiation result.
Constants§
- PROTOCOL_
VERSION - The latest protocol version supported by this implementation.
- SUPPORTED_
PROTOCOL_ VERSIONS - All protocol versions supported by this implementation.
Functions§
- is_
version_ supported - Check if a protocol version is supported by this implementation.
- negotiate_
version - Negotiate a protocol version between client and server.
- negotiate_
version_ detailed - Perform version negotiation and return detailed result.