Smith::MCP
JSON-RPC 2.0 over a line-delimited byte stream — the framing half of MCP.
Kept free of any knowledge about tools or servers so the transport can be swapped for an in-memory pair in the specs: the concurrency this file makes possible is the part worth testing, and testing it must not need a real process.
Constants
PROTOCOL_VERSION = "2024-11-05"
The revision smith speaks. A server that answers with a different one is not rejected — the spec asks clients to carry on if they can.
Nested types
- Smith::MCP::Client
- Smith::MCP::ConnectionError
- Smith::MCP::Error
- Smith::MCP::Manager
- Smith::MCP::Message
- Smith::MCP::Protocol
- Smith::MCP::RpcError
- Smith::MCP::ServerConfig
- Smith::MCP::ServerHandle
- Smith::MCP::ServerSpec
- Smith::MCP::StdioTransport
- Smith::MCP::TimeoutError
- Smith::MCP::ToolDefinition
- Smith::MCP::ToolResult
- Smith::MCP::Transport