Skip to main content

Module mcp

Module mcp 

Source
Expand description

MCP (Model Context Protocol) agent gateway.

When [mcp] enabled = true, the proxy exposes a native MCP server so AI agents call structured, policy-gated tools (query, list_tables, explain) instead of opening raw SQL connections. This is the AI-data- plane differentiator: every tool call goes through one auditable surface and a read-only-by-default guardrail, and runs over the proxy’s backend PG-wire client so it is backend-agnostic (PostgreSQL or HeliosDB-Nano).

Transport: JSON-RPC 2.0 over HTTP POST (the simplest MCP transport; an SSE/Streamable-HTTP upgrade is a follow-on). Methods implemented: initialize, notifications/initialized, ping, tools/list, tools/call.

Structs§

McpServer
The MCP gateway server.