DeepSeek Harness 插件

mtmdsh

Optional DeepSeek Harness bundle for codebase-memory-mcp(英文原文)

跳到安装方式

来源信息

GitHub 仓库
codeh007/mtmdsh
最近更新
2026年8月18日
分类
工具与能力
GitHub stars
0
载体类型
plugin
包路径
packages/mtm-codebase-memory
目录证据
上游声明已找到 dsh.bundle
证据路径
packages/mtm-codebase-memory/package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/codeh007/mtmdsh/tree/HEAD/packages/mtm-codebase-memory
插件名:mtmdsh
作者:codeh007

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器2 个文件
README.md来源说明 · 只读预览

mtm-codebase-memory

Optional DeepSeek Harness profile bundle for the local codebase-memory-mcp server.

What it provides

This package adds one profile patch row for DSH's official @deepseek-ai/dsh-mcp-client bridge. The bridge starts the codebase-memory-mcp executable over stdio and exposes its discovered tools under the stable mcp__codebase_memory__* namespace.

The package does not include or install the native server. Indexes, cache files, daemon processes, and project selection remain owned by codebase-memory-mcp.

Prerequisites

  • Node.js 22.19 or newer.
  • An installed DSH web profile with the official MCP client available.
  • The codebase-memory-mcp executable available on PATH.

The local integration was checked with codebase-memory-mcp 0.8.1 and the DSH release line installed on the development host. Keep the DSH core packages on one release line when publishing or deploying this bundle.

Install

After publishing the package:

~~~sh dsh plugin --profile web add mtm-codebase-memory ~~~

For a local checkout, install the package directory instead:

~~~sh dsh plugin --profile web add /path/to/mtmdsh/packages/mtm-codebase-memory ~~~

The bundle is profile-wide by design. Once installed, every agent preset in the profile can see the MCP tools. A new DSH host/session is required after changing the profile composition; existing sessions keep their composition.

First use

The server does not auto-index a workspace. In a new DSH session:

1. Call mcp__codebase_memory__list_projects or mcp__codebase_memory__index_status. 2. If the workspace is not indexed, call mcp__codebase_memory__index_repository with its absolute repo_path. 3. Use search_graph before trace_path when the exact symbol name is unknown. 4. Use get_code_snippet only after discovering the qualified symbol.

The model-facing names are generated from serverName: codebase_memory; do not change that namespace casually because it changes the visible tool names.

Configuration

The shipped row uses these defaults:

  • transport: stdio
  • command: codebase-memory-mcp
  • working directory: DSH's process working directory
  • extra environment: empty
  • startup failure: the official client default

To constrain indexing, add a later row with the same id in the profile's cordis.patch.yml and restate the complete MCP client configuration. Patch layers replace a row's whole config rather than deep-merging it. For example, set the server-owned CBM_ALLOWED_ROOT explicitly for a known workspace:

~~~yaml

  • insert:

- id: mtm-codebase-memory name: '@deepseek-ai/dsh-mcp-client' config: serverName: codebase_memory transport: stdio command: codebase-memory-mcp args: [] cwd: !!js process.cwd() env: CBM_ALLOWED_ROOT: !!js process.env.CBM_ALLOWED_ROOT ?? process.cwd() ~~~

Do not put credentials in this patch. DSH scrubs credential-shaped ambient variables before spawning stdio MCP children and merges only the explicit variables in config.env.

Verify

Inspect the composed profile without booting it:

~~~sh dsh --profile web --dump-config ~~~

Look for a layer named mtm-codebase-memory and the @deepseek-ai/dsh-mcp-client row. Then verify indexing and a structural query from two fresh sessions in the same profile.

Scope

This bundle targets local DSH stdio use. A Cloudflare Worker deployment needs a separate authenticated remote MCP service and tenant-aware repository/cache isolation; the native executable is not bundled into a Worker.