Skip to main content

Module audit

Module audit 

Source
Expand description

Per-tool audit for external MCP servers served over the HTTP gateway.

A client-mediated tools/call to an external provider has no backend process to record it, so the gateway taps the forwarded request/response and writes one mcp_tool_executions row under the calling user. record composes the tap over the upstream body; the tap owns an McpAudit and finalizes it (once) on stream EOF or drop.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Modules§

jsonrpc
Minimal JSON-RPC / MCP frame parsing for the tool-call audit tap.
tap
Observe-while-forwarding tap that captures an external MCP tool-call result.

Structs§

McpAudit