DeepSeek Harness 插件

yxy050208/multisim-mcp#deepseek-harness

Star 数 ★ 18 下载量(近 30 天) 1,047 分类 工具与能力 收录于 2026-08-23 npm multisim-mcp-dsh-plugin

将 DeepSeek Harness 连接到 Multisim MCP,用于生成电路、运行仿真、诊断与优化设计,并导出实验报告。

安装

# npm 包(预构建)

dsh plugin --profile web add multisim-mcp-dsh-plugin

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:yxy050208/multisim-mcp#path:/integrations/deepseek-harness

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

The npm bundle is multisim-mcp-dsh-plugin@1.3.0-rc.3. The public Python candidate remains multisim-mcp==1.3.0rc1; the source tree also contains the newer 1.3.0rc3 core. This adapter uses the configured Python MCP server; it does not bundle Python or Multisim. New capabilities remain limited to the documented validated circuit families.

Multisim MCP 的 DeepSeek Harness 插件

这是一个可独立安装的 Harness bundle。它把 Multisim MCP 注册为 mcp__multisim__* 工具,并默认使用 experiment Tool Profile。

安装

先在 32 位 Python 中安装与 bundle 同版本的 multisim-mcp,设置该解释器路径, 再把固定版本的 bundle 加入 Harness profile:

$env:MULTISIM_MCP_PYTHON = "C:\path\to\python32\python.exe"
& $env:MULTISIM_MCP_PYTHON -m pip install "multisim-mcp==1.3.0rc1"
dsh plugin --profile web add "multisim-mcp-dsh-plugin@1.3.0-rc.3"
dsh --profile web --dump-config

安装或升级 bundle 后应重新启动该 profile。发布前验证当前源码时,应先用 npm pack .\integrations\deepseek-harness --ignore-scripts 生成 .tgz,再把该 tarball 的绝对路径交给 dsh plugin ... add,以验证与最终发布相同的包边界。

维护者发布前必须运行 Registry 与包边界守卫。首次发布需要本地 2FA;后续版本使用 OIDC 暂存并由维护者 2FA 审批。完整步骤见 docs/DEEPSEEK_HARNESS_NPM_RELEASE.md。

可选环境变量:

  • MULTISIM_MCP_TOOL_PROFILE:core、experiment、optimization 或 full; experiment profile 还包含 build_behavioral_reference 和 run_behavioral_reference,用于明确的 DFF 行为级 ngspice 参考实验; 使用 optimize_design、global_optimize_design、autonomous_correct_design、 submit_global_optimization、submit_autonomous_correction 或 compare_design_variants 时选择 optimization(或 full); evaluate_design_patch 在 experiment、optimization 和 full 中可用; diagnose_design 在四种 profile 中均可用;
  • MULTISIM_MCP_TEMPLATE_DIR:本地组件模板包;
  • MULTISIM_MCP_WORKDIR:实验工作目录;
  • MULTISIM_MCP_ARTIFACT_EXPORT_DIR:允许导出产物的根目录。
  • 自然语言工程工具包括 RC、RLC 和 OPAMP 的 plan/run 入口;后台运行使用 submit_natural_engineering_job,kind 为 rc、rlc 或 opamp。
  • 后台任务通过 get_experiment_job 和 multisim://jobs/{job_id} 查询阶段、取消和证据。
  • 未验证元件模型和未通过拓扑/数值验收的任务会失败关闭,不会仅因生成 .ms14 就报告成功。
  • MULTISIM_MCP_MODEL_ROOT:compile_executable_netlist 重新哈希获批外部模型时唯一允许 读取的本地根目录;模型 URI 必须是该目录内的相对路径。

experiment profile 现在包含 compile_executable_netlist 和 approve_executable_netlist。它们目前只对 signal-passive 生成并确认内存中的引脚级 CircuitDesign / SPICE 预览,其他方案失败关闭;批准凭证只开放成图准备,不会写文件、 添加激励、执行分析或启动仿真。要消费审批凭证,调用 create_schematic_from_netlist 时同时传入完整预览 executable_netlist、审批凭证 netlist_approval 和预览中原样的 spice_netlist;工具会在写入 .ms14 前重新校验绑定, 拒绝缺凭证或被修改的网表,且不会启动仿真。 随后调用 approve_simulation_plan,把同一网表审批绑定到经过安全校验的 ExperimentSpec(分析命令、测量和验收限制);执行时将三份凭证传给 run_verified_circuit_experiment,它会在成图和仿真前再次验证绑定。

不要把 DEEPSEEK_API_KEY 放入 MCP 子进程配置。该凭据只属于 Harness。 MCP 服务器命令在 agent 沙箱之外执行,应当只安装可信发布物并固定版本。

English summary

This package is an installable DeepSeek Harness bundle for Multisim MCP. Install it with dsh plugin --profile web add multisim-mcp-dsh-plugin@1.3.0-rc.3, set MULTISIM_MCP_PYTHON to the 32-bit Python interpreter containing the compatible multisim-mcp release, and restart the profile. Model credentials remain in Harness and are never forwarded to the MCP child process. Maintainer release instructions are in docs/DEEPSEEK_HARNESS_NPM_RELEASE.md.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。