Documentation
¶
Overview ¶
Package mcp implements RiskKernel's MCP gateway: a JSON-RPC reverse proxy that sits in front of an upstream MCP server and governs tools/call. Every other MCP method is forwarded transparently; tools/call is intercepted to enforce a per-tool allowlist, route side-effecting tools through the deterministic approval gate, and record an auditable tool_call. Point your MCP client at this gateway instead of the real server — the governance is invisible to allowed, approved calls.
Index ¶
Constants ¶
const HeaderRunID = "X-RiskKernel-Run-Id"
HeaderRunID groups MCP calls into a governed run (same header as the proxy).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway governs MCP tools/call in front of an upstream MCP server.
type Middleware ¶
type Middleware func(http.HandlerFunc) http.HandlerFunc
Middleware wraps a handler (e.g. with auth).