Skip to main content

Module mcp_receipt

Module mcp_receipt 

Source
Expand description

Receipt recording and honest accounting for MCP tool calls.

Structs§

McpReceipt
Receipt for a single MCP tool call.
ToolSavings
Per-tool savings summary.

Functions§

mcp_accounting
Returns honest accounting aggregated across all MCP receipts.
per_tool_savings
Returns per-tool savings sorted by tool name.
record_receipt
Stores an MCP receipt and updates its per-tool aggregate.
reset_receipts
Clears all recorded MCP receipts and aggregates.
savings_report
Formats a deterministic per-tool savings summary.
total_kernel_overhead
Returns the total token overhead added by the kernel.