code-audit-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
code-audit
code-audit is a deterministic source-code security auditor. It scans a local
project, produces candidate findings with evidence, and gives a host agent (or a
human) the tools to review them and render a report. The core never calls an LLM:
you are the reviewer. All repository content is treated as untrusted data.
The project ships three layers:
Core (
@code-audit/core) — inventory, built-in rule engine, built-in secret detection, lockfile parsing with OSV.dev queries, finding model, dedupe, verdict storage and Markdown/JSON/SARIF reports.CLI (
code-audit) —scan,status,findings,read,search,verdict,add-finding,report,install,doctor,mcp.MCP server (
code-audit-mcp) — the same workflow exposed asaudit_*tools over stdio for agent hosts.
Quick start
pnpm install
pnpm build
pnpm run link:local # creates ./bin/code-audit and ./bin/code-audit-mcp
export PATH="$PWD/bin:$PATH" # or add ./bin to your PATH permanently
code-audit scan <dir> # scan a project (writes <dir>/.audit/<run>)
code-audit scan <dir> --offline # skip OSV.dev network queries
code-audit install --host opencode # install the agent adapter files
code-audit doctor # show Node, rules and external tool statuscode-audit-mcp is the stdio MCP server; point your host at it (the install
command writes the right config for each supported host).
Related MCP server: verdex
Engine tiers
The tool is designed so that a scan always succeeds with zero external dependencies, and gets stronger when optional scanners are present.
Tier | Engines | Dependency | Notes |
Tier 0 (always available) | built-in YAML rules, built-in secret detection, lockfile parsing + OSV.dev batch query | Node only | OSV queries send only package name/version; |
Tier 1 (auto when found) | Opengrep/Semgrep, OSV-Scanner, Gitleaks | present on | Results are merged and deduped with Tier 0. A missing, failing or timing-out tool never fails the scan; it is recorded as a warning. |
Tier 2 (explicit, future) | govulncheck, Bandit, gosec, SpotBugs, Roslyn, clang-tidy | language toolchains | Not implemented yet. |
Use --engines builtin,opengrep,osv-scanner,gitleaks to select engines
explicitly, or --no-external for Tier 0 only. Opengrep is preferred over
Semgrep; Semgrep is used only when Opengrep is not installed.
Host support
Host | Adapter | Verification status |
OpenCode |
| Verified on a real host (OpenCode v2.4.1). |
DSH |
| Verified on a real host (DSH 0.2.2-rc.5). |
Claude Code |
| Format/schema checked only — not verified on a real host. |
Codex |
| Format/schema checked only — not verified on a real host. |
Exit codes
Code | Meaning |
| Completed and no finding reached the |
| At least one finding reached the thresholds (or Node < 22 for |
| Runtime error (bad arguments, missing path, rule loading failure, ...). |
License
Apache-2.0. The repository bundles only self-written rules; no Semgrep registry rules are distributed.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Audit GitHub repos for malicious and supply-chain code before you depend on them.
Security tools for coding agents: dependency advisory audits and evidence for remediation.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
Related MCP Servers
- AlicenseAqualityBmaintenanceEvidence-backed, read-only codebase diagnostics for coding agents: secrets, dependency, RLS, and source-impact audits with a verify loop and PR review verdicts. Never writes files or uses the network by default.7122 npmMIT
- AlicenseNot gradedqualityBmaintenanceExposes read-only local analysis tools for source auditing, web traffic review, binary reverse engineering, exploit scaffolding, OSINT, and reporting via JSON-RPC over stdio, enabling LLMs to orchestrate evidence-based security workflows without executing targets or sending network requests.1MIT
- AlicenseBqualityCmaintenanceEnables AI coding agents to perform evidence-based, read-only audits of supported software projects by exposing bounded project inventory and static-analysis findings for discovery, code review, integration tracing, security, and tests. Reports are returned as Markdown or JSON directly in the tool response, with no code executed or files written.8MIT
- AlicenseNot gradedqualityCmaintenanceEnables a coding agent, over stdio MCP, to scan a project for security flaws, list and explain findings, propose and apply patches, and re-run recorded exploits to prove each fix actually holds on the patched app. Tools include scan_project, list_findings, explain_finding, propose_patch, apply_patch, verify_fix, and full_audit.MIT