Documentation
¶
Overview ¶
Package mcp implements a minimal stdio JSON-RPC 2.0 server that exposes read-only db-catalyst tools to AI agents via the Model Context Protocol (MCP).
Framing ¶
The server uses newline-delimited JSON: each request and each response is a single JSON object followed by a newline character ('\n'). There is no Content-Length header framing. Clients must send one complete JSON object per line and must read complete lines from the server.
Tools ¶
- schema_list – returns a summary of all tables and their columns.
- query_check – validates + types a single SQL statement using the static analyzer and the SQLite verify oracle; returns columns and diagnostics.
- query_preview – returns a preview of the generated Go method signature and row struct derived from a SQL statement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.