lintbase-mcp

v0.1.3
io.github.Madia333/lintbase-mcp Checked 20 hours ago Published 9 months ago

Real-time Firestore schema context for AI coding agents.

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

lintbase_scan LintBase Full Scan

Runs a full LintBase scan against a Firestore database. Detects schema drift, security issues, performance problems, and cost leaks. Returns a structured report with a risk score and actionable issues. Use this before writing any database-related code to get ground-truth schema context.

ParameterTypeDescription
keyPath *stringAbsolute or relative path to the Firebase service account JSON file.
collectionsarrayOptional list of collection names to scan. Omit to scan all collections.
sampleSizeintegerMax documents to sample per collection (default: 50, max: 500).

lintbase_get_schema LintBase Get Schema

Returns the ground-truth schema of your Firestore collections by sampling real documents. For each collection you get field names, observed types, and presence rates. Use this BEFORE writing any database code to avoid hallucinating field names. Stable fields (≥80% presence, single type) are safe to use. Fields marked with a note need attention (drift, sparse, or optional).

ParameterTypeDescription
keyPath *stringAbsolute or relative path to the Firebase service account JSON file.
collectionstringName of a single collection to inspect. Omit to get the schema of ALL collections.
sampleSizeintegerMax documents to sample per collection (default: 50).

lintbase_get_issues LintBase Get Issues

Runs all LintBase analyzers and returns a filtered list of issues. Use this for targeted questions like "any errors in users?", "schema issues only?", or "all security problems?". Lighter than lintbase_scan — returns only actionable issues, no summary metadata. Filter by severity (error/warning/info), collection name, or rule prefix (schema/, security/, perf/, cost/).

ParameterTypeDescription
keyPath *stringAbsolute or relative path to the Firebase service account JSON file.
collectionstringFilter to a single collection name. Omit to scan all collections.
rulestringFilter by rule prefix, e.g. "schema/" returns only schema drift issues, "security/" only security issues.
sampleSizeintegerMax documents to sample per collection (default: 50).
severitystringFilter by severity. Omit to return all severities.