Atlas / MCP servers / cyberchronos00 / code-graph

code-graphBLOCK

mcp/cyberchronos00/code-graph

A deterministic code graph for codebases: every caller, route, page and table a change touches, with file:line evidence. CLI, MCP server and web view for AI agents and reviewers.

Verdict
BLOCK
Grade
F
Trust score
40 /100
Exposed tools
10 5r · 3w · 2d
Transport
—
License
MIT
Stars
4
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

See everything a change affects before you make it: a local, deterministic dependency graph of routes, calls, tables and config, with `file:line` evidence for every hop.

For you and your AI agent (CLI + MCP). No LLM in the graph.

[](https://pypi.org/project/cg-code-graph/) [](https://pepy.tech/project/cg-code-graph) [](https://pypi.org/project/cg-code-graph/) [](https://github.com/cyberchronos00/code-graph/blob/main/LICENSE) [](https://code-graph.cyberchronos00.workers.dev/)

Docs · Quick start · CLI · MCP · Changelog

[](https://github.com/cyberchronos00/code-graph/blob/main/docs/media/cg-view-demo.mp4)

Quick start

pipx install cg-code-graph          # or: uv tool install cg-code-graph
cg index . --db out/graph.db        # prints starter queries for your repo
cg install --host cursor    # or claude, codex, vscode, ...: registers the MCP server
cg reaches table:orders --db out/graph.db   # any table, connection or config key

Try it on a bundled sample, link a frontend to a backend, or connect an agent over MCP: [Quick start guide](https://code-graph

Read from source at commit b5ae598f91b8OBSERVED · 2026-10-11
Advertisement
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add ws-switch-other --env ACME_SECRET=${ACME_SECRET} --env APNS_KEY_ID=${APNS_KEY_ID} --env APNS_KEY_PATH=${APNS_KEY_PATH} --env AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "ws-switch-other": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ACME_SECRET": "${ACME_SECRET}",
        "APNS_KEY_ID": "${APNS_KEY_ID}",
        "APNS_KEY_PATH": "${APNS_KEY_PATH}",
        "AWS_ACCESS_KEY_ID": "${AWS_ACCESS_KEY_ID}"
      }
    }
  }
}
03

Exposed tools (10)

5 read · 3 write · 2 destructive. Blast radius: 2 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
add_notewriteStore a note.
delete_notedestructive
dropdestructivereturn id
echoreadreturn x
fetchreadd
nameread
read_noteread
refundwriteRefund an order through the shop.
searchreadreturn lookup(q)
sync-warehousewriteRe-sync all stock with the warehouse
04

Trust audit

BLOCKgrade F · trust 40/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryFAIL
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (6 observation(s))
Network
declared (19 observation(s))
Shell
declared (3 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHInventory / provenance · inv.suspicious_name · CWE-1104
cg_code_graph/payload.py
payload.py
Why it matters. member named after an attack tool
Fix. remove or justify
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
cg_code_graph/plugins/dart/program.py:555
if t and " Function(" in t:
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
cg_code_graph/plugins/dart/program.py:556
return ("fnret", self.type_of_text(t.split(" Function(")[0], lib, depth + 1))
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
cg_code_graph/insecure_transport.py:63
("tls-verify-off", ("py",), re.compile(r"\bverify\s*=\s*False\b"), "@pylib", "certificate verification is switched off (verify=False)", "@pyconf"),
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
cg_code_graph/insecure_transport.py:69
("tls-verify-off", ("js",), re.compile(r"\brejectUnauthorized\s*:\s*false\b"), "@jslib", "rejectUnauthorized: false accepts any certificate", "exact"),
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
cg_code_graph/insecure_transport.py:71
("tls-verify-off", ("js",), re.compile(r"\bprocess\s*\.\s*env\s*(?:\.\s*|\[\s*['\"])" + NODE_TLS), "node", "NODE_TLS_REJECT_UNAUTHORIZED=0 in code: certificate checks are off for the whole process", "
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
cg_code_graph/insecure_transport.py:86
("tls-verify-off", ("script", "docker", "yaml", "pkgjson", "envex", "ci"), re.compile(NODE_TLS), "node", "NODE_TLS_REJECT_UNAUTHORIZED=0: certificate checks are off for the whole process", "exact"),
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
cg_code_graph/viz/server.py:164
def export_plan_html(db: str, out: str, plan: str, plans_root=None, verify=False) -> str:
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHHard-coded secrets · secret.db_uri · CWE-798, CWE-321
cg_code_graph/external.py:90
"""`postgres://user:pw@db:5432/app?sslmode=require`, `jdbc:mysql://h/db`, `rediss://:pw@cache:6380/0` ... ->
MEDIUMHard-coded secrets · inv.env_committed · CWE-798, CWE-321
tests/php_http_fixture/.env
.env
Why it matters. a real .env in the package
Fix. ship .env.example with placeholders only
MEDIUMInventory / provenance · inv.symlink · CWE-1104
docs-site/public/media
docs-site/public/media
Why it matters. link not followed
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
cg_code_graph/doctor.py:96
importlib.import_module(m.name)
MEDIUMNetwork egress · net.beacon_words · CWE-200, CWE-319
cg_code_graph/webhook_subs.py:38
URL_KEYS = r"url|target_url|targetUrl|subscriber_url|subscriberUrl|webhook_url|webhookUrl|endpoint|endpoint_url|endpointUrl|callback_url|destination_url|payload_url"
MEDIUMNetwork egress · net.beacon_words · CWE-200, CWE-319
cg_code_graph/webhook_subs.py:41
CALLBACK_KEYS = ("callback_url", "callbackUrl", "callback", "notify_url", "notifyUrl", "notification_url", "notificationUrl",
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
cg_code_graph/viz/tools/shoot.mjs:22
const base = (process.argv[2] || 'http://127.0.0.1:8177/').replace(/#.*$/, '')
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
scripts/demo/record-view.mjs:7
const base = process.argv[2] || 'http://127.0.0.1:8199/'
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
tests/external_fixture/shop-kafka/settings.py:6
amqp_url: str = "amqp://app:s3cret-kafka@rabbitmq:5672/shop"
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
tests/external_fixture/shop-orm/.env.example:1
DATABASE_URL="postgresql://shop:[email protected]:5432/shop?sslmode=require"
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
tests/external_fixture/shop-orm/.env.example:2
POSTGRES_URL="postgresql://shop:[email protected]:5432/shop"
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
tests/external_fixture/shop-php-pdo/.env.example:1
DATABASE_URL=postgres://shop:[email protected]:5432/shop
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
tests/test_ssrf.py:264
secret = "fake-bookstore-django-key-0000"
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
tests/unguarded_fixture/express/src/app.ts:6
app.use(session({ secret: 'fake-bookstore-secret-0000' }))
MEDIUMHard-coded secrets · secret.slack · CWE-798, CWE-321
tests/test_redact_salt.py:141
"fake_bookstore_token", "xoxb-fake-bookstore-token", "fakebookstore",  # lowercase words only
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
delete_note, drop
Why it matters. 2 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.binary · CWE-1104
tests/kotlin_exact_fixture/index.scip
index.scip
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README

Gates applied: no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha b5ae598f91b8full audit observations/trust-audit/mcp-server/cyberchronos00__code-graph.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-11b5ae598f91b8BLOCKF40first audit
06

Questions

What is the code-graph MCP server?

A deterministic code graph for codebases: every caller, route, page and table a change touches, with file:line evidence. CLI, MCP server and web view for AI agents and reviewers.

What tools does code-graph expose?

10 in total: 5 read-only, 3 that write, and 2 that can delete or overwrite (delete_note, drop). Every one is listed on this page with its risk.

Is code-graph safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (40/100) and found 9 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does code-graph need?

It reads ACME_SECRET, APNS_KEY_ID, APNS_KEY_PATH, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AZURE_CLIENT_SECRET, DJANGO_SECRET_KEY, DOCKER_KEY, EXPO_ACCESS_TOKEN, GH_SECRET, GOOGLE_APPLICATION_CREDENTIALS and KEY_VAULT_URL from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How current is this page?

The grade is for one exact copy of the source (b5ae598f91b8), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement