code-auditor-mcp
npm
v3.7.0
Published by benahammond — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.
Architectural invariants and code quality analysis, enforced inside your AI agent's edit loop. MCP server + CLI + Claude Code plugin. TypeScript, JavaScript, Go.
The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.
1. Threat score — 100 − 9.5 = 91. What the published surface and source actually contain:
| Points | What was found | Category |
|---|---|---|
| −9.5 | Untrusted input concatenated into a command sink ×2 MTC-SRC-009 | injection |
2. Client adoption risk — 91 − 11 = 80. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:
| Points | Adoption-risk factor |
|---|---|
| −10 | capability blast radius (critical) — client exposure if the model is manipulated |
| −1 | publisher verification (public source) — no provenance, but the source is public and inspectable |
Capability observations and info notes are shown under Findings but never scored.
Open any row's finding below for the file, line and evidence behind a deduction.
In the server's implementation (`dist/cli.js:3071`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: st-grep patterns (e.g. "new Function($$$)").', requiredFields: ['pattern'], }, ]; const SCAFFOLD_CONFIG = {
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli.js
In the server's implementation (`dist/auditRunner.js:9`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: port { execSync } from 'child_process'; import { randomUUID } from 'node:crypto'; import { AuditAbortedError, AuditHando
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/auditRunner.js
In the server's implementation (`dist/churn/churnExtractor.js:15`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: port { execSync } from 'child_process'; import * as path from 'path'; export const DEFAULT_CHURN_CONFIG = { churnWin
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/churn/churnExtractor.js
In the server's implementation (`dist/cli.js:2175`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: } = await import('node:child_process'); const { openSync } = await import('node:fs'); const { createAuditJob }
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/cli.js
In the server's implementation (`dist/codeIndexDB.js:3034`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: bulk operations. */ exec(sql) { this.ensureInitialized(); this.db.exec(sql); } } // ── Helpers ─
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/codeIndexDB.js
In the server's implementation (`dist/enforcement/diffGate.js:16`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ecFileSync } from 'node:child_process'; import { statSync } from 'node:fs'; import path from 'node:path'; /** * Parse `
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/enforcement/diffGate.js
In the server's implementation (`dist/languages/RuntimeManager.js:5`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: t { exec, spawn } from 'child_process'; import { promisify } from 'util'; import * as path from 'path'; import * as fs f
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/languages/RuntimeManager.js
In the server's implementation (`dist/ledger.js:9`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ecFileSync } from 'node:child_process'; import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs'; impor
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/ledger.js
In the server's implementation (`dist/mcpAuditJobs.js:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ort { fork } from 'node:child_process'; import { randomUUID } from 'node:crypto'; import { cpus, hostname } from 'node:o
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/mcpAuditJobs.js
In the server's implementation (`dist/native-bootstrap.js:18`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execSync } from 'node:child_process'; // ── Musl detection (same logic as @ast-grep/napi's isMusl) ──────────────────
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/native-bootstrap.js
In the server's implementation (`dist/styles/tailwindConfigLoader.js:17`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ecFileSync } from 'node:child_process'; // --------------------------------------------------------------------------- /
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/styles/tailwindConfigLoader.js
In the server's implementation (`dist/auditRunner.js:1060`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const diffOutput = execSync(`git diff --name-only ${ref}`, { cwd: rootDir, stdio: 'pipe',
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/auditRunner.js
In the server's implementation (`dist/churn/churnExtractor.js:92`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const output = execSync(`git log --numstat --format='%H|%an|%at' --since='${sinceStr}'`, { cwd: targetPath, std
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/churn/churnExtractor.js
Tool "overwrite" can write, overwrite or delete files (keyword "overwrite" in tool name). Verify it is scoped to a safe directory.
Fix: Constrain file operations to an explicit, non-sensitive root; reject path traversal.
Location: tool overwrite
In the server's implementation (`dist/styles/tailwindConfigLoader.js:140`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const config = require(configPath); // Handle default exports const resolved = config.default ?
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/styles/tailwindConfigLoader.js
Tool "overwrite" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.
Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.
Location: tool overwrite
In a packaging/dev/install script (shipped, but not the server runtime) (`dist/scripts/runBench.js:643`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: st _importDist = (p) => import(p); const callGraphMod = await _importDist('../../dist/graph/callGraph.js
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server dist/scripts/runBench.js
Each tool and what it can reach — statically extracted from the published source.
auditingests untrusted inputoverwritewrites filesresultsingests untrusted inputstartingests untrusted inputactionableOnlyno sensitive capabilityanalyzerConcurrencyno sensitive capabilityanalyzerConfigsno sensitive capabilityanalyzerNameno sensitive capabilityanalyzersno sensitive capabilityauditIdno sensitive capabilityauditJobIdno sensitive capabilityautoPopulateno sensitive capabilityblockedByno sensitive capabilitycleanupno sensitive capabilitycode_mapno sensitive capabilitycompleteno sensitive capabilityconfigno sensitive capabilityconfigPathno sensitive capabilitycreateno sensitive capabilitydefinitionno sensitive capabilitydeleteno sensitive capabilitydescriptionno sensitive capabilitydueAtno sensitive capabilityfilePathno sensitive capabilityfiltersno sensitive capabilityformatno sensitive capabilityfrom_auditno sensitive capabilitygenerateno sensitive capabilitygenerateCodeMapno sensitive capabilitygetno sensitive capabilityguideno sensitive capabilityhasChildrenno sensitive capabilityhealthno sensitive capabilityincludePackageJsonno sensitive capabilityindexno sensitive capabilityindexFunctionsno sensitive capabilityjobIdno sensitive capabilityjobTimeoutMsno sensitive capabilitylabelno sensitive capabilitylabelsno sensitive capabilitylimitno sensitive capabilitylistno sensitive capabilitylist_treeno sensitive capabilitymapIdno sensitive capabilitymaxFilesPerRunno sensitive capabilitymaxPartitionsno sensitive capabilitymaxRetriesno sensitive capabilitymetadatano sensitive capabilityminSeverityno sensitive capabilitymodeno sensitive capabilitynameno sensitive capabilityoffsetno sensitive capabilityoutputDirno sensitive capabilityoverdueOnlyno sensitive capabilityparentTaskIdno sensitive capabilitypartitionStrategyno sensitive capabilitypartitionThresholdFilesno sensitive capabilitypatchno sensitive capabilitypathno sensitive capabilitypathsno sensitive capabilitypatternsno sensitive capabilitypriorityno sensitive capabilityprojectPathno sensitive capabilityqueryno sensitive capabilityrelatedFilesno sensitive capabilityrelatedSymbolsno sensitive capabilityresetno sensitive capabilityresultIdno sensitive capabilityretryBackoffMsno sensitive capabilityrules_checkno sensitive capabilityrules_listno sensitive capabilityrunno sensitive capabilityscenariono sensitive capabilityscopeno sensitive capabilitysearchno sensitive capabilitysectionTypeno sensitive capabilityserverUrlno sensitive capabilitysetno sensitive capabilityseveritiesno sensitive capabilityshardSoftBudgetMsno sensitive capabilityshardTimeoutMsno sensitive capabilitysortOrderno sensitive capabilitysourceno sensitive capabilitystatusno sensitive capabilitysyncno sensitive capabilitytaskIdno sensitive capabilitytasksno sensitive capabilitythresholdno sensitive capabilitytitleno sensitive capabilitytoolsno sensitive capabilitytypeno sensitive capabilityupdateno sensitive capabilitywhitelist_addno sensitive capabilitywhitelist_detectno sensitive capabilitywhitelist_listno sensitive capabilitywhitelist_updateno sensitive capabilityworkerCountno sensitive capabilityScan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.
| Version | Score | Findings | Engine | Scanned |
|---|---|---|---|---|
v3.7.0 latest |
B 80/100 | 17 | 1.13.0 | 2026-09-07 |
v3.6.0 |
B 80/100 | 17 | 1.13.0 | 2026-09-06 |
v3.4.18 |
B 80/100 | 17 | 1.13.0 | 2026-09-05 |
v3.4.17 |
B 80/100 | 17 | 1.13.0 | 2026-09-01 |
v3.4.16 |
B 80/100 | 17 | 1.13.0 | 2026-08-25 |
v3.4.15 |
B 80/100 | 17 | 1.12.1 | 2026-08-20 |
v3.4.14 |
B 80/100 | 16 | 1.12.1 | 2026-08-19 |
v3.4.12 |
B 80/100 | 14 | 1.12.1 | 2026-08-16 |
v3.4.11 |
B 80/100 | 14 | 1.12.1 | 2026-08-10 |
v3.4.10 |
B 80/100 | 14 | 1.12.1 | 2026-08-07 |
Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.
The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.
npx mcptrustchecker scan code-auditor-mcp --online
Hotel booking MCP server — 300K+ properties, real confirmation numbers, loyalty programs. Builders monetize every booking via Stripe Connect. The first MCP server that completes real hotel reservations inside AI conversations.
Manage AdGuard Home through AI assistants
Read-only Azure DevOps for MCP clients using only your existing browser session — no PAT, no Azure CLI. Browse work items, pull requests, comments, attachments and Artifacts feeds across every project, repo and feed you can access.
MCP server for Adobe Experience Manager Assets integration development
Servidor MCP para el tiempo oficial de España (API pública OpenData de AEMET). Predicción, observación y avisos como herramientas MCP tipadas.
A standalone MCP stdio bridge for Affinity by Canva's local MCP SSE server.