MCP server · Audited from source
Socraticode MCP server
by giancarloerra/socraticodeAGPL-3.0 licenceAudited 22 Sep 2026 · source e1a11a896e7b
Is it safe? Yes — SAFE, grade B (89/100). It exposes 30 tools: 23 read, 4 write and 3 destructive. The audit recorded 19 findings (0 critical, 0 high, 1 medium, 17 low). Maintainer's description: Enterprise-grade (40m+ LOC) codebase intelligence, zero-setup, local & private Plugin/Skill/Extension or MCP: hybrid semantic search, polyglot dependency graphs, symbol-level impact analysis & call-flow, interactive HTML viewer, cross-project & branch-aware search, DB/API/infra knowledge. 61% less t
Cite
Cite this page
ModelsAtlas. “Socraticode MCP server (giancarloerra/socraticode)”. Retrieved 22 Sep 2026. https://modelsatlas.com/mcp/giancarloerra/socraticode
Trust audit
Audit 0.4.1 · full source read 22 Sep 2026
19 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared2 observations
- ShellDeclared1 observation
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 6 findings |
L1 Static source | Secrets, path traversal, supply chain | PASS 12 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
giancarloerraUser accountAccount type recorded when we read the repository. - PackagePublished on npm
socraticodeat version 1.14.0 - LicenceAGPL-3.0From the repository, as read at the audited commit.
- Last push1 day agoActivity of the repository when we read it.
- Source commit reade1a11a896e7bThe audit covers exactly this commit, read on 22 Sep 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory30 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (19)
Sorted by severity
MEDIUMFilesystem / pathmcp.destructive_tools
codebase_context_remove, codebase_graph_remove, codebase_remove
- Why
- 3 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:25
import { invalidateGraphCache } from "../../src/services/code-graph.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:26
import { stopAllWatchers } from "../../src/services/watcher.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:27
import { handleGraphTool } from "../../src/tools/graph-tools.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:28
import { handleIndexTool } from "../../src/tools/index-tools.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/e2e/full-workflow.test.ts:29
import { handleManageTool } from "../../src/tools/manage-tools.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:64
if curl --connect-timeout 1 --max-time 2 -fsS http://127.0.0.1:6333/healthz >/dev/null; then
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:81
QDRANT_MODE=external QDRANT_URL=http://127.0.0.1:6333 \
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:121
if curl --connect-timeout 1 --max-time 2 -fsS http://127.0.0.1:6333/healthz >/dev/null; then
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:130
QDRANT_URL=http://127.0.0.1:6333 \
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · .github/workflows/ci.yml:145
if curl --connect-timeout 1 --max-time 2 -fsS http://127.0.0.1:6333/healthz >/dev/null; then
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · extension/package.json
@biomejs/biome, @types/node, @types/vscode, @vscode/vsce, esbuild, ovsx, tsx, typescript
- Why
- 8 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · package.json
@ast-grep/lang-bash, @ast-grep/lang-c, @ast-grep/lang-cpp, @ast-grep/lang-csharp, @ast-grep/lang-dart, @ast-grep/lang-elixir, @ast-grep/lang-go, @ast-grep/lang-java
- Why
- 43 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
INFOInventory / provenanceinv.oversize · socraticode_logo.png
socraticode_logo.png
- Why
- 1970981 bytes not read
- Fix
- —
Tools it exposes
30 declared in source · 3 destructive
3 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
codebase_context_remove | destructive | Remove all indexed context artifacts for a project from the vector database. Blocked while indexing is in progress — use codebase_stop or wait for the operation to finish first. |
codebase_graph_remove | destructive | Remove a project |
codebase_remove | destructive | Remove a project |
codebase_index | write | Start indexing a codebase in the background. Returns immediately. Call codebase_status to poll progress until 100%. Do NOT search until indexing is complete. If already indexing, returns current progress. |
codebase_stop | write | Gracefully stop an in-progress indexing operation. The current batch will finish and checkpoint, preserving all progress. Re-run codebase_index to resume from where it left off. |
codebase_update | write | Incrementally update an existing codebase index. Only re-indexes changed files. Runs synchronously. Use it to refresh a manual/off snapshot, or whenever an immediate catch-up is needed. |
codebase_watch | write | Start/stop watching a project directory for file changes and automatically update the index. When starting, first runs an incremental update to catch up, then watches for changes. SOCRATICODE_WATCHER=manual allows explicit starts only; off rejects starts. |
changed | read | Changed artifact |
codebase_about | read | Display information about SocratiCode — what it is, its tools and how to use it. Use this to get a quick overview of the MCP tools and their purpose. |
codebase_context | read | List all context artifacts defined in .socraticodecontextartifacts.json — database schemas, API specs, infra configs, architecture docs, etc. Shows each artifact |
codebase_context_index | read | Index or re-index all context artifacts defined in .socraticodecontextartifacts.json. Chunks and embeds artifact content into the vector database for semantic search. Usually not needed — codebase_context_search auto-indexes on first use. |
codebase_context_search | read | Semantic search across context artifacts (database schemas, API specs, infra configs, etc.) defined in .socraticodecontextartifacts.json. Auto-indexes on first use and auto-detects stale artifacts. Use this to find relevant infrastructure or domain knowledge. |
codebase_flow | read | Trace the EXECUTION FLOW forward from an entry point — what does this code call into? With NO args, returns a ranked list of auto-detected entry points (orphans with outgoing calls, conventional names like main(), framework routes, tests). With an entrypoint argument, returns the call tree. |
codebase_graph_build | read | Build a dependency graph of the codebase using static analysis (ast-grep). Maps import/require/export relationships between files. Runs in the background — call codebase_graph_status to poll progress until complete. |
codebase_graph_circular | read | Find circular dependencies in the codebase. |
codebase_graph_query | read | Query the code dependency graph for a specific file. Returns what the file imports and what files depend on it. |
codebase_graph_stats | read | Get statistics about the code dependency graph: total files, edges, most connected files, orphan files, circular dependencies. |
codebase_graph_status | read | Check the status of the code dependency graph: build progress (if building), node/edge count, when it was last built, whether it |
codebase_graph_visualize | read | No description in the source |
codebase_health | read | Check the health of all infrastructure: Docker, Qdrant container, Ollama, and embedding model. Use this to diagnose setup issues. |
codebase_impact | read | Impact Analysis — return the BLAST RADIUS for a file or symbol. Lists every file (and, where helpful, function) that could break if you change the target. Polymorphic on target: a path-like string ( |
codebase_list_projects | read | List all projects that have been indexed (have collections in Qdrant). |
codebase_prune | read | Inventory stored project identities and their resources. Report-only by default. Applying requires an exact identity, the confirmation token from a fresh inventory, and an acknowledgement that no other host is writing to it; path absence on this host is advisory, not proof of abandonment. |
codebase_search | read | Semantic search across an indexed codebase. Only use after codebase_index is complete (check codebase_status first). Returns relevant code chunks matching a natural language query. |
codebase_status | read | Check index status: chunk count, indexing progress (%), last completed operation, file watcher state. Call after codebase_index to poll until 100% complete. |
codebase_symbol | read | 360° view of a symbol: definition, kind, callers, callees, confidence levels. Use to understand a function or class before changing it. |
codebase_symbols | read | List symbols in a file, or search by name across the project. Use to discover what exists before drilling into a single symbol with codebase_symbol. |
reference | read | Reference documentation |
same | read | Same artifact |
schema | read | DB |
Install
Package version 1.14.0 · audited commit e1a11a8
claude mcp add socraticode --env OPENAI_API_KEY=${OPENAI_API_KEY} --env GOOGLE_API_KEY=${GOOGLE_API_KEY} --env OLLAMA_API_KEY=${OLLAMA_API_KEY} --env LMSTUDIO_API_KEY=${LMSTUDIO_API_KEY} -- npx -y [email protected]The command pins the package version recorded in the source (1.14.0); the audit covers commit e1a11a896e7b. Transport: stdio. Reads these environment variables: GOOGLE_API_KEY, LITELLM_API_KEY, LMSTUDIO_API_KEY, OLLAMA_API_KEY, OPENAI_API_KEY, QDRANT_API_KEY. Give it the narrowest token it needs.
Audit history
- ✓SAFE B 89 / 100
Source changed, verdict held ·
e1a11a896e7b - ✓SAFE B 89 / 100
First audit ·
fdafd68090a0
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/giancarloerra/socraticode/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Socraticode MCP server
What is the Socraticode MCP server?
What tools does Socraticode expose?
Is Socraticode safe to connect to an agent?
What credentials does Socraticode need?
How does Socraticode run?
How current is this page?
Sources
- giancarloerra/socraticode on GitHub — the source we read, its licence, stars and activityObserved · 22 Sep 2026
- ModelsAtlas trust audit — SAFE verdict for commit e1a11a896e7bObserved · 22 Sep 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Socraticode MCP server?
- What tools does Socraticode expose?
- Is Socraticode safe to connect to an agent?