1. Conduid
  2. Developer Tools
  3. Codebase Context
MCP server · Developer Tools

Codebase Context

Codebase Context gives AI agents understanding of your codebase through semantic code search, team conventions, patterns, and memory, so they use fewer tokens, spend less time, and produce better, more familiar output.

64Good

Scored 1 hours ago · breakdown

About Codebase Context

Codebase Context is an MCP server published by PatrickSys in the Developer Tools category: codebase Context gives AI agents understanding of your codebase through semantic code search, team conventions, patterns, and memory, so they use fewer tokens, spend less time, and produce better, more familiar output. Conduid read 12 tools from its source: detect_circular_dependencies, get_code_relationships, get_codebase_health, get_codebase_metadata, get_indexing_status, get_memory and 6 more. It is published to npm as codebase-context and starts with npx.

The repository has 69 stars and 12 forks, is licensed MIT, and its last commit was on 7 Nov 2026. The latest release is v2.3.0 (18 Apr 2026): Features 02-03: implement keyword-index symbol reference lookup (ccfc564) 02-03: register get_symbol_references MCP tool (6f6bc3a) 03-01: add frozen controlled eval fixt… It follows v1.10.0 (15 Apr 2026), and the 5 most recent releases go back to v1.8.1 (5 Mar 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include devtools, context-engineering, code-intelligence and ai-coding.

Install

Claude Code
claude mcp add codebase-context -- npx -y codebase-context@2.4.0
Run
npx -y codebase-context@2.4.0
From source
git clone https://github.com/PatrickSys/codebase-context

Tools (12)

detect_circular_dependenciesAnalyze the import graph to detect circular dependencies between files. Circular dependencies can cause initialization issues, tight coupling, and maintenance problems. Returns all detected cycles sorted by length (shorter cycles are often more problematic).
ParameterTypeDescription
scopestringOptional path prefix to limit analysis (e.g., 'src/features', 'libs/shared')
get_code_relationshipsFollow verified import or re-export relationships up to three hops from one indexed file. Returns source lines and freshness diagnostics; imports never imply runtime calls.
ParameterTypeDescription
directionstring
file *stringIndexed repository-relative file path.
max_hopsnumberHop limit from 1 to 3; defaults to 2.
max_nodesnumberOutput node cap from 1 to 100; defaults to 50.
get_codebase_healthGet actionable codebase health signals from the latest index. Returns the highest-risk files and their reasons, or a single file when requested.
ParameterTypeDescription
filestringOptional file path to inspect a single file-level health record.
levelstringOptional minimum health level to return.
limitnumberMaximum number of files to return when no file is specified (default: 10).
get_codebase_metadataGet codebase metadata including framework information, dependencies, architecture patterns, and project statistics.
get_indexing_statusGet current indexing status: state, statistics, and progress. Use refresh_index to manually trigger re-indexing when needed.
get_memoryRetrieves team conventions, architectural decisions, and known gotchas. CALL BEFORE suggesting patterns, libraries, or architecture. Filters: category (tooling/architecture/testing/dependencies/conventions), type (convention/decision/gotcha), query (keyword search).
ParameterTypeDescription
categorystringFilter by category
querystringKeyword search across memory and reason
typestringFilter by memory type
get_style_guideQuery style guide rules and architectural patterns from project documentation.
ParameterTypeDescription
categorystringFilter by category (naming, structure, patterns, testing)
querystringQuery for specific style guide rules (e.g., "component naming", "service patterns")
get_symbol_referencesFind current-source references across the files recorded by the last successful index. Returns observed usageCount, bounded snippets, parser confidence, and coverage.
ParameterTypeDescription
limitnumberMaximum number of usage snippets to return (default: 10)
symbol *stringSymbol name to find references for (for example: parseConfig or UserService)
get_team_patternsGet actionable team pattern recommendations based on codebase analysis. Returns consensus patterns for DI, state management, testing, library wrappers, etc.
ParameterTypeDescription
categorystringPattern category to retrieve
refresh_indexRe-index the codebase. Supports full re-index or incremental mode. Use incrementalOnly=true to process changed files. Omit skipEmbedding to preserve the last successful mode; true disables embedding and reranker models, false opts into semantic embeddings. Mode changes require a full rebuild.
ParameterTypeDescription
incrementalOnlybooleanIf true, only re-index files changed since last full index (faster). Default: false (full re-index)
reasonstringReason for refreshing the index (for logging)
skipEmbeddingbooleanTrue selects model-free indexing; false explicitly opts into semantic embeddings. Omit to preserve the last successful mode.
rememberCALL IMMEDIATELY when user explicitly asks to remember/record something. USER TRIGGERS: - "Remember this: [X]" - "Record this: [Y]" - "Save this for next time: [Z]" DO NOT call unless user explicitly requests it. HOW TO WRITE: - ONE convention per memory (if user lists 5 things, call this 5 times) - memory: 5-10 words (the specific rule) - reason: 1 sentence (why it matters) - Skip: one-time features, code examples, essays
ParameterTypeDescription
category *stringBroader category for filtering
memory *stringWhat to remember (concise)
reason *stringWhy this matters or what breaks otherwise
scopeobjectOptional scope for this memory. Use { kind: "file", file } or { kind: "symbol", file, symbol }.
type *stringType of memory being recorded. Use "failure" for things that were tried and failed - prevents repeating the same mistakes.
search_codebaseSearch the indexed codebase. Default compact mode returns at most 6 ranked results with light graph context (importedByCount, topExports, layer), a patternSummary, bestExample, nextHops, and response-budget metadata. Use mode="full" for today's richer response with full hints arrays and all memories — identical shape as before this parameter existed. IMPORTANT: Pass the intent="edit"|"refactor"|"migrate" to get preflight: edit readiness check with evidence gating.
ParameterTypeDescription
filtersobjectOptional filters
includeSnippetsbooleanInclude code snippets in results (default: false). Open returned paths with your host file reader; CBC does not expose a file-reading tool.
intentstringOptional. Use "edit", "refactor", or "migrate" to get the full preflight card before making changes.
limitnumberMaximum number of results to return (default: 5)
modestringResponse mode. compact (default): max 6 results with light graph context, pattern summary, best example, next hops, and budget metadata. full: today's richer shape + budget metadata.
query *stringNatural language search query

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.6K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
  • !No dynamic code executionScanned 99 source files and found 1 call to eval or shell execution, in src/index.ts:1321. Review how tool inputs reach them before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdio and Streamable HTTPsrc/index.ts:79, src/server/http.ts:17
Starts other programs
2 callssrc/index.ts:1321, src/review-cli.ts:136
Outbound network calls
1 callsrc/embeddings/openai.ts:45
Writes or deletes files
30 callssrc/cli-init.ts:575, src/cli-map.ts:90, src/core/index-generation.ts:343
Lockfile
pnpm-lock.yaml

Pattern matches on the source text of 99 files: places to read, not proof of what the code does at run time.

Releases

v2.3.0v2.3.0 · 18 Apr 20262.3.0 (2026-04-17) Features 02-03: implement keyword-index symbol reference lookup (ccfc564) 02-03: register get_symbol_references MCP tool (6f6bc3a) 03-01: add frozen controlled eval fixture and local codebase (46736ed) 03-03: add…
v1.10.0v1.10.0 · 15 Apr 20261.10.0 (2026-04-14) Features add HTTP transport mode alongside stdio (8e97d0f) add HTTP transport mode and server config file support (3c8c273) add react and nextjs analyzers (3da89f9) add server config file support for pre-registering…
v1.9.0v1.9.0 · 19 Mar 20261.9.0 (2026-03-19) Features add workspace-aware multi-project routing (#67) (edb1350) Bug Fixes make exclude patterns recursive to prevent index pollution (#76) (a814b24) prevent orphaned processes via stdin/ppid/onclose lifecycle guards…
v1.8.2v1.8.2 · 5 Mar 20261.8.2 (2026-03-05) Bug Fixes restore npx installs for published package (107bc14)
v1.8.1v1.8.1 · 5 Mar 20261.8.1 (2026-03-05) Bug Fixes get-team-patterns: filter out legacy testing framework categories from patterns (ed5c858) git: run tests only on pre-push (785d28b) git: tighten pre-push formatting enforcement (a6d95fc)

README

The repository's README runs to about 1.6K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Codebase Context

How do I install Codebase Context?

In Claude Code, run claude mcp add codebase-context -- npx -y codebase-context@2.4.0. Other MCP clients take the command after "--" in their server configuration.

Is Codebase Context safe to use with an AI agent?

Its trust score is 64 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Conduid's scan of 99 source files found that it serves MCP over stdio and Streamable HTTP, starts other programs (2 calls), makes outbound network calls (1 call) and writes or deletes files (30 calls). Its dependencies are pinned by pnpm-lock.yaml. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Codebase Context still maintained?

Yes — the last commit was 24 days ago. The repository has 69 stars and 12 forks and 21 open issues.

What tools does Codebase Context provide?

Conduid read 12 tools from the source: detect_circular_dependencies, get_code_relationships, get_codebase_health, get_codebase_metadata, get_indexing_status, get_memory, get_style_guide, get_symbol_references and 4 more. 10 of them publish their parameters, listed under Tools above.

What license is Codebase Context released under?

The repository declares the MIT license. That applies to the latest release, v2.3.0, as well.