Expand description
MCP Protocol Type Definitions
Defines the core types for the Model Context Protocol (MCP). Based on the MCP specification: https://spec.modelcontextprotocol.io/
Structs§
- Call
Tool Params - Call tool params
- Call
Tool Result - Call tool result
- Client
Capabilities - Client capabilities
- Client
Info - Client info
- Initialize
Params - Initialize request params
- Initialize
Result - Initialize result
- Json
RpcError - JSON-RPC error
- Json
RpcNotification - JSON-RPC notification (no id)
- Json
RpcRequest - JSON-RPC request
- Json
RpcResponse - JSON-RPC response
- List
Prompts Result - List prompts result
- List
Resources Result - List resources result
- List
Tools Result - List tools result
- Logging
Capability - McpPrompt
- MCP prompt definition
- McpResource
- MCP resource definition
- McpServer
Config - MCP server configuration
- McpTool
- MCP tool definition
- OAuth
Config - OAuth configuration
- Prompt
Argument - Prompt argument
- Prompts
Capability - Read
Resource Params - Read resource params
- Read
Resource Result - Read resource result
- Resource
Content - Resource content
- Resources
Capability - Roots
Capability - Sampling
Capability - Server
Capabilities - Server capabilities
- Server
Info - Server info
- Tools
Capability
Enums§
- McpNotification
- MCP notification types
- McpTransport
Config - Transport configuration
- Tool
Content - Tool content types
Constants§
- PROTOCOL_
VERSION - MCP protocol version