InProcessTransport

Direct, in-process access to a ToolRegistry — no JSON-RPC, no network. Intended for on-device LLMs that call tools straight from the same process. Mirrors the surface an MCP client gets over HttpTransport (list + call) without the protocol envelope.

Constructors

Link copied to clipboard
constructor(registry: ToolRegistry)

Functions

Link copied to clipboard
suspend fun callTool(name: String, params: Map<String, Any>): ToolResult
Link copied to clipboard

The registered tools as live McpTool instances.

Link copied to clipboard

The registered tools serialised to a JSON array, each entry carrying name, description, and a parameters JSON Schema (type: object with properties and a required list). For LLM runtimes that want the tool catalogue as a string.