db-gateway

v0.7.1
io.github.GuardBee/db-gateway Checked 3 hours ago Published 1 month ago

KVKK/GDPR-compliant LLM-to-database gateway: PII masking, RBAC, rate limiting, audit log

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

query_table

Query rows from a database table with optional filters. All results pass through the KVKK/GDPR gateway — sensitive fields are automatically masked.

ParameterTypeDescription
table *stringTable name to query
filterobjectKey-value filter pairs, e.g. { status: 'active' }
limitintegerMax rows to fetch before gateway limit is applied (default 50)

list_tables

List all available database tables. Tables marked as 'deny' in gateway policy are omitted.

describe_table

Get the column names and gateway masking policy for a table — helps the LLM understand what data it can access.

ParameterTypeDescription
table *stringTable name

query_audit_log

Query the gateway's own audit log — inspect which tools were called, on which tables, whether they were allowed or denied (and why), and which fields were redacted/written. Covers events since this server process started; count is capped by the gateway's audit.bufferSize (default 200).

ParameterTypeDescription
deniedOnlybooleanOnly return calls the gateway denied/blocked
limitintegerMax events to return, most recent first (default 50)
operationstringFilter by operation type
sincestringISO 8601 timestamp — only events at or after this time
tablestringFilter by table name
toolstringFilter by MCP tool name, e.g. 'query_table', 'update_row'

gateway_status

Show the active gateway configuration: field masking rules, table policies, and audit settings.