ChatGPTClaudeGrok / X / CursorGemini

dsh-codebase-memory-mcp: A DSH plugin that brings a code knowledge graph to DeepSeek Harness

lovedolove/dsh-codebase-memory-mcp

Tools & CapabilitiesVerified
Listed on 2026-10-01
Page last updated 2026-11-15

A Codebase Memory MCP bridge plugin for DeepSeek Harness that registers six knowledge-graph code tools for code search, AST snippets, architecture analysis and call-graph tracing, with an auto-started graph Web UI.

dsh-codebase-memory-mcp is a code knowledge graph bridge plugin for DeepSeek Harness that exposes an external runtime's indexing and querying power on the model-facing tool surface. It targets the pain of slow, token-hungry code hunting with grep and file-by-file reading in large repositories by letting the model query structured graph data directly. Once enabled it auto-starts a background daemon with its graph-visualization Web UI, registers graph tools for project listing, search, AST snippets, architecture analysis, and call-graph tracing, injects usage policy plus a bundled skill, and offers a /cbm command for the runtime path and indexed projects.

How to Install

install
npmdsh plugin --profile <your-profile> add @lovedolove/dsh-codebase-memory-mcp

Replace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.

Category
Tools & Capabilities
Platform
DSH Plugin
Author
lovedolove
Distribution
Plugin

dsh-codebase-memory-mcp Key Features

Six knowledge-graph code toolsAuto-started daemon and graph UIBundled codebase-memory skillInjects system-prompt policy/cbm command for index status
Listed on dsh-plugin.org

dsh-codebase-memory-mcp Repo Summary

What Does It Do?

Codebase Memory MCP is a DSH plugin for DeepSeek Harness that bridges a code knowledge graph into the harness tool surface. It solves the problem of slow, token-hungry code hunting with grep and file-by-file reading in large repositories by letting the model query structured graph data instead. The plugin is only a bridge: indexing and querying are performed by the external codebase-memory-mcp runtime. It is maintained by LoveDoLove under the MIT license.

Core Features

  • Registers six knowledge-graph code tools on the DSH tool surface: project listing, search, AST snippets, architecture analysis, call-graph tracing, and code search.
  • Auto-starts a background daemon with its graph-visualization Web UI as a child process on load, restarts it automatically if it exits, and disposes it on shutdown.
  • Injects a knowledge-graph policy into the system prompt so the model knows when to prefer graph tools over grep or plain file reads.
  • Ships a bundled agent skill, loadable through the skill tool, noting that graph queries return precise structural results in roughly 500 tokens versus about 80K for grep.
  • Provides a /cbm slash command that reports the resolved executable path, the Web UI link, and the projects currently indexed in the daemon.
  • Degrades gracefully and detects executables cross-platform: only the tools service is a hard dependency, and lookup covers an environment override, user and system directories, PATH, and a WSL interop fallback.

How to Use This Plugin?

After enabling it in DSH, the plugin starts the background daemon and prints the Web UI address, which you can open to inspect the code graph. Then simply ask the model to search projects, pull symbol snippets, analyze architecture, or trace call graphs, and type /cbm whenever you want to see which projects are indexed. Note that the plugin depends on an external runtime: install that executable per the official instructions before booting DSH, otherwise the daemon will not start and the graph tools will not be registered; if you install it later, reload the profile.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: lovedolove/dsh-codebase-memory-mcp. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub
ChatGPTClaudeGrok / X / CursorGemini

DSH Plugin FAQ