Module server

Module server 

Source
Expand description

MCP server setup and lifecycle.

Implements a JSON-RPC based MCP server over stdio or HTTP transport.

Structsยง

JsonRpcError ๐Ÿ”’
JSON-RPC error.
JsonRpcRequest ๐Ÿ”’
JSON-RPC request.
JsonRpcResponse ๐Ÿ”’
JSON-RPC response.
McpServer
MCP server for subcog.

Enumsยง

Transport
Transport type for the MCP server.

Constantsยง

PROTOCOL_VERSION ๐Ÿ”’
MCP protocol version.
SERVER_NAME ๐Ÿ”’
Server name.

Type Aliasesยง

DispatchResult ๐Ÿ”’
Result type for method dispatch.