surinch-db-guard-mcp

v0.3.0
io.github.inchTodd/surinch-db-guard-mcp Checked 2 days ago Published 9 days ago

Local-first DDL/ALTER lock gate, SQL readonly guard & PII masking MCP with SHA-256 receipts.

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

ddl_governance_check

Score CREATE TABLE / ALTER TABLE DDL (MySQL/PostgreSQL/Doris) across 5 weighted governance dimensions plus ALTER TABLE lock-risk detection, with SHA-256 verifiable receipt. Rejects empty/invalid input, unparsed statements, invalid config, or unsupported dialect.

ParameterTypeDescription
ddl *stringSanitized CREATE TABLE / ALTER TABLE DDL text (no production credentials or row data).
configobjectOptional enterprise rule config (.surinchrc.json object): disabledRules, severityOverrides, customSensitivePatterns. File paths are forbidden over MCP.
dialectstring

sql_readonly_review

Allowlist-first static readonly safety gate, ALTER TABLE lock-risk detector, and anti-pattern reviewer for MySQL/PostgreSQL SQL with SHA-256 verifiable receipt. Blocks non-readonly statements, DO blocks, data-modifying CTEs, SELECT INTO, side-effect functions, and EXPLAIN ANALYZE.

ParameterTypeDescription
sql *stringSQL statement(s) to review.
configobjectOptional enterprise rule config (.surinchrc.json object): disabledRules, severityOverrides, customSensitivePatterns. File paths are forbidden over MCP.
dialectstring

sensitive_masking_scan

Metadata-only sensitive column classifier (L4/L3/L2 + custom enterprise patterns) & schema-aware masking VIEW SQL generator for MySQL/PostgreSQL/Doris DDL with SHA-256 verifiable receipt. Never reads row data.

ParameterTypeDescription
ddl *stringCREATE TABLE DDL metadata text (schema-only, no sample row values).
configobjectOptional enterprise rule config (.surinchrc.json object): disabledRules, severityOverrides, customSensitivePatterns. File paths are forbidden over MCP.
dialectstring
replaceViewbooleanEmit CREATE OR REPLACE VIEW instead of safe default CREATE VIEW.
viewPrefixstringPrefix for generated masking VIEW names (alphanumeric + underscore).