rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
English · 简体中文
MCP server manager for DeepSeek Harness (dsh): a sidebar panel that lists every MCP server configured in the current profile, toggles it hot (no restart), shows its runtime phase, and estimates how many input tokens it costs you.
MCP tool definitions are sent with every request. Turning off a server you are not using today cuts input tokens immediately — but doing that by hand means editing cordis.patch.yml and restarting. This plugin makes it one click, and tells you what each click is worth.
MCP icon in the sidebar's panel rail (one click, no settings dialog), plus a tab under Settings → Plugins for when you are already there.moduleName === '@deepseek-ai/dsh-mcp-client', not by id prefix. Each row shows serverName, patchId, transport, endpoint, call timeout, whether a startup failure blocks boot, and which layer (bundle / profile patch / home patch) defines it.pluginManager remote — the same write path the Plugins page uses — so layering, hot reload, rollback and restart-required / overridden outcomes behave exactly like DSH itself. The panel never writes YAML by hand.fiberPhase (active, failed, …) and prints the startup diagnostic verbatim when a server fails to connect.localStorage, so it survives a page refresh), plus select-all / clear. Batch actions run serially and report how many succeeded and how many failed — a failure is never presented as success, and keep selected only refuses to run with nothing ticked rather than silently disabling everything.tools/list against that server, then reports the tool count and an estimated token footprint. The number is an estimate, deliberately labelled as one.readOnlyReason) show a greyed switch with the reason as its tooltip.zh / en), light and dark themes via the host design tokens.From a plugin market listing (recommended):
插件市场 / Discover → dsh-mcp-cost → Install
Or from the CLI:
dsh plugin add dsh-mcp-cost
Either way the package ships its own dsh.bundle patch layer, so the loader entry appears automatically — there is no cordis.patch.yml to edit. After installing, refresh the browser page once so the client module is loaded, and the MCP icon appears in the sidebar.
Manual install (no dsh plugin): copy the package into <DSH_HOME>/profiles/<profile>/node_modules/dsh-mcp-cost and add
- insert:
- id: mcp-manager
name: dsh-mcp-cost
to that profile's cordis.patch.yml, then refresh the page.
dsh Web profile (the provider / pluginManager is part of the default profile).color-mix() (any current Chromium, Firefox or Safari).Two halves in one package:
| Half | File | Job |
|---|---|---|
| Host | lib/index.js |
Reads the profile's patch layers to describe each MCP entry, and performs the MCP handshake when you press Probe. Registers two routes on ctx.webServer: GET /api/mcp-cost/state and GET /api/mcp-cost/probe?patchId=… |
| Client | lib/client.js |
The panel (window.__ModuleLoader__ factory form). Listing and toggling call ctx.remote.pluginManager; details and probing call the two routes above |
The host half intentionally imports nothing from @deepseek-ai/* — only Node built-ins — so the package does not pin itself to a harness version and needs no build step.
JSON(tool definitions).length / 1.6 plus the server's instructions character count. Different tokenizers will differ; use the number to rank servers, not to bill anyone.dsh web does by default.npx/Docker.stdio and streamable-http.stdio server spawns its command (npx …); the first probe of such a server can be slow.See DEVELOPING.md for the layout, the HTTP API, the self-check scripts, and the update loop.
MIT.
给 DeepSeek Harness(dsh)用的 MCP 服务器管理面板:在侧边栏一列里看见当前 profile 的所有 MCP 服务器,一键启停(热生效、不用重启),显示运行态,并估算每个服务器每轮要花掉多少输入 token。
MCP 的工具定义是每轮请求都会发送的。关掉今天不用的服务器,输入 token 立刻下降——但手工做这件事意味着改 cordis.patch.yml 再重启。这个插件把它变成一次点击,并且告诉你这一次点击值多少 token。
MCP 图标(一步直达,不经过设置对话框),以及 设置 → 插件 里的同名标签页。moduleName 认条目(@deepseek-ai/dsh-mcp-client),不猜 id 前缀;每行展示 serverName、patchId、传输方式、地址、调用超时、启动失败是否阻塞,以及它定义在哪一层。pluginManager remote,和插件页是同一条写入路径:分层覆盖、热重载、回滚、restart-required / overridden 都跟 DSH 一致。面板从不手写 YAML。enabled 之外还显示 fiberPhase;启动失败的条目会把报错原文展开。localStorage,刷新页面还在),外加全选与清空。批量串行执行,如实汇报成功与失败的数量;「只保留勾选」在一个都没勾时会拒绝执行并提示,而不是悄悄把服务器全关掉。tools/list,给出工具数与估算 token(明确标注是估算)。市场里搜 dsh-mcp-cost 安装,或者:
dsh plugin add dsh-mcp-cost
包自带 dsh.bundle 补丁层,条目会自动出现,不需要改 cordis.patch.yml。装完刷新一次页面,侧边栏就会出现 MCP 图标。
stdio 与 streamable-http 两种传输。stdio 服务器会真的起子进程(比如 npx …),第一次可能较慢。MIT。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek-harness。