D

dsh-mcp-adapter

github.com/auggie246/dsh-mcp-adapter

v0.5.0 模型与账号 可执行外部程序以 shell 执行命令写入文件

DSH plugin,通过一个 mcp proxy 工具和「Settings > MCP」页面,把 agent 连接到 MCP 服务器。

作者原文(英文)

DSH plugin connecting the agent to MCP servers through one mcp proxy tool and a Settings > MCP page.

中文简介由 DeepSeek 模型翻译,仅供参考。

分类
model
发布
2026-09-30
版本
v0.5.0

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注2需留意4一般16未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • src/host/nav-icon.js:10import { execFileSync } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注1 处命中
    • src/host/nav-icon.js:66return join(execFileSync('npm', ['root', '-g'], { encoding: 'utf8' }).trim(), '@deepseek-ai', 'dsh')
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意10 处命中
    • src/host/legacy-import.js:52const writeFileFn = deps.writeFile ?? ((path, text) => writeFile(path, text))
    • src/host/nav-icon.js:105writeFileSync(file, source.replace(match[0], `${match[0]}${insert}`))
    • src/host/nav-icon.js:113writeFileSync(file, source.replace(MCP_BRANCH, ''))
    • src/host/oauth.js:94await fs.mkdir(directory, { recursive: true, mode: 0o700 })
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意6 处命中
    • src/host/manager.js:768const dispose = ctx.connection.fetch.register({
    • …-dual-generation-settings-api.md:17*Widening (0.2.0 check):* DSH 0.2.0-rc.2 will not load the Adapter at all: `dsh-app-boot`'s compatibility gate evaluates…
    • …pc-on-shared-api-fetch-routes.md:5The Adapter mounts each Settings RPC endpoint instead as an **exact Fetch route** through the documented public seam `co…
    • …pc-on-shared-api-fetch-routes.md:7Considered options: declaring `webServer` in the caller's `inject` was ruled out by experiment — the refused read happen…
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 接触凭据或密钥credentials一般78 处命中
    • lib/client.js:191function secretKeysFromView(view, serverName, field) {
    • lib/client.js:194return namespace.secrets.filter(
    • lib/client.js:195(secret) => secret.set === true && secret.path.length === 4 && secret.path[0] === "mcpServers" && secret.path[1] === ser…
    • lib/client.js:196).map((secret) => secret.path[3]).sort();
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般9 处命中
    • src/host/legacy-import.js:51const readFileFn = deps.readFile ?? ((path) => readFile(path, 'utf8'))
    • src/host/nav-icon.js:52if (JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8')).name === '@deepseek-ai/dsh') {
    • src/host/nav-icon.js:87if (existsSync(file)) return file
    • src/host/nav-icon.js:95const source = readFileSync(file, 'utf8')
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般6 处命中
    • src/host/nav-icon.js:125dshRoot: options.dshRoot ?? process.env.DSH_ROOT,
    • src/host/oauth.js:31export function tokenStorePath({ home, env = process.env } = {}) {
    • src/host/oauth.js:45export function createFileTokenStore({ home, env = process.env, deps = {} } = {}) {
    • src/host/skill.js:34export function resolveSkillsRoot(env = process.env, homedir = defaultHomedir) {
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般1 处命中
    • README.md:280- Run `pnpm test` before submitting. The suite covers the host, the client settings controller, the 0.1.7 entry-config w…
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
以 shell 执行命令shell-exec高关注1
写入文件writes-files需留意10
发起网络请求network需留意6
接触凭据或密钥credentials一般78
读取文件reads-files一般9
读取环境变量reads-env一般6
动态加载模块dynamic-import一般1

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 39 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 6 条已公开的安全公告 (最高等级:中):

等级依赖包编号摘要
中@modelcontextprotocol/sdkCVE-2026-25536@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
修复版本:1.26.0 详情 →
中@modelcontextprotocol/sdkCVE-2026-104850MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
修复版本:1.31.0, 2.2.0 详情 →
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情 →
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情 →
未分级@modelcontextprotocol/sdkCVE-2026-0621Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
修复版本:1.25.2 详情 →
未分级@modelcontextprotocol/sdkCVE-2025-66414Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
修复版本:1.24.0 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件