Skip to main content

Module mcp_bridge

Module mcp_bridge 

Source
Expand description

Unified integration between MCP clients and the context kernel.

Structs§

McpCallData
Data for a single MCP tool call, used to record ETPAO metrics.
McpClientInfo
Information about the MCP client, extracted from the initialize handshake.
McpKernelResult
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.