Package-level declarations

Types

Link copied to clipboard
interface McpProtocol

JSON-RPC 2.0 request handler for the MCP surface (initialize, tools/list, tools/call, ping). Transports feed raw request strings in and write the returned response string back. The default implementation is McpProtocolImpl.

Link copied to clipboard
class McpProtocolImpl(registry: ToolRegistry, serverName: String = "droid-mcp", serverVersion: String = DROID_MCP_VERSION, readOnly: Boolean = false, auditSink: AuditSink? = null) : McpProtocol

The default McpProtocol implementation: a JSON-RPC 2.0 handler over a ToolRegistry. Services initialize, tools/list, tools/call, ping, and notifications/initialized. Malformed input yields a -32700 parse error and an unknown method a -32601; the handler never throws back to the transport.