Local MCP server mapping team code conventions, patterns, and edit impact across 30+ languages with search and memory tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag ā we're steadily working through the catalog.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Codebase Context.
search_codebaseHybrid search + decision card when `intent="edit"
get_team_patternsPattern frequencies, golden files, conflict detection
get_symbol_referencesConcrete references to a symbol (count + snippets)
rememberRecord a convention, decision, gotcha, or failure
get_memoryQuery team memory with confidence decay scoring
get_codebase_metadataProject structure, frameworks, dependencies
You're tired of AI agents writing code that "just works" but still misses how your team actually builds things. They search too broadly, pick generic examples, and spend tokens exploring before they understand the shape of the repo.
codebase-context changes the first step. Start with a bounded conventions map that shows the architecture, dominant patterns, and strongest local examples. Then search for the exact file, symbol, or workflow you need.
Here's what codebase-context does:
Starts with a bounded conventions map - The first call shows architecture layers, active patterns, golden files, and next calls without dumping vendored repos, fixtures, generated output, or oversized entrypoint lists into the default surface.
Finds the right local example - Search does not just return code. Each result comes back with pattern signals, file relationships, and quality indicators so the agent can move from the map to the most relevant local example instead of wandering through raw hits.
Knows what is current - Conventions are detected from your code and git history, not only from rules you wrote. The map distinguishes what is common from what is rising or declining, and points at the files that best represent the current direction.
Adds support signals when you need them - Team memory and edit-readiness checks stay available, but as supporting context after the map and search have already narrowed the work.
Map first, search second, local-first throughout. Your code never leaves your machine by default.
See the current discovery benchmark for the checked-in discovery-only proof. The gate is still pending_evidence, and claimAllowed remains false.
Real CLI output against angular-spotify, the repo used for the launch screenshots.
Lead signal: pattern drift and golden files

This is the part most tools miss: what the team is doing now, what it is moving away from, and which files are the strongest examples to follow.
Before editing: preflight and impact

When the agent searches with edit intent, it gets a compact decision card: confidence, whether it's safe to proceed, which patterns apply, the best example, and which files are likely to be affected.
More CLI examples in docs/cli.md. Full walkthrough: demo.md on GitHub.
The server runs in two modes. Use stdio unless you need multiple clients connected at once:
| Mode | How it runs | When to use |
|---|---|---|
| stdio (default) | Process spawned by the client | One AI client talking to one or more repos |
| HTTP | Long-lived server at http://127.0.0.1:3100/mcp | Multiple clients sharing one server |
Client support at a glance:
| Client | stdio | HTTP |
|---|---|---|
| Claude Code | Yes | No (stdio only) |
| Claude Desktop | Yes | No |
| Cursor | Yes | Yes ā .cursor/mcp.json with type: "http" |
| Windsurf | Yes | Not yet |
| Codex | Yes | Yes ā --mcp-config flag |
| VS Code (Copilot) | Yes | No |
| OpenCode | Yes | Not documented yet |
Copy-pasteable templates: templates/mcp/stdio/.mcp.json and templates/mcp/http/.mcp.json.
Full per-client setup, HTTP server instructions, and local build testing: docs/client-setup.md.
Get a conventions map of your codebase before exploring or editing:
Your AI agent uses the same map via the codebase://context MCP resource on first call.
Three commands to understand a repo before you edit it:
This is also what your AI agent consumes automatically via MCP tools; the CLI is the human-readable version of the same map-plus-search flow.
search_codebase)One call returns ranked results with file, summary, score, compact type (componentType:layer), pattern trend signals, relationship hints, related team memories, a search quality assessment, and a preflight decision card when intent="edit". The decision card shows ready (boolean), nextAction when not ready, patterns (do/avoid), bestExample, impact coverage ("3/5 callers in results"), and whatWouldHelp.
Default output is lean ā if the agent wants code, it calls read_file. Add includeSnippets: true for inline code with scope headers (e.g. // AuthService.getToken()).
See docs/capabilities.md for the full field reference.
get_team_patterns)Detects what your team actually does by analyzing the codebase: adoption percentages for DI, state management, testing, and library patterns; trend direction (Rising / Stable / Declining) from git recency; golden files ranked by modern pattern density; conflicts when two approaches both exceed 20%.
remember + get_memory)Record a decision once. It surfaces automatically in search results and preflight cards from then on. Conventional commits (refactor:, migrate:, fix:, revert:) from the last 90 days auto-extract into memory during indexing ā no setup required.
Memory types: convention, decision, gotcha, failure. Confidence decay: conventions never decay, decisions 180-day half-life, gotchas/failures 90-day. Stale memories get flagged instead of blindly trusted.
| Tool | What it does |
|---|---|
search_codebase | Hybrid search + decision card when intent="edit" |
get_team_patterns | Pattern frequencies, golden files, conflict detection |
get_symbol_references | Concrete references to a symbol (count + snippets) |
remember | Record a convention, decision, gotcha, or failure |
get_memory | Query team memory with confidence decay scoring |
get_codebase_metadata | Project structure, frameworks, dependencies |
get_style_guide | Style guide rules for the current project |
detect_circular_dependencies | Import cycles between files |
refresh_index | Full or incremental re-index + git memory extraction |
get_indexing_status | Progress and stats for the current index |
One server, multiple repos. Three cases:
| Case | What happens |
|---|---|
| One project | Routing is automatic |
| Multiple projects, active project already set | Routes to the active project |
| Multiple projects, ambiguous | Returns selection_required ā retry with project |
project accepts a project root path, file path, file:// URI, or relative subproject path (e.g. apps/dashboard).
If you get selection_required, retry with one of the paths from availableProjects. Full routing details and response shapes in docs/capabilities.md.
10 languages with full symbol extraction via Tree-sitter: TypeScript, JavaScript, Python, Java, Kotlin, C, C++, C#, Go, Rust. 30+ languages with indexing and retrieval coverage, including PHP, Ruby, Swift, Scala, Shell, and config formats. Angular, React, Next.js, and NestJS have dedicated analyzers; everything else uses the Generic analyzer with AST-aligned chunking when a grammar is available.
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/patricksys-codebase-context)<a href="https://allmcps.com/mcp/patricksys-codebase-context"><img src="https://allmcps.com/api/badge/patricksys-codebase-context?style=directory" alt="Codebase Context on AllMCPs" /></a>