DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Mcp Diff — DeepSeek Harness 插件(DSH Plugin)
← Plugins
M

dsh-mcp-diff

Mcp Diff

在 DeepSeek Harness 网页聊天中显示可识别文件变更的差异卡片——MCP 文件系统调用(edit_file、write_file)、内置 edit/write,以及会修改文件的 bash 命令(heredoc 替换、sed -i、cat/tee/重定向写入)。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:Fakek0f3sT/dsh-mcp-diff#42ae60c234bfa81a71be124db025f30119d46cc0
README兼容性版本
A diff card rendered by dsh-mcp-diff in the DeepSeek Harness web chat

兼容性与来源证明

Mcp Diff 以 dsh-mcp-diff 发布,当前版本为 0.7.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/2

版本

0.7.0stable
2026/9/2
0.6.0stable
2026/9/1
0.5.0stable
2026/8/31
查看其余 4 个版本收起版本
0.4.0stable
2026/8/31
0.3.0stable
2026/8/30
0.2.0stable
2026/8/30
0.1.1stable
2026/8/27

相关插件

正在加载相关插件…

最新版
0.7.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 3
周下载
0
最近提交
2026/9/2
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README

dsh-mcp-diff

A client plugin for the DeepSeek Harness (Web GUI) that turns every file mutation it can confidently parse into a uniform diff card in the chat — collapsed by default, with per-line highlighting (green for additions, red for deletions).

Covers the filesystem MCP server (edit_file / write_file / move_file / create_directory), the built-in DSH tools (edit / write), and recognizable file-mutating bash commands — one look for all of them. Bash shapes the parser cannot confidently identify (chmod, ln, rsync, dd, git state changes, …) keep the plain terminal card: a missed card beats a wrong one.

A diff card rendered by dsh-mcp-diff in the DeepSeek Harness web chat

Why

By default DSH draws a diff only for its own file tools (edit, write), with its own renderer. When the agent edits files through the @modelcontextprotocol/server-filesystem MCP server, the call is named mcp__filesystem__edit_file / mcp__filesystem__write_file — there is no registered toolview for it, so the chat shows only a generic block with no diff.

The plugin:

  • registers a toolview under the MCP keys and builds the diff from the server response (a ready unified diff with context and @@ headers) or from the call arguments when there is no response yet (write_file, a still-running edit_file);
  • also overrides the built-in edit / write, unifying their contextual hunks (a per-line LCS: shared lines read as neutral context instead of being doubled);
  • renders move_file and create_directory as compact informational cards — source → destination, the created path, both workspace-relative — since they carry no diff lines;
  • makes every card's path openable: a click hands it to the host's file opener (the same channel the native tool rows use), which resolves it against the session workspace and opens the file in your IDE/editor;
  • renders everything as one card built on a native <details> — collapsed by default, the header shows the path + +N -M, and it expands on click.

Bash edit cards

When the agent edits files through bash instead of a file tool (a python3 - heredoc with old/new blocks, sed -i, cat > file <<EOF, tee, > file redirects), DSH shows a plain terminal block and tracks no "files touched" — so the plugin owns the bash toolview and adds a card only for commands it can confidently parse as line mutations:

  • replace — a heredoc script that reads a file, .replace()s old/new triple-quoted blocks and writes it back: the card shows the file, real del/add lines and +N -M derived from those blocks;
  • write — cat > f <<EOF, tee [-a] f <<EOF, bare > f / >> f: the path always, the added lines when the content is spelled out in the command;
  • in-place — sed -i / perl -pi with explicit file tokens: the path only;
  • path ops — mkdir, mv, cp, rm, touch with literal path arguments: an informational card naming the operation and its paths (no diff lines exist for these). Anything non-literal — $VAR, globs, cd chaining — keeps the plain terminal card.

Every other bash call (ls, git status, builds, grep…) keeps a plain terminal-like card — it is never turned into a diff. Such a card gains a small warning chip when the command matches an unambiguous destructive signature (rm -rf, chmod 777, git reset --hard, git checkout ., git clean -f, curl … | sh, mkfs, dd of=, shred) — an annotation of the command text, never a mutation claim.

The card is marked bash edit and carries a footnote: intended change parsed from the bash command — not an edit/MCP tool result. The client sees only the command text and its output (no filesystem access), so the diff is what the script claims to do, with the full command and the output tail one click away. Dynamic paths ($VAR, globs) and unsupported shapes are left unrendered on purpose: a missed card is better than a wrong one.

Open file links

Every path a card shows — the diff header, a move_file destination, the paths of a bash mutation — is a link: clicking it calls the host's file opener (openFile), the same channel the native tool rows use. The host resolves the path against the session workspace (bash paths against the command's own working directory) and opens the file in your IDE/editor. A path without a workspace context (an unusual host setup) stays plain text, and so does any path that would resolve outside the session workspace — an absolute or ~ target parsed out of a bash command, .. traversal, a bash call working outside the workspace. Rendered content never triggers an open of an arbitrary host file.

Install

# from npm (prebuilt, recommended)
dsh plugin --profile web add dsh-mcp-diff

# or from GitHub (built on install)
dsh plugin --profile web add github:Fakek0f3sT/dsh-mcp-diff

dsh plugin add is a pnpm forwarder: it adds the package to your profile (~/.dsh/profiles/web) and, since the plugin declares dsh.bundle, automatically includes it in dsh.profile.bundles — nothing to wire by hand. Installed from GitHub, lib/ is built in place (the prepare script); from npm it ships prebuilt.

Important: DSH picks up its plugin set only at startup — after installing, restart dsh web and refresh the GUI page.

Check that the bundle is served:

curl -s http://127.0.0.1:3080/plugins/dsh-mcp-diff/client.js | head -c 80
Manually from a clone
git clone https://github.com/Fakek0f3sT/dsh-mcp-diff.git
cd dsh-mcp-diff && npm install && npm run build
cd ~/.dsh/profiles/web
npm install /path/to/dsh-mcp-diff
{
  "dependencies": { "dsh-mcp-diff": "link:./node_modules/dsh-mcp-diff" },
  "dsh": { "profile": { "bundles": [ "…", "dsh-mcp-diff" ] } }
}

Configuring for another MCP server

The toolview keys are set for the server name filesystem. If your filesystem MCP server is named differently (the serverName field in the config), edit the key constants in src/client/index.tsx (MCP_TOOL_KEYS, MCP_MOVE_FILE_KEY, MCP_CREATE_DIR_KEY — keys of the form mcp__<serverName>__…). The edit / write keys live there too — remove them if you do not want to override the built-in renderer.

Development

npm install
npm run build
npm run test   # the self-checks (bash-mutation, diff, path-containment) via tsx

Compatibility

Tested on DSH 0.1.1-rc.2. The plugin imports only platform modules (react, ui-primitives, ui-slots, runtime/client) — ui-tool internals are not imported.

License

MIT