Module protocol

Module protocol 

Source
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§

CallToolRequest
MCP tool call request
CallToolResult
MCP tool call result
InitializeResult
MCP initialize result
InputSchema
JSON Schema for tool input
JsonRpcError
JSON-RPC error
JsonRpcRequest
JSON-RPC request
JsonRpcResponse
JSON-RPC response
Notification
MCP notification
Prompt
MCP prompt definition
PromptArgument
Prompt argument definition
PromptsCapability
PropertySchema
Property schema definition
Resource
MCP resource definition
ResourceContent
Resource content
ResourcesCapability
ServerCapabilities
MCP server capabilities
ServerInfo
MCP server info
Tool
MCP tool definition
ToolsCapability

Enums§

Content
Content item in tool result
RequestId
JSON-RPC request ID

Constants§

JSONRPC_VERSION
JSON-RPC version constant
MCP_VERSION
MCP protocol version