Vigil

v0.10.1
io.github.LevapVeeskela/vigil Checked 13 hours ago Published 15 days ago

Local-first security auditor: 263 deterministic rules, LLM triage, fixes and MCP tools

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

vigil_scan Scan a repository with Vigil

Run Vigil's deterministic security rules over a repository or directory, optionally with model triage, deep review and a threat model. Returns a text summary and the full scan result as structuredContent. Scanned code is treated as data, never executed.

ParameterTypeDescription
baseRefstringGit ref to diff against when changedOnly is set (default HEAD).
changedOnlybooleanScan only files changed against baseRef (requires a git repository).
deepReviewbooleanRun the LLM deep review over high-risk files (requires a model).
diffstringUnified diff to scan instead of the working tree. Overrides changedOnly.
disableRulesarraySkip these rule IDs.
excludearrayGlob patterns to exclude in addition to the project defaults.
includearrayGlob patterns to include in addition to the project defaults.
maxFindingsintegerMaximum findings to return (default 50, capped at 500).
minSeveritystringMinimum severity to report.
modestringScan depth. All modes run the deterministic rules; quick is the fastest LLM budget, standard is the default, deep adds an LLM deep review when a model is configured.
noBaselinebooleanIgnore the baseline and report suppressed findings as active.
onlyRulesarrayRun only these rule IDs (for example VGL-SEC-001).
pathstringDirectory or repository to scan. Defaults to the server's project root.
threatModelbooleanAlso generate an LLM threat model and attach it to the result (requires a model).
useLlmbooleanUse the configured model. Omit to use the server default; false forces deterministic rules only.

vigil_review Review changed lines with Vigil

Scan only the added lines of a diff: the working-tree changes against a git ref, or a unified diff supplied by the client. Returns a text summary and the full scan result.

ParameterTypeDescription
baseRefstringGit ref to diff against (default HEAD).
changedOnlybooleanReview only changed files. Defaults to true; ignored when diff is supplied.
diffstringUnified diff to review. When omitted, changed files are read from git.
pathstringDirectory or repository to review. Defaults to the server's project root.
useLlmbooleanUse the configured model for triage. Omit to use the server default.

vigil_dependencies Audit dependency advisories with Vigil

Read dependency manifests and lockfiles, query the public OSV.dev database for the exact versions found and report known public advisories. Returns a text summary and the inventory, findings, coverage errors and limitations as structuredContent. Read-only: no package manager runs, no writes and no telemetry.

ParameterTypeDescription
includeDevbooleanAlso query dev dependencies. Defaults to true.
maxPackagesintegerMaximum distinct packages to query (default 200, capped at 1000).
osvBaseUrlstringOverride the OSV API root. Defaults to https://api.osv.dev; must be https, or http on a loopback host (127.0.0.1, ::1, localhost). Credentials in the URL are refused.
pathstringDirectory or repository to audit. Defaults to the server's project root.

vigil_hardening Review anti-reverse-engineering hardening

Run only the anti-RE hardening rules (VGL-ARE-*): release minification, debug signing, debuggable builds, backup and cleartext settings, plist transport exceptions, release obfuscation, Electron/Node isolation, inspector flags and production source maps. Reports hardening gaps, not vulnerabilities. Optionally narrow the review to one platform. Returns a text summary grouped by platform and the full scan result as structuredContent.

ParameterTypeDescription
maxFindingsintegerMaximum findings to return (default 50, capped at 500).
minSeveritystringMinimum severity to report.
noBaselinebooleanIgnore the baseline and report suppressed findings as active.
pathstringMobile or desktop project to review. Defaults to the server's project root.
platformstringOnly report findings for this platform. Defaults to all.

vigil_mcp_audit Audit MCP server configuration

Run only the MCP configuration rules (VGL-MCP-*): unpinned server packages, literal secrets in env/headers/args, cleartext remote endpoints, disabled TLS verification, dangerous mounts, auto-approval and prompt-injection surfaces. Reads .mcp.json, mcp.json, mcp-config.json, claude_desktop_config.json, opencode.json[c], *.mcp.json and YAML variants; with includeUser it also reads known home-directory configs. Deterministic and offline: no configured server is started, no endpoint is contacted and nothing is written. Returns a text summary and the full audit result as structuredContent.

ParameterTypeDescription
includeUserbooleanAlso read known user-level MCP configs under the home directory.
maxFindingsintegerMaximum findings to return (default 50, capped at 500).
minSeveritystringMinimum severity to report.
pathstringDirectory to audit. Defaults to the server's project root; the resolved path must stay inside it.

vigil_explain Explain a Vigil finding

Explain one finding: what the rule detected, why it matters, an exploit scenario and the remediation direction. Uses the configured model when available; otherwise returns the deterministic rule description and remediation.

ParameterTypeDescription
findingId *stringFinding ID (VGL-...), fingerprint (fp_...) or a unique prefix.
scanIdstringScan to look in. Defaults to the most recent scan.

vigil_fix Propose or apply a fix for a Vigil finding

Ask the configured model for a validated unified diff that fixes one finding. With apply=false (the default) nothing is written; with apply=true the diff is applied to the working tree and never committed.

ParameterTypeDescription
findingId *stringFinding ID (VGL-...), fingerprint (fp_...) or a unique prefix.
applybooleanApply the proposed diff to the working tree. Defaults to false (dry run).
scanIdstringScan to look in. Defaults to the most recent scan.

vigil_threat_model Generate a threat model with Vigil

Ask the configured model for a repository threat model: assets, trust boundaries, entry points and the most likely attack paths. Requires a model.

ParameterTypeDescription
pathstringDirectory to model. Must match the server's project root; defaults to it.

vigil_status Show Vigil status

Report the engine version, project root, model configuration (with the key redacted), rule count, categories, store directory, the last scan summary and startup warnings.

vigil_rules List Vigil detection rules

List the deterministic detection rules with their severity, category, languages and title. Optionally filter by category, language, severity or a free-text query.

ParameterTypeDescription
categorystringOnly rules in this category.
languagestringOnly rules that apply to this language (for example go, python, javascript, yaml). Generic rules are included.
querystringCase-insensitive text matched against the ID, title, description, tags, CWE and OWASP fields.
severitystringOnly rules with this base severity.

vigil_baseline Manage the Vigil suppression baseline

List, add, remove or clear accepted findings in the project baseline. Adding requires a finding ID and a reason; removed entries stop being suppressed on the next scan.

ParameterTypeDescription
actionstringBaseline operation. Defaults to list.
findingIdstringFinding ID (VGL-...), fingerprint (fp_...) or a unique prefix. Required for add and remove.
reasonstringWhy the finding is accepted. Required for add.
scanIdstringScan to resolve the finding in. Defaults to the most recent scan.

vigil_report Render a Vigil scan report

Render a stored scan as Markdown, JSON, SARIF or HTML. Without path the report is returned as text; with path it is written inside the app root and the absolute path is returned.

ParameterTypeDescription
formatstringReport format. Defaults to md.
pathstringRelative path inside the app root to write the report to (for example reports/vigil.md).
scanIdstringScan to render. Defaults to the most recent scan.

vigil_verify Verify that a Vigil finding is gone

Re-scan the finding's file (or explicit paths) with the deterministic rules and report whether the same fingerprint is still present. Useful after a fix.

ParameterTypeDescription
findingId *stringFinding ID (VGL-...), fingerprint (fp_...) or a unique prefix.
pathsarrayFiles to re-scan, relative to the scan root. Defaults to the finding's file.
scanIdstringScan the finding belongs to. Defaults to the most recent scan.

vigil_history List stored Vigil scans

List the most recent stored scans with their finding, critical and high counts. Scan IDs can be passed to vigil_explain, vigil_fix, vigil_report and vigil_verify.

ParameterTypeDescription
limitintegerMaximum number of scans to list (default 10, capped at 100).