Bridges the Codebase Memory MCP code knowledge graph into DSH and keeps indexed repositories fresh with a debounced filesystem watcher. Windows-only MCP bridge (the watcher half is cross-platform); auto-installs its npm CLI via npx on first start.
Install
# from a prebuilt release tarball
dsh plugin --profile web add "https://github.com/andyfan1094/dsh-codebase-memory/releases/download/v0.2.1/dsh-codebase-memory-0.2.1.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:andyfan1094/dsh-codebase-memory
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
中文文档 | English
Local DSH bundle that connects Codebase Memory MCP through the official @deepseek-ai/dsh-mcp-client bridge, and ships a file-system watcher that keeps the knowledge graph fresh.
Runtime
codebase-memory-mcp@0.10.8- Windows AMD64 release SHA-256:
b43ad982994c4d829670749e08d3b622a74bb20041fc0a7d02bef6113f81c34d - MCP namespace:
mcp__codebase_memory__* - Graph UI: http://127.0.0.1:9749
Bundles
The package registers two Cordis bundles in cordis.patch.yml:
| Bundle id | Purpose |
|---|---|
mcp-codebase-memory |
Bridges the upstream MCP server into DSH so all mcp__codebase_memory__* tools (search_graph, detect_changes, get_architecture, index_repository, …) are exposed natively. |
dsh-codebase-memory-watcher |
Same package, second bundle id; spins up a chokidar watcher per project, debounces file edits, and re-runs index_repository via the global codebase-memory-mcp CLI. |
The watcher never owns the MCP client connection — it shells out to codebase-memory-mcp cli index_repository '{"repo_path":"..."}' for each rebuild, which is acceptable because the upstream indexer is fast enough on small projects (< 30 s for dsh-github).
Watcher routes (auto-registered when webServer is available)
| Method + path | Body / query | Effect |
|---|---|---|
GET /api/dsh-codebase-memory/watcher/list |
– | List every persisted watcher with status, lastRun, lastDurationMs, lastError, … |
GET /api/dsh-codebase-memory/watcher/status?id=<id> |
– | Same payload for a single watcher. |
POST /api/dsh-codebase-memory/watcher/start |
{ repoPath, debounceMs?, mode?, ignored?, watchedExtensions? } |
Start a watcher (persists state, returns the new id). |
POST /api/dsh-codebase-memory/watcher/stop |
{ id } or ?id= |
Stop + mark stopped (state kept). |
POST /api/dsh-codebase-memory/watcher/rebuild |
{ id } |
Trigger an immediate rebuild regardless of pending edits. |
POST /api/dsh-codebase-memory/watcher/restart |
– | Restart every non-stopped watcher from persisted state. |
POST /api/dsh-codebase-memory/watcher/auto-attach |
– | Call list_projects on the MCP server and start a watcher for each project not already covered. |
GET /api/dsh-codebase-memory/watcher/cli-info |
– | Report the resolved codebase-memory-mcp.exe path. |
Defaults (configurable in cordis.patch.yml)
debounceMs:5000(5 s quiet period before rebuild)mode:moderate(type-aware LSP call/usage resolution;fastskips similarity,fullenables similarity + every file)autoAttach:true(start a watcher for every project the MCP server already knows at boot)usePolling:false(native file notifications by default; enable polling only for filesystems that miss events because it increases CPU and disk activity)ignored:**/node_modules/**,**/.git/**,**/dist/**,**/build/**,**/.next/**,**/.turbo/**,**/.codebase-memory/**,**/.pnpm-store/**,**/target/**,**/__pycache__/**,**/.venv/**watchedExtensions:.ts,.tsx,.js,.jsx,.mjs,.cjs,.py,.go,.rs,.java,.cs,.rb,.php,.vue,.svelte
State persistence
Watcher records live in ~/.dsh/dsh-codebase-memory/watcher.json and are written with owner-only permissions where the platform supports them. Plugin disposal closes live handles without changing the persisted intent; the next DSH Web start re-creates every watcher that the user did not explicitly stop.
Screenshots

Install
Download the newest dsh-codebase-memory-*.tgz from Releases and add it to the profile:
dsh plugin --profile web add D:\downloads\dsh-codebase-memory-0.2.0.tgz
For local development, install from a checkout instead:
dsh plugin --profile web add link:D:/项目/dsh-codebase-memory
Restart the DSH Web host after installation.
Remove
dsh plugin --profile web remove dsh-codebase-memory
The global runtime remains pinned independently and can be removed with npm uninstall -g codebase-memory-mcp.
Links
More in this category
yjh051108/dsh-routing-suite★ 7176
One repository, three parts: a runtime injector for DSH plugin packages (inject, hot-reload, unload, promote a dev staging tool to the front, route self-heal, plus a settings-page plugin manager that lists, unloads and drags folders in to internalize), a task-aware reasoning-mode router agent preset (router-standard / router-spec / router-react), and a graded two-level task protocol whose six tools (commit_star, lock_stage, revise_do, edit_plan, mark_task, redteam_verdict) pin task state to disk. The injector implementation ships in-tree, so the install carries its own behaviour rather than a dependency list.
strukto-ai/mirage#dsh★ 3626
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
hust-open-atom-club/oh-dsh★ 312
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
lire1131/dsh-undo-savepoint★ 154
Undo/redo & rollback system for DSH: every config change is auto-snapshotted; undo/redo/restore to any version from the WebUI or the offline CLI/GUI tools (works even when DSH fails to boot).
Fishquito7/dsh-skill-mcp-panel★ 124
Manages DSH skills and MCP servers from the web settings: skill cards with hot enable/disable, workspace scopes, groups, batch migration and drag-and-drop import, plus stdio/HTTP MCP CRUD with connection tests, secret redaction and the unified dsh-panel CLI.
kanneiren/dsh-network-settings★ 109
Visualize the DSH process network path on Windows or WSL with layered DNS/TCP/TLS/HTTP probes, detect stale proxy configuration, and apply snapshot-guarded repairs.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.