npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@js2hou/dsh-mcp-manager

v0.1.5

Published

MCP visual manager plugin for DeepSeek Harness: inspect installed/enabled MCP servers, add/remove, enable/disable and view live connection status from the web GUI.

Readme

dsh-mcp-manager

npm version License DSH Desktop

dsh-market dsh-plugin-marketplace DSH 1024Store dshfind

✨ 功能一览

  • 📋 服务器列表:列出所有已安装/启用的 MCP 服务器(@deepseek-ai/dsh-mcp-client 实例)——serverName、传输方式(stdio / streamable-http)、URL / 命令、启用状态、加载阶段、已注册工具数
  • ➕ 新增 / ➖ 删除:表单添加 MCP 服务器(stdio 与 streamable-http,支持 env / headers / args / 超时 / failOnStartupError),带格式与重名校验;一键删除
  • 🔌 启用 / 停用:随时切换,工具随之热连接 / 热断开
  • 📶 连接状态:每台服务器实时状态胶囊(Connected · N tools / Failed / Loading / Disabled)+ 独立 Test 探测(initialize + tools/list,报告延迟与工具数)
  • ✏️ 编辑:在被编辑卡片原位展开表单,保存即应用
  • 🌏 多语言:界面文案跟随 DSH 语言(zh / en)实时切换
  • 💾 持久化:所有修改写入 profile 的 cordis.patch.yml,重启后保留;页面底部显示文件路径

🚀 安装

插件已收录至 dsh-marketdsh-plugin-marketplace

前置:DSH 已装好(dsh web 能正常运行)。

方式一 · AI Agent 安装

告诉 Agent:「请安装 dsh-mcp-manager 插件,插件仓库是 https://github.com/Js2Hou/dsh-mcp-manager」

方式二 · 插件市场安装(推荐)

任选一个插件市场:

  • DSH Desktop(社区桌面版):内置插件市场,选 DSH 1024Storedshfind 源,搜索 js2hou/dsh-mcp-manager 安装(同名插件较多,认准作者 Js2Hou);
  • dsh-market:搜索 js2hou/dsh-mcp-manager 一键安装;
  • dsh-plugin-marketplace:搜索 js2hou/dsh-mcp-manager 一键安装。

方式三 · dsh 命令安装

dsh plugin --profile web add @js2hou/dsh-mcp-manager

也可 GitHub 源安装(构建产物 lib/ 已入库,无需本地构建):

dsh plugin --profile web add github:Js2Hou/dsh-mcp-manager

macOS / Linux(Windows 装了 Git Bash 或 WSL 也可):

curl -fsSL https://raw.githubusercontent.com/Js2Hou/dsh-mcp-manager/main/scripts/install.sh | bash

Windows(PowerShell 5.1+ / pwsh)

irm https://raw.githubusercontent.com/Js2Hou/dsh-mcp-manager/main/scripts/install.ps1 | iex

装完硬刷新浏览器(Cmd/Ctrl+Shift+R),打开 设置 → MCP 即可看到管理页。若未出现 MCP 页签,重启一次 DSH(host 半首次挂载需要)。

macOS / Linux(bash)

cd ~/.dsh/profiles/web

# ① 放行「发布不足 24h」的新版本(装老版本可跳过;若已有该键,把下面那行并入其下即可)
printf '\nminimumReleaseAgeExclude:\n  - @js2hou/dsh-mcp-manager\n' >> pnpm-workspace.yaml

# ② 安装并自动挂载(npm 包;本地 checkout 请用 link: 绝对路径)
npx -y --package @deepseek-ai/dsh dsh plugin --profile web add @js2hou/dsh-mcp-manager

Windows(PowerShell)

cd ~\.dsh\profiles\web

# ① 放行新版本(一次性;若已有该键,把 - @js2hou/dsh-mcp-manager 并入其下即可)
Add-Content -Path pnpm-workspace.yaml -Value "`nminimumReleaseAgeExclude:`n  - @js2hou/dsh-mcp-manager"

# ② 安装并自动挂载
npx -y --package @deepseek-ai/dsh dsh plugin --profile web add @js2hou/dsh-mcp-manager

dsh plugin --profile web add 会自动:登记依赖 → 识别包内 dsh.bundle.patch → 注册进 dsh.profile.bundles 挂载,无需手改 cordis.patch.yml

本地开发:clone 仓库后在根目录执行 bash scripts/install.sh(Windows:powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1),脚本检测到 checkout 会自动用 link: 方式安装到 ~/.dsh/profiles/web;也可显式指定:dsh plugin --profile web add "link:C:/绝对路径/dsh-mcp-manager"

dsh plugin --profile web add @js2hou/dsh-mcp-manager

或重跑一次一键脚本;也可把 ~/.dsh/profiles/web/package.json 里的版本号改高后 pnpm install。本地 checkout 模式:git pullpnpm build(client 改动硬刷新浏览器即可;host 改动需重启 DSH)。

| 现象 | 原因与解决 | |---|---| | 插件市场搜不到 | 市场数据每日同步。稍后再搜,或改用「方式三」dsh 命令安装。 | | 报 minimum release age / 版本不足 24h | 装的版本发布不足 24 小时。等 24h 或重跑一次(脚本会自动补 minimumReleaseAgeExclude)。 | | 报「找不到 profile 目录」 | 先跑一次 dsh web,让它初始化 ~/.dsh/profiles/web。 | | 页面出现两个 MCP 页签 | 双挂载:~/.dsh/profiles/web/cordis.patch.yml 还留着旧的手动挂载行,删掉那段 - insert: ... mcp-manager ...(脚本会自动清)。 | | 装完没看到 MCP 页签 | 硬刷新(Cmd/Ctrl+Shift+R);仍没有就重启 DSH 一次(host 半首次挂载需要)。 | | Obsidian MCP 报 401 | 检查 headers 格式:应为 Authorization: Bearer <api-key>,不要带引号(表单已支持直接粘贴 "Key": "value" 自动去引号)。 | | 修改配置后未生效 | 本插件所有修改走 HMR 热应用,等 1–2 秒自动刷新;页面右上角可手动刷新。 |

📖 使用说明

打开 设置 → MCP

  • 添加服务器:填写 条目 ID、serverName、传输方式及对应字段(streamable-http 填 URL;stdio 填 command / args / env / cwd)。面板做格式与重名校验,重复的 id / serverName 会被拒绝。
  • 每张卡片显示实时状态、连接目标与工具数;可执行 启用 / 停用测试(连接探测)、编辑(原位表单)、删除
  • 页面底部显示正在编辑的补丁文件路径。

⚙️ 配置

插件自身在 loader 中的行配置支持一个可选字段:

| 字段 | 说明 | |---|---| | patchFile | 要编辑的用户补丁层绝对路径。默认 $DSH_HOME/profiles/web/cordis.patch.yml。 |

🏗️ 架构

  • 宿主端src/index.ts)注册一个仅限 loopback 的 Connection RPC 通道 /mcp-managerlist(遍历 ctx.loader 中的 @deepseek-ai/dsh-mcp-client 条目 + ctx.tools 统计工具数)、add / remove / setEnabled / update(编辑 profile 补丁层,持久化并经 HMR 应用)、probe(独立 MCP SDK 连接探测)、patchInfo。运行时零 @deepseek-ai 依赖(js-yaml 方言、isJsExpr 均内联),可放在任意路径安装。
  • 浏览器端src/client)注册 设置 → MCP 页(settings.section 槽位,order 18),经 ctx.locale 提供中英双语,与宿主端仅通过 RPC 通道通信——浏览器端不直接访问文件系统。
  • 测试 fixturetest/fixtures/mcp-test-server.mjs 是一个最小 MCP stdio 服务器,用于端到端验证。

开发

pnpm install
pnpm typecheck   # tsc --noEmit;tsconfig paths 指向你的 DSH 安装目录下的 lib/types
pnpm build       # esbuild:lib/index.js(宿主端)+ lib/client.js(ModuleLoader 浏览器 bundle)

许可证

MIT