Skip to main content

Module mcp

Module mcp 

Source
Expand description

The MCP-mapped store (RFC 0025 §4.1): the four store operations are tools/calls against a declared MCP server, with argument templates and result extraction from store.mcp.{put,get,list,delete}. The default mapping is the RFC 0021 §8.3 checkpointer profile (state.put/get/list, state.delete), so a server advertising those tools needs no mapping.

Every call carries _meta["agent/idempotency_key"] = "<key>#<seq>" and _meta["agent/instance"], and is bounded by the store timeout.

Structs§

McpStore

Traits§

McpCall
The one thing the adapter needs from a connected server: tools/call with per-call _meta and a timeout. Implemented by crate::mcp::client::McpClient and by test doubles.

Functions§

default_ops
The default checkpointer profile (RFC 0021 §8.3 + state.delete).
result_ctx
The extraction context for a tool result: structuredContent (or the text content parsed as JSON), isError, text, content.