codedev-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODEDEV_CWD | No | Working directory for code analysis (overrides current working directory). Can also be set via --cwd CLI flag. | . |
| CODEDEV_ROOTS | No | Comma-separated list of root directories for multi-root workspace analysis. Can also be set via --roots CLI flag. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
codedev-mcp provides comprehensive, read-only access to the local codebase with 42 tools across 11 categories.
Tool Categories
Search (4 tools)
search_code — Text/regex search across files
search_symbols — Find functions, classes, interfaces
find_references — Trace symbol usage
semantic_search — Concept-based search ("authentication logic")
Analysis (6 tools)
codebase_map — Project structure, languages, frameworks
analyze_file — Detailed file analysis with imports
dependency_graph — Import relationships and dependencies
call_graph — Who-calls-what analysis
code_metrics — Complexity, function lengths
test_coverage — What's tested
Navigation (2 tools)
read_files — Read files (single or batch)
file_tree — Directory listing with sizes and dates
Git (10 tools)
git_log — Commit history with filters
git_diff — Show changes between refs
git_blame — Line-by-line attribution
git_status — Working tree status
git_branches — List all branches
git_show — Commit details
git_contributors — Contributor stats
change_impact — Assess change effects
branch_compare — Structural diff between branches
git_hooks — Generate pre-commit hooks
Quality (8 tools)
find_todos — TODO/FIXME/HACK comments
find_debug_logs — console.log/print statements
find_secrets — Hardcoded credentials
find_empty_catches — Empty error handlers
find_long_functions — Functions over N lines
find_large_files — Files over N lines
find_duplicates — Duplicate code patterns
find_dead_code — Unused exports
Documentation (1 tool)
code_docs — Generate documentation
Security (2 tools)
security_scan — Vulnerability detection
dep_vuln_scan — Dependency vulnerabilities
Architecture (3 tools)
architecture_check — Layer boundary verification
db_schema — Database model analysis
api_contracts — API endpoint discovery
DevOps (4 tools)
iac_analyze — Infrastructure-as-Code analysis
cicd_analyze — CI/CD pipeline parsing
monorepo_analyze — Workspace relationships
perf_profile — Performance analysis
Scaffolding (1 tool)
scaffold — Generate boilerplate code (returns text, doesn't write)
Recommended Workflow
Start with codebase_map to understand the project
Use search_code or semantic_search to find relevant code
Use read_files to inspect contents
Use git_log/git_blame for history context
Use find_todos/find_secrets for code quality
Resources
project://config, project://structure, project://gitinfo
health://status, server://stats
Key Notes
All tools are read-only — they never modify files
All file paths are relative to project root
Uses ripgrep when available (falls back to grep)
Tree-sitter AST parsing for accurate symbol extraction
In-memory cache for fast repeated queries
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_codeA | Fast text or regex search across the entire codebase. Uses ripgrep for speed. Returns file paths, line numbers, and matched content. Works with any programming language. |
| search_symbolsB | Find functions, classes, interfaces, types, and constants across the codebase. Supports 40+ languages. Returns symbol name, kind, file, and line number. |
| find_referencesA | Find all references to a symbol (function, class, variable) across the codebase. Shows every file and line where the symbol is used. |
| semantic_searchA | Search code by concept, not just text. Finds "authentication logic" or "error handling code" without needing exact strings. Uses TF-IDF with synonym expansion. |
| codebase_mapA | Generate a comprehensive overview of the entire codebase: languages, frameworks, directory structure, file counts, infrastructure (tests, CI, Docker). Essential first step for understanding any project. |
| analyze_fileB | Deep analysis of a single file: symbols (functions, classes, types), imports, line counts, complexity score, and full structural outline. |
| dependency_graphB | Analyze import relationships and dependencies. Shows what each file imports and what imports it. Useful for understanding code architecture and impact of changes. |
| code_metricsA | Calculate code metrics: lines of code, comment ratios, complexity scores, file size distribution. Works per-file, per-directory, or codebase-wide. |
| call_graphA | Extract function call relationships. Shows which functions call which others. Uses tree-sitter AST when available, falls back to regex. |
| test_coverageA | Analyze test coverage. Reads lcov, istanbul, and cobertura formats. Shows covered/uncovered lines, untested functions, and coverage percentages. |
| read_filesA | Read one or more files. Pass a single path or array of paths. Supports line ranges for single files and truncation for batch reads. |
| file_treeA | List files and directories with sizes, modification times, and type icons. Automatically excludes node_modules, .git, build artifacts. |
| git_logA | View git commit history. Filter by file, author, date range. Shows commit hash, date, author, and message. |
| git_diffA | Show git diff. Compare working tree, staged changes, or between refs/commits. |
| git_blameA | Show git blame for a file. See who last modified each line and when. |
| git_statusA | Show git status: current branch, staged/unstaged changes, untracked files. |
| git_branchesA | List all git branches. Shows current branch with asterisk. |
| git_showA | Show details of a git commit: message, author, date, and diff. |
| git_contributorsA | List contributors by commit count. Optionally filter by file. |
| change_impactA | Analyze the impact of code changes. Given changed files or a git diff, finds affected dependents, tests to re-run, and breaking changes. Assesses risk level. |
| branch_compareA | Compare two git branches structurally: added, modified, deleted, renamed files. Shows per-file diff stats, commits ahead/behind, and conflict files. |
| git_hooksC | Generate pre-commit git hooks for code quality. Supports actions: "status" to check existing hooks, "preview" to see what a hook would do, "generate" to create a hook script. Hooks can run security_scan, find_todos, or custom commands. |
| find_todosB | Find TODO, FIXME, HACK, XXX, BUG, and OPTIMIZE comments in the codebase. |
| find_debug_logsB | Find debug/log statements: console.log, print, println, Debug.Log, etc. |
| find_secretsB | Find potential hardcoded secrets: passwords, API keys, tokens, credentials. |
| find_empty_catchesB | Find empty catch blocks and swallowed exceptions. |
| find_long_functionsA | Find functions that exceed a line count threshold (complexity indicator). |
| find_large_filesB | Find files that exceed a line count threshold. |
| find_duplicatesC | Find duplicate code patterns and copy-pasted blocks. |
| find_dead_codeB | Find potentially dead code: unused exports, unreferenced functions. |
| code_docsA | Extract documentation from code: JSDoc, Python docstrings, Rustdoc, Javadoc, Go doc comments. Shows docs for symbols or finds undocumented APIs. |
| security_scanA | Scan codebase for security issues: hardcoded secrets, SQL injection, XSS, insecure crypto, eval usage, path traversal, and more. SAST-lite with no external dependencies. |
| dep_vuln_scanA | Scan dependencies for known vulnerabilities. Cross-references package lock files (npm, Cargo, pip, Go) against a database of known-vulnerable packages. Reports severity, CVEs, and recommended upgrades. |
| notebook_analyzeA | Analyze Jupyter notebooks (.ipynb): extract code cells, check execution order, find imports/functions, assess notebook health. |
| architecture_checkB | Check architectural constraints and patterns. Detects circular dependencies, layered architecture violations, and component isolation issues. |
| db_schemaA | Analyze database schema definitions. Parses Prisma, Drizzle, SQLAlchemy, Django ORM, TypeORM entities, and raw SQL DDL. Returns tables, columns, types, relationships, and migrations. |
| api_contractsA | Find all API endpoints in the codebase. Parses OpenAPI/Swagger specs, GraphQL schemas, Express/Fastify routes, NestJS controllers, FastAPI decorators. Returns method, path, parameters, and types. |
| iac_analyzeA | Analyze infrastructure-as-code definitions. Parses Terraform (.tf), CloudFormation, Kubernetes manifests, and Docker Compose files. Returns resources, providers, and issues. |
| cicd_analyzeA | Parse CI/CD pipeline configurations. Supports GitHub Actions, GitLab CI, Jenkins (Jenkinsfile), and CircleCI. Returns pipeline names, jobs, steps, triggers, and dependencies. |
| monorepo_analyzeA | Analyze monorepo workspace relationships. Supports npm/yarn/pnpm workspaces, Cargo workspaces, Lerna, Nx, and Turborepo. Shows packages, internal dependencies, and issues. |
| perf_profileA | Analyze performance: parses V8 CPU profiles (.cpuprofile), webpack bundle stats, detects large source files, and flags heavy npm dependencies with lighter alternatives. Returns severity-ranked findings. |
| scaffoldA | Generate boilerplate code based on detected project conventions. Returns generated code as text output — does NOT write files to disk. Templates: component (React), route (Express), test, service, hook, util. Auto-detects TypeScript, testing framework, CSS framework, and ORM. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| health://status |
TDQS
Scored across 42 tools
Most tools have distinct purposes, but there are overlapping pairs: find_secrets is a subset of security_scan, and find_dead_code overlaps with find_references. Several analysis tools (code_metrics, analyze_file, codebase_map) target similar territory, though detailed descriptions mostly help an agent choose correctly.
All tools use consistent snake_case and are readable. However, the pattern mixes verb_noun (search_code, analyze_file, find_todos) with noun-only or noun_noun phrases (code_metrics, dependency_graph, db_schema, api_contracts, scaffold), plus a git_ prefixed cluster.
42 tools is heavy (well above the 15-tool comfort zone), spanning many sub-domains (search, git, security, IaC, CI/CD, DB, API, monorepo, perf, scaffolding). The breadth justifies much of it, but the surface feels sprawling and could be consolidated.
Coverage is unusually broad, spanning code search, structural analysis, security, quality, architecture, git history, DB/API/IaC/CI-CD/monorepo analysis, and scaffolding. Minor gaps remain (read-only git with no commit/push, no test execution or lint/format tools, scaffold produces text but writes nothing).