Expand description
MCP protocol types and message handling
Implements the Model Context Protocol specification for communication between AI assistants and context servers.
Modules§
- error_
codes - Standard JSON-RPC error codes
Structs§
- Call
Tool Request - MCP tool call request
- Call
Tool Result - MCP tool call result
- Initialize
Result - MCP initialize result
- Input
Schema - JSON Schema for tool input
- Json
RpcError - JSON-RPC error
- Json
RpcRequest - JSON-RPC request
- Json
RpcResponse - JSON-RPC response
- Notification
- MCP notification
- Prompt
- MCP prompt definition
- Prompt
Argument - Prompt argument definition
- Prompts
Capability - Property
Schema - Property schema definition
- Resource
- MCP resource definition
- Resource
Content - Resource content
- Resources
Capability - Server
Capabilities - MCP server capabilities
- Server
Info - MCP server info
- Tool
- MCP tool definition
- Tools
Capability
Enums§
Constants§
- JSONRPC_
VERSION - JSON-RPC version constant
- MCP_
VERSION - MCP protocol version