@vforvaick/pi-codebase-memory-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@vforvaick/pi-codebase-memory-mcpTrace the request flow for the login endpoint"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@vforvaick/pi-codebase-memory-mcp
Unofficial pi coding agent extension wrapping the codebase-memory-mcp binary.
Not affiliated with DeusData/codebase-memory-mcp. MIT.
What it does
Registers 9
cbm_*tools the LLM can call:cbm_index,cbm_projects,cbm_search,cbm_trace,cbm_architecture,cbm_snippet,cbm_query(Cypher),cbm_changes(impact analysis),cbm_coverage.Freshness gate: auto-reindexes the graph (mode=
moderate) before any read query when source has changed. The CBM binary's native watcher is inert in CLI / MCP-stdio mode (its daemon worker log stays 0 bytes, never fires), so without this gate the graph goes stale after every edit until a manualcbm_index.projectis auto-inferred from the session cwd, so callers rarely pass it.
Related MCP server: Satori
Prerequisites
pi coding agent installed.
codebase-memory-mcpbinary onPATH. Install from upstream:curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bashVerify:
codebase-memory-mcp --version.
Install
pi install npm:@vforvaick/pi-codebase-memory-mcpAfter install, restart pi.
Usage
In any repo:
cbm_index # one-time index (mode=moderate)
cbm_search .*Router.* # find symbols
cbm_trace myFunction --direction both
cbm_architectureOnce indexed, the graph auto-refreshes after edits (see Freshness gate below). Tools auto-appear in the function list.
Freshness gate
The extension keeps a per-cwd dirty flag, bumped by pi lifecycle hooks:
session_start-> mark cwd dirty (forces one reindex on first query, catches cross-session drift)tool_execution_endforedit/write/bash/ctx_execute/apply_patch(on success) -> mark dirtyuser_bash-> mark dirty conservatively
Before each read query (cbm_search, cbm_trace, etc.) the extension calls ensureFresh(cwd): if the cwd is dirty or git HEAD has drifted since the last index, it reindexes (mode=moderate) then serves the query. Race-safe via a per-cwd in-flight lock + dirty generation counter.
What the gate does NOT catch: mutations from external editors or other terminals (VSCode, sed in another shell) after the first query in a session. For those, run cbm_index manually.
Configuration
CBM_BINenvironment variable overrides the binary path. Default:codebase-memory-mcp(looked up onPATH).
Compatibility
Tested against
codebase-memory-mcpv0.9.0.Support policy: current + previous minor of
codebase-memory-mcp.Known v0.9.0 quirk:
check_index_coveragereturns "unknown tool" via MCP. This extension routes it throughclimode, where it works. Tool list parity (advertised vs callable) is tracked upstream.
Security
Runs the
codebase-memory-mcpbinary with the same filesystem access as your pi session.No telemetry. No network calls. Source is open - review before install.
pi packages run with full system access; review the source at the repo before installing.
License
MIT. (C) vforvaick.
Contributing
PRs welcome at github.com/vforvaick/pi-codebase-memory-mcp.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityBmaintenanceMCP server that exposes code tracing capabilities including journey flows, HTTP seams, and findings from indexed projects, allowing AI assistants to query software architecture.
- Alicense-qualityBmaintenanceAgent-safe code retrieval MCP server that indexes repositories and provides semantic search, file navigation, call graph analysis, and bounded file reading tools for coding agents.3,943,4673MIT
- Alicense-qualityCmaintenanceMCP server for semantic code search and dependency graph analysis. Indexes codebases into a knowledge graph with vector embeddings for AI-powered code understanding.16MIT
- Alicense-qualityBmaintenanceMCP server that builds a deterministic, source-traceable knowledge index of any codebase, enabling glossary lookup, code graphs, and exact-token search with every fact linked to its source file and line.161MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vforvaick/pi-codebase-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server