haltsql-mcp

v0.0.2
haltsql-mcp Checked 2 days ago Published 24 days ago

MCP server that runs LLM-written SQL on PostgreSQL only after HaltSQL allows it

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

query

Run one read-only SQL query on PostgreSQL. HaltSQL verifies it against the policy for your tenant first; if allowed, the exact SQL runs with server-bound $n parameters and rows are returned (capped). If denied, the result has allowed=false and reasons with hints; fix the SQL and retry.

ParameterTypeDescription
sql *string

explain_denial

Check SQL against the HaltSQL policy without running it and return every reason code, message, and hint, plus the tables and columns it touches.

ParameterTypeDescription
sql *string

list_tables

List the tables and columns the policy lets you read, and which are tenant-scoped.

describe_policy

Describe the active HaltSQL policy: name, version, mode, allowed statements, LIMIT rule, tenancy mode, tables, and functions.