Module server

Module server 

Source
Expand description

MCP JSON-RPC server (transport-agnostic)

This module implements the MCP JSON-RPC method dispatch layer while remaining transport-agnostic. CLI/GUI crates can host this server over STDIO, HTTP/SSE, or any other transport by forwarding JSON-RPC requests into McpServer.

Structs§

JsonRpcError
JSON-RPC error payload.
JsonRpcRequest
JSON-RPC request structure.
JsonRpcResponse
JSON-RPC response structure.
McpRequestContext
Context passed into tool/resource handlers.
McpServer
Transport-agnostic MCP JSON-RPC server.

Traits§

McpResourceHandler
Handler for an MCP resource.
McpToolHandler
Handler for an MCP tool.