Skip to main content
Glama

Website License: MIT Homebrew NuGet VS Marketplace Open VSX vmikhailov/code-explorer MCP server LinkedIn Telegram

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.

  1. VS Code maps microservices, HTTP/gRPC/GraphQL routes, message broker flows, and SQL table lineage straight from source code.

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

  3. Invariant Gates enforce 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.Cli

Prebuilt 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 all

CLI & 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

ce scan [path]

scan_workspace

Initialize (if needed) and incrementally index workspace into .codeexplorer/graph.db.

ce context "<task>"

get_task_context

One-shot task subgraph with focal symbols, call chains, SQL table owners, active gates, and file read plan.

ce taxonomy

get_taxonomy

Active graph ontology schema, node/edge specs (--kind), or index status (--status).

ce map [project]

get_architecture_map

Workspace overview, zoomed C1 to C3 / tier topologies, and Mermaid or C4 export.

ce deps [project]

get_project_dependencies

Directed project-to-project and package dependencies (all, runtime, build).

ce contracts <service>

get_service_contracts

Service ingress/egress contracts, handler coordinates, and cross-service flows.

ce symbol <name> / ce search

find_symbol

Substring AST lookup and hybrid trigram + vector search across symbols, routes, and tables.

ce outline [path]

get_file_outline

Structural AST outline of a file or directory without reading full source text.

ce snippets <file:s-e>

fetch_code_snippets

Batch reader for exact 1-based source line ranges on disk.

ce callers <target>

get_callers

Direct inbound callers/consumers, or concrete interface/DI implementations (-m <method>).

ce trace <start> <end>

get_call_chain

Directed invocation paths between functions or cross-service flows (trace flow).

ce impact <symbol>

analyze_code_impact

Multi-hop upstream and downstream blast radius across callers, endpoints, and projects.

ce lineage <table>

inspect_data_lineage

SQL queries, ORM entities, functions, and services reading or writing a table.

ce test [impact|coverage]

get_affected_tests

Test Impact Analysis from diffs/symbols and static test reachability coverage.

ce gate [check|anomalies]

check_semantic_gates

Evaluate Semantic Invariant Gates (SIG-*), baselines, or dead-code/god-object checks.

ce query "<cypher>"

execute_custom_read_cypher

Execute read-only Cypher queries or saved .codeexplorer/queries/ templates.

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

To 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_SUMMARY

When 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):

  1. Layer 1 (Physical): Workspace, Folder, File, GitSettings.

  2. Layer 2 (Project): Project, Package, EntryPoint, DEPENDS_ON.

  3. Layer 3 (Syntactic & Dataflow): Type, Function, Member, Parameter, CallArgument, CallLiteral, Scope, CALLS, IMPLEMENTS.

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

  5. Layer 5 (Cross-Service & Domain): Resolved cross-project CALLS, HANDLES_QUERY, HANDLES_COMMAND, HANDLES_EVENT, PUBLISHES_TO, SUBSCRIBES_TO, READS_FROM, WRITES_TO, OWNS, plus Domain and BoundedContext groupings.

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

.cs, .csproj, .sln, .slnx

ASP.NET Core, Minimal APIs, gRPC, HttpClient, EF Core, Dapper, MassTransit, Wolverine, Hangfire, MediatR

TypeScript / JS

Stable

.ts, .tsx, .js, .jsx, package.json

NestJS (REST, GraphQL, DI, @Module cycles), Next.js, Express, Fastify, Hono, tRPC, Prisma, TypeORM, Kysely, BullMQ

Go

Stable

.go, go.mod

Gin, Fiber, Echo, net/http, gRPC, Watermill, Asynq, Kafka-Go, GORM, sqlx, sqlc, Ent

Java & Groovy

Stable

.java, .groovy, .xhtml, .gwt.xml, .ui.xml, pom.xml, build.gradle

Spring Boot/Cloud, Quarkus, Micronaut, JBoss Seam 2, JSF/Facelets, GWT/UiBinder, JPA/Hibernate, Liquibase, MyBatis, jOOQ, Kafka, OpenFeign

Kotlin & Android

Stable

.kt, .kts, AndroidManifest.xml

Spring, Ktor, Exposed, Room, SQLDelight, Coroutines, Retrofit/OkHttp, Hilt/Koin, Jetpack Compose

Python

Stable

.py, pyproject.toml, requirements.txt

FastAPI, Litestar, Django, Flask, SQLAlchemy, Celery, Dramatiq, FastStream, Temporal

Rust

Stable

.rs, Cargo.toml

Axum, Actix Web, Tonic gRPC, Reqwest, SQLx, SeaORM, Diesel, Tokio

PHP

Stable

.php, .phtml, .inc, composer.json

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

.pl, .pm, .t, cpanfile, Makefile.PL

Packages, cron/CLI entrypoints, DBI SQL & heredoc lineage, Switch, LWP::UserAgent, Mail::Sendmail

SQL

Stable

.sql & embedded SQL strings

PostgreSQL, T-SQL, MySQL, SQLite, ClickHouse, BigQuery DDL & READS_FROM / WRITES_TO lineage

Terraform / HCL

Stable

.tf, .tfvars, terragrunt.hcl

Resources, modules, variables, data sources, outputs, Terragrunt hierarchy, provider & infrastructure links

ColdFusion

Beta

.cfc, .cfm

Components, functions, cfquery SQL lineage, outbound HTTP calls

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

Case 09: Zero-Spoiler Coding Suite

twentyhq/twenty (36.5k files, TS/NestJS)

ripgrep + read_file

1.43× faster (19m 38s vs 28m 02s) · 2.24× fewer tokens (3.08M vs 6.90M)

15/15 Jest specs & 21/21 SIG gates (55 vs 104 file reads; 20 vs 41 cmds)

Case 08: 4-Task Feature Suite

twentyhq/twenty (24.5k files, TS/NestJS)

CBM

1.29× faster (34m 14s vs 44m 6s) · 9.75M vs 10.03M tokens

0/4 vs 4/4 violated tasks (14/14 unit tests pass; gates caught & fixed 4/4 copied legacy leaks)

Case 01: Monorepo Deep Audit

twentyhq/twenty (24.5k files, TS/NestJS)

CBM

6.0× faster (1m 33s vs 9m 15s) · 7.0× fewer tokens (242K vs 1.68M)

100% vs 3.4% native graph recall (381/381 from graph.db, 0 file reads)

Case 02: 324-Service Audit

Multi-Repo (324 services, 13.8k files)

ripgrep + Python

7.00× faster (4m 16s vs 29m 52s) · 25.07× fewer tokens (686K vs 17.19M)

100% vs 82% recall (18 vs 285 turns; rg missed 9 services)

Case 05: .NET Monolith Audit

OrchardCore (334 projects, 7.8k files)

ripgrep

2.51× faster (4m 25s vs 11m 04s) · 4.12× fewer tokens (3.91M vs 16.10M)

100% vs 92.7% recall (331/331 vs 307/331; 3.25× fewer file reads)

Cases 03 & 04: Graph Engine Recall

immich & twenty (371 ground-truth items)

CBM & graphify

17.6s (immich) / 147.3s (twenty) cold index · 4.3–4.7 ms Cypher

Code (L1–L3): 78% vs 38% (CBM) / 18% (graphify) · DB & Queues (L4–L5): 97.5%


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 tools
analyze_code_impactAnalyze Multi-Hop Refactoring Blast RadiusA
Read-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 AnomaliesA
Read-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 QueryA
Read-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 RangeA
Read-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 IdentifiersA
Read-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 CoverageA
Read-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 DiagramsA
Read-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 ChainA
Read-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 ImplementationsA
Read-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 OutlineA
Read-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 DependenciesA
Read-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 FlowsA
Read-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 PackA
Read-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 StatusA
Read-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 SubgraphA
Read-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 LineageA
Read-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 GraphA
Idempotent

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

    A4.4/5.0

    Scored across 17 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides AI agents with a live architecture model of a codebase, enabling queries for root cause analysis, blast radius, and dependency traversal through MCP tools.
      33
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Indexes 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.
      7
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Indexes 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.
      10
      MIT