Code Auditor MCP Server

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.

Trust grade
B
80/100
Last scanned get badge →
Trust
B · 80/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
Critical
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
B Why this grade threat 91 − adoption risk = 80/100

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:

PointsWhat was foundCategory
−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:

PointsAdoption-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.

Findings 17

high Dynamic code execution in server code (dist/cli.js)MTC-SRC-001

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

high Shell/command execution in server code (dist/auditRunner.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/churn/churnExtractor.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/cli.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/codeIndexDB.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/enforcement/diffGate.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/languages/RuntimeManager.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/ledger.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/mcpAuditJobs.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/native-bootstrap.js)MTC-SRC-002

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

high Shell/command execution in server code (dist/styles/tailwindConfigLoader.js)MTC-SRC-002

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

medium Untrusted input concatenated into a command sink (dist/auditRunner.js)MTC-SRC-009

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

medium Untrusted input concatenated into a command sink (dist/churn/churnExtractor.js)MTC-SRC-009

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

medium Tool "overwrite" can modify the filesystemMTC-CAP-002

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

medium Dynamic module load from a non-literal (dist/styles/tailwindConfigLoader.js)MTC-SRC-005

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

low Mutating tool "overwrite" declares no destructiveHintMTC-CAP-005

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

low Dynamic module load from a non-literal in packaging/dev tooling (dist/scripts/runBench.js)MTC-SRC-005

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

Tools 97

Each tool and what it can reach — statically extracted from the published source.

  • auditingests untrusted input
  • overwritewrites files
  • resultsingests untrusted input
  • startingests untrusted input
  • actionableOnlyno sensitive capability
  • analyzerConcurrencyno sensitive capability
  • analyzerConfigsno sensitive capability
  • analyzerNameno sensitive capability
  • analyzersno sensitive capability
  • auditIdno sensitive capability
Show 87 more tools ↓
  • auditJobIdno sensitive capability
  • autoPopulateno sensitive capability
  • blockedByno sensitive capability
  • cleanupno sensitive capability
  • code_mapno sensitive capability
  • completeno sensitive capability
  • configno sensitive capability
  • configPathno sensitive capability
  • createno sensitive capability
  • definitionno sensitive capability
  • deleteno sensitive capability
  • descriptionno sensitive capability
  • dueAtno sensitive capability
  • filePathno sensitive capability
  • filtersno sensitive capability
  • formatno sensitive capability
  • from_auditno sensitive capability
  • generateno sensitive capability
  • generateCodeMapno sensitive capability
  • getno sensitive capability
  • guideno sensitive capability
  • hasChildrenno sensitive capability
  • healthno sensitive capability
  • includePackageJsonno sensitive capability
  • indexno sensitive capability
  • indexFunctionsno sensitive capability
  • jobIdno sensitive capability
  • jobTimeoutMsno sensitive capability
  • labelno sensitive capability
  • labelsno sensitive capability
  • limitno sensitive capability
  • listno sensitive capability
  • list_treeno sensitive capability
  • mapIdno sensitive capability
  • maxFilesPerRunno sensitive capability
  • maxPartitionsno sensitive capability
  • maxRetriesno sensitive capability
  • metadatano sensitive capability
  • minSeverityno sensitive capability
  • modeno sensitive capability
  • nameno sensitive capability
  • offsetno sensitive capability
  • outputDirno sensitive capability
  • overdueOnlyno sensitive capability
  • parentTaskIdno sensitive capability
  • partitionStrategyno sensitive capability
  • partitionThresholdFilesno sensitive capability
  • patchno sensitive capability
  • pathno sensitive capability
  • pathsno sensitive capability
  • patternsno sensitive capability
  • priorityno sensitive capability
  • projectPathno sensitive capability
  • queryno sensitive capability
  • relatedFilesno sensitive capability
  • relatedSymbolsno sensitive capability
  • resetno sensitive capability
  • resultIdno sensitive capability
  • retryBackoffMsno sensitive capability
  • rules_checkno sensitive capability
  • rules_listno sensitive capability
  • runno sensitive capability
  • scenariono sensitive capability
  • scopeno sensitive capability
  • searchno sensitive capability
  • sectionTypeno sensitive capability
  • serverUrlno sensitive capability
  • setno sensitive capability
  • severitiesno sensitive capability
  • shardSoftBudgetMsno sensitive capability
  • shardTimeoutMsno sensitive capability
  • sortOrderno sensitive capability
  • sourceno sensitive capability
  • statusno sensitive capability
  • syncno sensitive capability
  • taskIdno sensitive capability
  • tasksno sensitive capability
  • thresholdno sensitive capability
  • titleno sensitive capability
  • toolsno sensitive capability
  • typeno sensitive capability
  • updateno sensitive capability
  • whitelist_addno sensitive capability
  • whitelist_detectno sensitive capability
  • whitelist_listno sensitive capability
  • whitelist_updateno sensitive capability
  • workerCountno sensitive capability

What this scan could not see

Versions 10

Scan 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.

VersionScoreFindingsEngineScanned
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
Show 5 more versions ↓
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

Embed this score

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.

MCP Trust Score: B · 80/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/code-auditor-mcp/badge.svg)](https://mcptrustchecker.com/registry/code-auditor-mcp)
HTML
<a href="https://mcptrustchecker.com/registry/code-auditor-mcp"><img src="https://mcptrustchecker.com/registry/code-auditor-mcp/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/code-auditor-mcp/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

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

Use the free API → How scoring works

More in Developer Tools