code-explorer
Code Explorer MCP server indexes a codebase into a local graph and exposes tools to map architecture, trace dependencies and calls, assess impact, inspect lineage, find affected tests, and enforce architectural gates.
Initialize or incrementally reindex a workspace into
.codeexplorer/graph.dbwithscan_workspace.Inspect architecture maps and diagrams (overview, C1–C3, tiers, lineage, CQRS) with
get_architecture_map.Search symbols, routes, tables, topics, and projects; outline files/directories; fetch source snippets.
Query project/package dependencies and service contracts, entry points, and cross-service flows.
Find inbound callers, interface implementations, directed function call chains, and multi-hop blast radius.
Trace database table lineage across ORM entities, SQL queries, repository functions, and services.
Compile task-specific context packs with focal symbols, side effects, table owners, gates, and read plans.
Select affected tests from diffs/symbols and audit static test coverage reachability.
Evaluate semantic invariant gates, ratchet baselines, and structural anomalies (dead code, god objects, empty catches).
Run custom read-only OpenCypher queries or saved queries, and inspect graph ontology/index status.
Parses raw git unified diff output to detect modified files and line ranges, using them to select impacted regression tests.
Parses GraphQL resolvers and cross-service GraphQL contracts from the indexed codebase, surfacing them through service contract inspection and multi-hop distributed flow tracing.
Exports architecture topologies, dependency graphs, and database lineage as renderable Mermaid (and C4) diagram syntax for documentation and review.
Indexes NuGet package dependencies from project manifests, reporting package names, versions, runtime vs build scope, and project-level coupling.
Understands RabbitMQ message broker usage in indexed code, modeling publish/subscribe topics and producer-to-consumer flows, with support for collapsing broker nodes while preserving cross-service edges in topology views.
Indexes Terraform modules as external package dependencies alongside other package ecosystems, and supports Terraform-targeted semantic invariant gate rules.
Map, query, and check your codebase architecture
CodeExplorer indexes polyglot repositories into a single local SQLite database (.codeexplorer/graph.db) with a built-in OpenCypher-to-SQL compiler. It runs as a standalone native binary and a VS Code extension. No external runtime, Docker container, or graph database server is needed, and your code stays on your machine.
VS Codemaps microservices, HTTP/gRPC/GraphQL routes, message broker flows, and SQL table lineage straight from source code.CLI & MCP(ce/ce mcp) let coding agents query call chains, task context packs, blast radius, and data lineage in milliseconds instead of grepping blindly across files.Invariant Gatesenforce cross-service and layer rules in YAML and Cypher, with a SHA-256 baseline ratchet (ce gate ratchet --update) so CI blocks only net-new violations on brownfield code.
Related MCP server: code-graph-mcp
Installation
# macOS & Linux (Homebrew)
brew install vmikhailov/tap/ce
# VS Code / Cursor / Windsurf / Antigravity extension (manages 'ce' binary & MCP setup)
code --install-extension vmikhailov.code-explorer-vscode
# Standalone binary installer (macOS / Linux)
curl -fsSL https://code-explorer.app/install.sh | sh
# Standalone binary installer (Windows PowerShell)
irm https://code-explorer.app/install.ps1 | iex
# .NET Global Tool (any OS / architecture)
dotnet tool install -g CodeExplorer.CliPrebuilt standalone archives (osx-arm64, osx-x64, linux-x64, linux-arm64, win-x64, win-arm64) are attached to GitHub Releases. Extension builds are published on the Visual Studio Marketplace and Open VSX Registry. For agent plugins, run /plugin marketplace add vmikhailov/code-explorer then /plugin install code-explorer@code-explorer in Claude Code, or gemini extensions install https://github.com/vmikhailov/code-explorer in Gemini CLI.
Quick Start
# 1. Index workspace into .codeexplorer/graph.db (initializes automatically on first run)
ce scan
# 2. Explore architecture, blast radius, and SQL table lineage
ce map
ce impact OrderService.CreateOrder
ce lineage orders
# 3. Run ad-hoc Cypher or evaluate architectural gates
ce query "MATCH (a:Project)-[:DEPENDS_ON]->(b:Project) RETURN a.name, b.name"
ce gate check
# 4. Diagnose index health, parse issues, or uncovered framework/XML gaps
ce doctor --gaps
# 5. Configure MCP and agent instructions for Cursor, Claude Code, VS Code, Windsurf, etc.
ce configure allCLI & MCP Surface
CodeExplorer exposes the same 16 tools across the terminal CLI (ce <command> [--json]) and the stdio Model Context Protocol server (ce mcp).
{
"mcpServers": {
"code-explorer": {
"command": "ce",
"args": ["mcp"]
}
}
}CLI Command | MCP Tool | Purpose |
|
| Initialize (if needed) and incrementally index workspace into |
|
| One-shot task subgraph with focal symbols, call chains, SQL table owners, active gates, and file read plan. |
|
| Active graph ontology schema, node/edge specs ( |
|
| Workspace overview, zoomed C1 to C3 / tier topologies, and Mermaid or C4 export. |
|
| Directed project-to-project and package dependencies ( |
|
| Service ingress/egress contracts, handler coordinates, and cross-service flows. |
|
| Substring AST lookup and hybrid trigram + vector search across symbols, routes, and tables. |
|
| Structural AST outline of a file or directory without reading full source text. |
|
| Batch reader for exact 1-based source line ranges on disk. |
|
| Direct inbound callers/consumers, or concrete interface/DI implementations ( |
|
| Directed invocation paths between functions or cross-service flows ( |
|
| Multi-hop upstream and downstream blast radius across callers, endpoints, and projects. |
|
| SQL queries, ORM entities, functions, and services reading or writing a table. |
|
| Test Impact Analysis from diffs/symbols and static test reachability coverage. |
|
| Evaluate Semantic Invariant Gates ( |
|
| Execute read-only Cypher queries or saved |
Additional workspace helpers: ce doctor (--issues, --gaps, --report, --anonymize for index health, parse errors, and framework/XML coverage gaps), ce detector [list|validate|schema] (pluggable .codeexplorer/detectors/*.yaml Layer-4 detectors), ce status (node/edge summary), ce export (standalone Mermaid/C4 diagrams), ce serve (WebSocket/HTTP server for VS Code), and ce clear (reset index).
Semantic Invariant Gates
Linters check syntax and style within single files. Semantic Invariant Gates (SIG) verify structural and cross-service invariants across the full graph using declarative YAML rules (.codeexplorer/gates/*.yaml) and a Zero-Match Contract (0 rows = pass; ≥1 rows = violation with file:line:column coordinates).
id: SIG-P-B-001
name: Clean Architecture Layer Isolation
category: Architectural
platform: agnostic
scope: Module
dimension: Boundaries
severity: Error
target: "{target.name}"
message: "Core project '{source.name}' cannot depend on '{target.name}'"
query: |
MATCH (source:Project)-[:DEPENDS_ON]->(target:Project)
WHERE source.name CONTAINS "Core" AND target.name CONTAINS "Infrastructure"
RETURN source, target
ratchet:
enabled: true
baseline: baselines/SIG-P-B-001.jsonTo adopt strict rules in brownfield repositories without fixing legacy violations upfront, gates support SHA-256 ratchet baselines (.codeexplorer/baselines/*.json):
# 1. Freeze existing violations as tolerated baseline debt
ce gate ratchet --update
# 2. Pass when only baselined debt exists; fail (exit 1) on any net-new violation
ce gate check --format markdown >> $GITHUB_STEP_SUMMARYWhen legacy violations are removed, re-running ce gate ratchet --update tightens the ceiling so resolved debt cannot return.
VS Code Extension
The VS Code webview renders concentric service orbits, architectural tiers, upstream/downstream project flows, dependency matrices, and bounded context maps. Intermediate pass-through services or message brokers (Kafka, RabbitMQ, SQS) can be collapsed while keeping dashed producer-to-consumer links intact. Clicking any node opens its inbound/outbound calls, SQL tables, and topics with direct jumps to source lines, and the sidebar gate runner separates [NEW] violations from [TOL] baselined items.
Graph Ontology & Languages
Every entity in .codeexplorer/graph.db belongs to a 5-layer schema (interactive reference at code-explorer.app/ontology and docs/ontology.md):
Layer 1 (Physical):
Workspace,Folder,File,GitSettings.Layer 2 (Project):
Project,Package,EntryPoint,DEPENDS_ON.Layer 3 (Syntactic & Dataflow):
Type,Function,Member,Parameter,CallArgument,CallLiteral,Scope,CALLS,IMPLEMENTS.Layer 4 (Semantic Architecture):
Workload(Service,App,Worker,CliTool),Module(Library,TestSuite),Endpoint,Message,Topic,ExternalService,Policy,Job,Cache,Transaction,Database,DbSchema,Table,Query,Procedure,Cloud,CloudResource.Layer 5 (Cross-Service & Domain): Resolved cross-project
CALLS,HANDLES_QUERY,HANDLES_COMMAND,HANDLES_EVENT,PUBLISHES_TO,SUBSCRIBES_TO,READS_FROM,WRITES_TO,OWNS, plusDomainandBoundedContextgroupings.
Tree-sitter grammars, SQL/HCL parsers, and framework analyzers extract architectural semantics across 12 ecosystems (see code-explorer.app/architectures):
Language | Maturity | Files & Manifests | Representative Frameworks & Semantics |
C# / .NET | Stable |
| ASP.NET Core, Minimal APIs, gRPC, HttpClient, EF Core, Dapper, MassTransit, Wolverine, Hangfire, MediatR |
TypeScript / JS | Stable |
| NestJS (REST, GraphQL, DI, |
Go | Stable |
| Gin, Fiber, Echo, |
Java & Groovy | Stable |
| Spring Boot/Cloud, Quarkus, Micronaut, JBoss Seam 2, JSF/Facelets, GWT/UiBinder, JPA/Hibernate, Liquibase, MyBatis, jOOQ, Kafka, OpenFeign |
Kotlin & Android | Stable |
| Spring, Ktor, Exposed, Room, SQLDelight, Coroutines, Retrofit/OkHttp, Hilt/Koin, Jetpack Compose |
Python | Stable |
| FastAPI, Litestar, Django, Flask, SQLAlchemy, Celery, Dramatiq, FastStream, Temporal |
Rust | Stable |
| Axum, Actix Web, Tonic gRPC, Reqwest, SQLx, SeaORM, Diesel, Tokio |
PHP | Stable |
| Symfony, Zend Framework 1 (PSR-0 & PSR-4), Kirby CMS, Doctrine ORM/DBAL, Nette Database, PDO, Smarty/Twig, PHP 8 upgrade risk markers |
Perl | Stable |
| Packages, cron/CLI entrypoints, |
SQL | Stable |
| PostgreSQL, T-SQL, MySQL, SQLite, ClickHouse, BigQuery DDL & |
Terraform / HCL | Stable |
| Resources, modules, variables, data sources, outputs, Terragrunt hierarchy, provider & infrastructure links |
ColdFusion | Beta |
| Components, functions, |
Pluggable YAML Detectors & Coverage Diagnostics (ce doctor & ce detector)
When onboarding legacy or internal stacks, ce doctor --gaps audits .codeexplorer/graph.db and the file tree to surface unhandled file extensions, unrecognized XML dialects, unmatched framework packages, and modules missing expected endpoints or database lineage (use --report --anonymize for NDA-safe sharing).
Teams and AI agents can close Layer-4 framework gaps without editing or recompiling C# by dropping declarative YAML detectors into .codeexplorer/detectors/*.yaml (or ~/.codeexplorer/detectors/*.yaml):
schema_version: 1
id: internal-rpc-bus
name: Internal RPC & Event Bus
languages: [java, kotlin]
library_role: messaging
packages: ["com.acme.platform:rpc-bus*"]
messaging_brokers:
- protocol: acme-bus
listener_annotations: [BusSubscriber]
producer_annotations: [BusPublisher]
publish_methods: [publishEvent]Run ce detector schema --template to scaffold a detector, ce detector validate --strict to check ontology and regex safety, and ce scan to re-index automatically when detector files change.
Benchmarks
Reproducible benchmarks across brownfield feature tasks, multi-hop architectural audits, and deterministic ground-truth recall (371 verified items). Full methodology, raw agent transcripts, and scripts: code-explorer.app/benchmarks and benchmarks/README.md.
Case Study | Codebase | Baseline | Speed & Tokens | Recall & Governance |
|
|
|
| |
|
|
|
| |
|
|
|
| |
Multi-Repo ( |
|
|
| |
|
|
|
| |
|
|
| Code ( |
Scope, Limitations & Privacy
Where It Fits
Compared to LSP and SCIP indexers (
Sourcegraph,Serena), which give compiler-exact symbol resolution and single-language refactoring edits, CodeExplorer maps cross-service architecture (endpoints, queues, SQL lineage, blast radius) and works well alongside an LSP server.Compared to security CPGs (
CodeQL,Joern), CodeExplorer needs no build step and indexes polyglot services into one graph, though it is not an interprocedural taint or vulnerability scanner.Compared to single-language architecture test libraries (
ArchUnit,NetArchTest,dependency-cruiser), one Cypher query language checks boundaries across all languages, services, and databases at once.
Limitations
Analysis is static: reflection, dynamic dispatch, and URLs or topic names assembled at runtime can be missed, though string constants and simple concatenations are resolved. Call resolution relies on Tree-sitter syntax, imports, and DI bindings rather than full compiler type-checking, and cross-service edges are resolved within one indexed workspace (monorepo or multi-repo parent folder).
.NET SDK Packages
To embed the indexer or query compiler directly in .NET applications:
CodeExplorer.Indexing: self-contained polyglot workspace indexer with bundled Tree-sitter native runtimes (win/linux/osx,x64/arm64) and all language parsers.CodeExplorer.Cypher: standalone OpenCypher parser, AST, and SQLite SQL compiler.
Privacy & License
All parsing, indexing, Cypher execution, gate checks, and MCP requests run locally against .codeexplorer/graph.db with zero telemetry. The VS Code extension connects to GitHub Releases only if it needs to download the ce binary on first launch.
Released under the MIT License.
Available Tools
17 toolsanalyze_code_impactAnalyze Multi-Hop Refactoring Blast RadiusARead-onlyIdempotent
Compute the multi-hop transitive blast radius of modifying a symbol (class, interface, function, service, or database table), aggregating upstream callers, derived types, affected API endpoints, and downstream projects across multiple hops. Use before refactoring a shared symbol or contract to assess total downstream impact; for immediate 1-hop callers only use get_callers, and to select affected regression tests to run use get_affected_tests. Traverses transitive dependency and call edges in the indexed .codeexplorer/graph.db and returns YAML grouped into direct dependents, transitive dependents, impacted services/endpoints, and an overall risk classification.
Inputs: symbolName (required), workspacePath.
check_semantic_gatesEvaluate or List Semantic Invariant Gates and Code AnomaliesARead-onlyIdempotent
Evaluate Semantic Invariant Gates (architectural and platform rules) against the ratchet baseline, list configured gate definitions (listOnly=true), or detect structural code-health anomalies ('dead_code', 'god_objects', 'empty_catches', or 'all' via anomalies and projectName). Use default evaluation mode directly after code edits to enforce zero architectural regressions (the MCP server's live file watcher refreshes .codeexplorer/graph.db automatically; only call scan_workspace first if the repository is unindexed), set listOnly=true to browse gate IDs and FOIM coordinates without running queries, or pass anomalies with projectName to find unreferenced symbols, empty catch blocks, and oversized classes; for symbol blast radius use analyze_code_impact. Operates strictly in read-only mode against .codeexplorer/graph.db (combining category, platform, scope, dimension, and fileFilter as AND filters, grouping by 'file'/'symbol'/'callee' when groupBy is set, and capping output at limit items), returning YAML pass/fail results, gate catalogs, or anomaly lists.
Inputs: limit, scope, gateId, groupBy, +9 more.
execute_custom_read_cypherExecute Read-Only or Saved OpenCypher QueryARead-onlyIdempotent
Execute an ad-hoc read-only OpenCypher query (query), run a reusable workspace query from .codeexplorer/queries/ with parameter bindings (savedQuery and parameters), or list available saved queries (listSaved=true) against the workspace SQLite knowledge graph. Use when built-in graph tools do not cover a custom multi-hop pattern or when running workspace-specific domain queries; call get_taxonomy first to inspect populated node labels, relationship types, and property keys. Requires an indexed .codeexplorer/graph.db (unless listSaved=true), strictly rejects mutating Cypher clauses (CREATE, MERGE, DELETE, SET, REMOVE), enforces a query timeout and <10 KB inline response budget, and returns tabular YAML rows or the saved query catalog (returning a validation error if neither query, savedQuery, nor listSaved=true is supplied).
Inputs: query, listSaved, parameters, savedQuery, +1 more.
fetch_code_snippetsFetch Source Code Snippets by Line RangeARead-onlyIdempotent
Read exact source code line ranges from workspace files on disk for a batch of graph nodes or file coordinates passed as a YAML list. Use when inspecting implementation bodies of symbols discovered via find_symbol, get_callers, or execute_custom_read_cypher; to view a file's structural symbol list without reading source text use get_file_outline. Resolves each item's file_path relative to workspacePath, clamps start_line..end_line to valid file bounds (recording per-item errors if a file is missing without failing the batch), and returns YAML snippets in input order.
Inputs: nodes (required), workspacePath.
find_symbolFind Code Symbols and Ontology IdentifiersARead-onlyIdempotent
Search the indexed workspace graph for code declarations and architectural entities ('Class', 'Interface', 'Type', 'Function', 'Variable'/'Member', 'Endpoint', 'Table', 'Topic', or 'Project') using deterministic substring matching ('substring') or hybrid trigram and semantic vector similarity ('hybrid'). Use 'substring' when locating symbols by known or partial identifier name, and 'hybrid' for fuzzy or keyword discovery across routes, tables, topics, and code; to list all symbols inside a known file or folder path use get_file_outline, and to read source implementation lines use fetch_code_snippets. Queries .codeexplorer/graph.db case-insensitively (automatically routing 'Endpoint'/'Table'/'Topic'/'Project' filters or matchMode='hybrid' through ranked lexical-vector search and capping output at limit rows), returning YAML matches with kind, qualified name, file_path, and line coordinates (or an empty list if none match).
Inputs: name (required), limit, matchMode, symbolType, +1 more.
get_affected_testsAnalyze Affected Tests and Static Test CoverageARead-onlyIdempotent
Select unit and integration tests impacted by code edits (via filePath, filePaths, gitDiff, or symbolName) or audit static call-graph test reachability coverage across a project or path prefix (via coverageStatus, projectName, or pathPrefix). Use change selectors (filePath, filePaths, gitDiff, symbolName) to pick targeted regression tests after editing code, or set coverageStatus ('all', 'covered', 'uncovered') without change selectors to find untested production symbols; for non-test downstream dependents use analyze_code_impact. Evaluates static call-graph reachability in .codeexplorer/graph.db without running test processes (unioning change selectors in impact mode, or combining projectName, pathPrefix, and coverageStatus as AND filters capped at limit in coverage mode) and returns YAML test lists or coverage summaries.
Inputs: limit, gitDiff, filePath, filePaths, +5 more.
get_architecture_mapGet Workspace Architecture Map and DiagramsARead-onlyIdempotent
Inspect workspace architecture as structured YAML or renderable Mermaid/C4 diagram syntax across viewpoints: 'overview' (flat <1,000-token inventory of projects, languages, databases, endpoints, external services, and saved queries), 'clusters' (deterministic Leiden service clusters, fan-out pools, shared libraries, and inter-cluster boundary edges), 'c1' (system context), 'c2' (inter-service communication), 'c3' or 'project-map' (internal modules and circular dependency cycles of one project), 'tiers' (Clean Architecture layers), 'lineage' (database table read/write graph), or 'cqrs' (command/event pipelines). Use first when orienting on a repository, checking module cycles, or exporting architecture diagrams; for dedicated cluster drill-down or Personalized PageRank repository slicing use get_workspace_clusters, for filtered runtime vs build package edges use get_project_dependencies, and for detailed routes/topics or multi-hop distributed flows of one service use get_service_contracts. Reads the indexed .codeexplorer/graph.db in read-only mode (scoping to projectName when provided and adding shared libraries when includeLibraries=true) and returns YAML or diagram markup (or a standby notice if unindexed).
Inputs: view, format, projectName, workspacePath, +1 more.
get_call_chainTrace Function-to-Function Call ChainARead-onlyIdempotent
Find directed function-to-function call paths connecting a specific startFunction to a specific endFunction within the indexed code graph up to maxDepth hops. Use only when both the starting caller and destination callee are known; to list all direct 1-hop callers or concrete interface implementations use get_callers, for multi-hop transitive blast radius of one symbol use analyze_code_impact, and for cross-service HTTP/messaging flows use get_service_contracts with direction='flow'. Evaluates bounded shortest-path traversal (clamped to 1..10 hops) in .codeexplorer/graph.db without modifying state and returns all discovered call chains in YAML with ordered function names, file paths, and line numbers (or an empty result if no path connects them within maxDepth).
Inputs: endFunction (required), startFunction (required), maxDepth, workspacePath.
get_callersFind Inbound Callers or Interface ImplementationsARead-onlyIdempotent
List all direct 1-hop inbound callers, references, service consumers, or table/topic accessors targeting a named symbol or resource, or resolve concrete class implementations when methodName is specified for an interface or abstract base type target. Use without methodName to inspect immediate 1-hop consumers of target, or pass methodName to resolve polymorphic DI implementations of target.methodName; for multi-hop transitive blast radius use analyze_code_impact, and for point-to-point paths between two functions use get_call_chain. Queries CALLS, ACCESSED_BY, DEPENDS_ON, IMPLEMENTS, and INHERITS_FROM edges in .codeexplorer/graph.db (excluding test callers when includeTests=false) and returns YAML records with symbol, kind, file_path, and line coordinates (or an empty list if none match).
Inputs: target (required), methodName, includeTests, workspacePath.
get_file_outlineGet File or Directory Structural OutlineARead-onlyIdempotent
Extract the structural AST outline of a single source file (declared types, functions, members, and 1-based line ranges) or a directory (immediate subfolders, files, line counts, and top-level symbols) without reading raw source text. Use to inspect file or folder structure before fetching code ranges; to read actual source lines use fetch_code_snippets, and to search declarations across the workspace by name use find_symbol. Queries the indexed .codeexplorer/graph.db (switching output shape automatically based on whether filePath resolves to a file or directory, with '.' targeting the workspace root) and returns YAML symbol trees or folder summaries without truncating large files.
Inputs: filePath (required), workspacePath.
get_project_dependenciesGet Project and Package DependenciesARead-onlyIdempotent
List directed project-to-project references and external package dependencies (NuGet, npm, PyPI, Go, Maven, Cargo, and Terraform modules) from the workspace graph. Use when auditing package versions or project-level coupling; for symbol-level refactoring blast radius use analyze_code_impact, and for workspace topology or module cycle projections use get_architecture_map. Requires an indexed .codeexplorer/graph.db; combines projectFilter (matching source or target project name case-insensitively) with type ('runtime' vs 'build' vs 'all') and truncates output at limit edges, returning YAML rows with source project, target project/package, version, and dependency scope (or an empty list if none match).
Inputs: type, limit, projectFilter, workspacePath.
get_service_contractsGet Service Contracts, Entry Points, and Cross-Service FlowsARead-onlyIdempotent
Inspect communication boundaries and distributed propagation paths for a named service or project across HTTP/REST routes, gRPC services, GraphQL resolvers, CLI commands, background workers, and message broker topics. Use 'all', 'ingress', or 'egress' for static service contracts, 'entry_points' for internal handler symbols with file and line coordinates, or 'flow' to trace multi-hop cross-service HTTP/gRPC/broker propagation up to maxDepth hops; for intra-process function-to-function call paths between two methods use get_call_chain. Queries the indexed .codeexplorer/graph.db where serviceName matches case-insensitively (anchoring 'flow' traversal to entryPoint when provided and clamping maxDepth to 1..10), returning YAML contracts, handler coordinates, or distributed hop chains (or an empty result if none exist).
Inputs: serviceName (required), maxDepth, direction, entryPoint, +1 more.
get_task_contextCompile One-Shot Task Subgraph Context PackARead-onlyIdempotent
Compile a complete, token-compact (<4 KB) architectural context pack for a coding, bugfix, or refactoring task in a single call. Use when starting a feature, bugfix, or refactoring task to get the full architectural subgraph upfront before calling find_symbol or fetch_code_snippets. Given a natural-language task symptom, route, or domain keywords, resolves diversified anchor services/controllers/methods, expands 1-hop outbound side-effects (caches, queues, external calls) and inbound callers/endpoints, computes canonical owner services for every touched database table, checks module import cycle safety, flags ratcheted legacy debt traps in touched files, and returns a surgical file read plan.
Inputs: query (required), maxAnchors, includeGates, workspacePath.
get_taxonomyGet Graph Ontology Schema and Workspace StatusARead-onlyIdempotent
Inspect the workspace knowledge graph ontology and index health: omit kind and statusOnly to list all populated node labels, relationship types, and property keys in .codeexplorer/graph.db; pass kind to retrieve the formal static specification for one ontology node label; or set statusOnly=true to check workspace initialization status, database size, projects, and node counts. Use statusOnly=true to verify whether a repository is indexed before calling scan_workspace, and use the default schema output or kind lookup before writing queries for execute_custom_read_cypher; for an architectural inventory of services, endpoints, and databases use get_architecture_map. Operates strictly in read-only mode (resolving kind in memory without an indexed database, and returning status='not_initialized' or a standby notice when unindexed).
Inputs: kind, statusOnly, workspacePath.
get_workspace_clustersPartition Workspace into Architectural Clusters or Task SubgraphARead-onlyIdempotent
Partition large multi-repo or monorepo workspaces into deterministic architectural clusters (service clusters, structural fan-out pools such as integration connectors, and separated shared libraries), expand a single cluster or sub-cluster on demand (via clusterName), or extract a Personalized PageRank subgraph around 1-3 seed services, routes, or tables (via seeds). Use on large repositories (20+ projects or multi-repo workspaces) to inspect macro cluster boundaries without pulling hundreds of flat projects, pass clusterName to drill down into a cluster's internal units and boundary edges, or pass seeds to rank a tight task-focused repository slice; for a flat workspace inventory or Mermaid diagrams use get_architecture_map. Evaluates coarsened project dependencies, service calls, shared database tables, and messaging topics in .codeexplorer/graph.db with zero LLM dependency (applying manual overrides from .codeexplorer/clusters.json when present) and returns compact YAML.
Inputs: seeds, maxUnits, resolution, clusterName, +2 more.
inspect_data_lineageInspect Database Table Data LineageARead-onlyIdempotent
Trace end-to-end data lineage for a database table, identifying all ORM entities, SQL queries, repository functions, source files, and services that read, write, or migrate tableName. Use when investigating schema changes, table access patterns, or read/write ownership; for general code symbol callers use get_callers, and for visual lineage diagrams use get_architecture_map with view='lineage' and format='mermaid'. Queries READS_FROM, WRITES_TO, and IMPLEMENTED_BY edges in the indexed .codeexplorer/graph.db (matching tableName case-insensitively) and returns YAML detailing access operations (SELECT, INSERT, UPDATE, DELETE, DDL), calling functions, services, and file coordinates.
Inputs: tableName (required), workspacePath.
scan_workspaceInitialize and Index Workspace into Code GraphAIdempotent
Initialize (if needed) and index workspace source files, project manifests, AST symbols, call graphs, database schemas, and service contracts synchronously into the local .codeexplorer/graph.db SQLite cache. Use only when onboarding an unindexed repository, after major branch switches/external git operations, or when forcing a full rebuild (clear=true); when running via MCP, the server's live file watcher automatically refreshes .codeexplorer/graph.db in real time as files change, so do NOT call scan_workspace after routine edits. To check whether an index already exists without scanning use get_taxonomy with statusOnly=true. Automatically creates .codeexplorer/graph.db on first run, performs fast incremental file-hash indexing by default (scoping to path when specified), or purges and rebuilds the derived SQLite cache from scratch when clear=true without modifying any repository source files, returning YAML with indexed node and relationship counts.
Inputs: path, clear, workspacePath.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Every tool's description explicitly names the sibling tools it should not be confused with (e.g., get_workspace_clusters vs get_architecture_map 'clusters', get_callers vs get_call_chain vs analyze_code_impact, get_service_contracts 'flow' vs get_call_chain for intra-process). The main near-overlap — clusters as a view of get_architecture_map versus get_workspace_clusters — is resolved by the drill-down/PageRank framing. An agent can pick the right tool from the boundary notes alone.
All 17 names are lower snake_case verb_noun (get_workspace_clusters, find_symbol, analyze_code_impact, execute_custom_read_cypher, scan_workspace), with semantically accurate verbs rather than a forced single prefix. No camelCase or bare-noun outliers. The pattern is predictable enough that an agent can guess new names.
17 tools is slightly above the comfortable 3-15 band, but each covers a genuinely distinct facet (cluster, map, deps, contracts, outline, search, call chain, callers, impact, tests, lineage, gates, cypher, taxonomy, snippets, scan, task context) with no redundant entries. The breadth is justified by the size of the code-intelligence domain rather than tool sprawl.
The surface spans the full lifecycle: indexing (scan_workspace), health/ontology (get_taxonomy), navigation (find_symbol, get_file_outline), source retrieval (fetch_code_snippets), static analysis (callers, call chain, impact), tests, lineage, contracts, architecture maps, cluster slicing, gates, and an escape hatch (execute_custom_read_cypher). Minor gaps remain — no raw text/grep search or symbol-detail/definition tool beyond find_symbol — but agents can work around them via snippets and Cypher.
Maintenance
Related MCP Connectors
Shared context for your codebase: a hosted code knowledge graph over MCP. Free plan, OAuth sign-up.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceProvides AI agents with a live architecture model of a codebase, enabling queries for root cause analysis, blast radius, and dependency traversal through MCP tools.33Apache 2.0- AlicenseAqualityDmaintenanceIndexes a mono-repo into a knowledge graph and provides MCP tools to query code structure—packages, components, routes, HTTP calls—without file reads or grep round-trips.7MIT
- FlicenseBqualityCmaintenanceA Docker-based MCP server providing codebase memory and search tools. It enables storing/retrieving memories, regex search of code, and file summarization for AI assistants.231-
- AlicenseBqualityBmaintenanceIndexes a Python/JS/TS repository into a local SQLite knowledge graph so agents can trace callers, callees, imports, subclasses and covering tests, measure impact radius, rank diff risk, and summarize architecture without grepping files. Exposes these queries as MCP tools alongside an equivalent CLI, with no daemon, embeddings, or network access.10MIT