dsh-origin-plugin
github.com/Fantasality/dsh-origin-plugin
v2.7.3
界面与主题
可执行外部程序以 shell 执行命令动态执行代码
Drive OriginLab Origin scientific plotting from any AI via MCP - 62 tools: file import (CSV/TXT/XLSX, CJK-safe), plan-confirm flow with plan_hash staleness guard, domain templates (stacked spectra/XRD/dual-Y/forest/multi-panel), fine-grained editing (per
该插件尚未翻译,显示作者原文。
dshdsh-plugindsh-bundledeepseek-harnessmcpmodel-context-protocoloriginoriginlab
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注2需留意3一般17未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注2 处命中index.js:23import { spawnSync } from 'node:child_process'bin/dsh-origin-mcp.mjs:12import { spawnSync } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注1 处命中CHANGELOG.md:550`StdioClientTransport` 用 `cross-spawn` + `shell: false`(非 shell:true),含空格- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 动态执行代码
dynamic-code需留意1 处命中origin_engine.py:1734py_out = eval(py_expr, {"__builtins__": {}}, env)- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- 启动伪终端
spawns-pty需留意1 处命中- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 读取环境变量
reads-env一般20 处命中index.js:68const py = process.env.DSH_ORIGIN_PYTHON || 'python'bin/dsh-origin-mcp.mjs:22if (process.env.DSH_ORIGIN_PYTHON) candidates.push(process.env.DSH_ORIGIN_PYTHON)bin/dsh-origin-mcp.mjs:54{ stdio: 'inherit', env: process.env })smoke/four_ways_client.mjs:15if (process.env.DSH_SDK) return process.env.DSH_SDK;- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般10 处命中index.js:28readFileSync(new URL('./package.json', import.meta.url), 'utf8'),bin/dsh-origin-mcp.mjs:37if (!existsSync(entry)) {smoke/four_ways_client.mjs:22if (existsSync(join(c, 'client', 'index.js'))) return c;smoke/four_ways_client.mjs:87const good = body.ok && fs.existsSync(out) && fs.statSync(out).size > 0;- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般7 处命中package.json:4"description": "Drive OriginLab Origin scientific plotting from any AI via MCP - 62 tools: file import (CSV/TXT/XLSX, CJ…smoke/four_ways_client.mjs:27const { Client } = await import(pathToFileURL(join(SDK_DIR, 'client', 'index.js')).href);smoke/four_ways_client.mjs:28const { StdioClientTransport } = await import(pathToFileURL(join(SDK_DIR, 'client', 'stdio.js')).href);smoke/issue1_apply_effect.mjs:37const { Context } = await import(pathToFileURL(CORDIS).href)- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 2 |
| 以 shell 执行命令 | shell-exec | 高关注 | 1 |
| 动态执行代码 | dynamic-code | 需留意 | 1 |
| 启动伪终端 | spawns-pty | 需留意 | 1 |
| 读取环境变量 | reads-env | 一般 | 20 |
| 读取文件 | reads-files | 一般 | 10 |
| 动态加载模块 | dynamic-import | 一般 | 7 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 83 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)