Vigil
v0.10.1Local-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.
| Parameter | Type | Description |
|---|---|---|
baseRef | string | Git ref to diff against when changedOnly is set (default HEAD). |
changedOnly | boolean | Scan only files changed against baseRef (requires a git repository). |
deepReview | boolean | Run the LLM deep review over high-risk files (requires a model). |
diff | string | Unified diff to scan instead of the working tree. Overrides changedOnly. |
disableRules | array | Skip these rule IDs. |
exclude | array | Glob patterns to exclude in addition to the project defaults. |
include | array | Glob patterns to include in addition to the project defaults. |
maxFindings | integer | Maximum findings to return (default 50, capped at 500). |
minSeverity | string | Minimum severity to report. |
mode | string | Scan 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. |
noBaseline | boolean | Ignore the baseline and report suppressed findings as active. |
onlyRules | array | Run only these rule IDs (for example VGL-SEC-001). |
path | string | Directory or repository to scan. Defaults to the server's project root. |
threatModel | boolean | Also generate an LLM threat model and attach it to the result (requires a model). |
useLlm | boolean | Use 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.
| Parameter | Type | Description |
|---|---|---|
baseRef | string | Git ref to diff against (default HEAD). |
changedOnly | boolean | Review only changed files. Defaults to true; ignored when diff is supplied. |
diff | string | Unified diff to review. When omitted, changed files are read from git. |
path | string | Directory or repository to review. Defaults to the server's project root. |
useLlm | boolean | Use 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.
| Parameter | Type | Description |
|---|---|---|
includeDev | boolean | Also query dev dependencies. Defaults to true. |
maxPackages | integer | Maximum distinct packages to query (default 200, capped at 1000). |
osvBaseUrl | string | Override 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. |
path | string | Directory 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.
| Parameter | Type | Description |
|---|---|---|
maxFindings | integer | Maximum findings to return (default 50, capped at 500). |
minSeverity | string | Minimum severity to report. |
noBaseline | boolean | Ignore the baseline and report suppressed findings as active. |
path | string | Mobile or desktop project to review. Defaults to the server's project root. |
platform | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
includeUser | boolean | Also read known user-level MCP configs under the home directory. |
maxFindings | integer | Maximum findings to return (default 50, capped at 500). |
minSeverity | string | Minimum severity to report. |
path | string | Directory 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.
| Parameter | Type | Description |
|---|---|---|
findingId * | string | Finding ID (VGL-...), fingerprint (fp_...) or a unique prefix. |
scanId | string | Scan 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.
| Parameter | Type | Description |
|---|---|---|
findingId * | string | Finding ID (VGL-...), fingerprint (fp_...) or a unique prefix. |
apply | boolean | Apply the proposed diff to the working tree. Defaults to false (dry run). |
scanId | string | Scan 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.
| Parameter | Type | Description |
|---|---|---|
path | string | Directory 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.
| Parameter | Type | Description |
|---|---|---|
category | string | Only rules in this category. |
language | string | Only rules that apply to this language (for example go, python, javascript, yaml). Generic rules are included. |
query | string | Case-insensitive text matched against the ID, title, description, tags, CWE and OWASP fields. |
severity | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
action | string | Baseline operation. Defaults to list. |
findingId | string | Finding ID (VGL-...), fingerprint (fp_...) or a unique prefix. Required for add and remove. |
reason | string | Why the finding is accepted. Required for add. |
scanId | string | Scan 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.
| Parameter | Type | Description |
|---|---|---|
format | string | Report format. Defaults to md. |
path | string | Relative path inside the app root to write the report to (for example reports/vigil.md). |
scanId | string | Scan 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.
| Parameter | Type | Description |
|---|---|---|
findingId * | string | Finding ID (VGL-...), fingerprint (fp_...) or a unique prefix. |
paths | array | Files to re-scan, relative to the scan root. Defaults to the finding's file. |
scanId | string | Scan 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of scans to list (default 10, capped at 100). |