Expand description
Unified integration between MCP clients and the context kernel.
Structs§
- McpCall
Data - Data for a single MCP tool call, used to record ETPAO metrics.
- McpClient
Info - Information about the MCP client, extracted from the initialize handshake.
- McpKernel
Result - Result of kernel processing for an MCP client session.
- McpSummary
- Aggregate MCP metrics summary.
Functions§
- generate_
mcp_ receipt - Generate a ContextReceiptV1 from completed MCP tool call data.
- mcp_
etpao - Returns the current MCP effective-tokens-per-accepted-outcome value.
- mcp_
summary - Returns aggregate metrics for all MCP calls recorded in this process.
- process_
mcp_ context - Processes an MCP initialize handshake into kernel policy and budget data.
- record_
mcp_ call - Records token usage, inferred outcome, and session identity for an MCP call.
- reset_
mcp_ state - Clears process-wide MCP metrics and identity state.