DeepSeek Harness 插件

wxlei2004/dsh-plugins#dsh-thesis-workbench

Star 数 ★ 0 下载量(近 30 天) 1,124 分类 工作流与自动化 收录于 2026-10-13 npm dsh-thesis-workbench

论文/实证分析工作台:在对话里直接驱动 IBM SPSS。spss_check(环境自检)、spss_variables(列出 .sav 变量:名称/标签/类型/测度水平/案例数)、spss_data(抽查案例数据,检查缺失与异常值)、spss_run 与 spss_run_file(执行 SPSS 语法或 .sps 文件,自动修正 CD / GET FILE 相对路径)、spss_analyze(一键跑频数、描述统计、交叉表卡方、t 检验、单因素方差、相关、线性回归)。结果经 OMS 导出为结构化表格。自动探测 SPSS 25-31;内置 MCP server 为零依赖 stdio 服务。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-thesis-workbench

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

dsh plugin --profile web add github:wxlei2004/dsh-plugins#path:/packages/dsh-thesis-workbench

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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

Thesis / empirical-analysis workbench for DeepSeek Harness: run SPSS syntax, one-shot common statistics, extract structured tables via OMS, and profile .sav variables. Ships a standalone zero-dependency SPSS MCP server.

论文/实证分析工作台:SPSS 语法执行 + 常用统计一键跑 + OMS 结构化结果提取 + 数据集变量摸底,自带独立零依赖 SPSS MCP server。

能力

工具 说明
spss_check 自检 SPSS 环境(stats.exe / statisticspython3.bat / 工作目录)
spss_variables 列出 .sav 变量:名称/标签/类型/测度水平/案例数
spss_data 读取 .sav 案例数据(抽查、缺失与异常值检查)
spss_run 直接执行 SPSS 语法文本(可选先 GET .sav)
spss_run_file 执行 .sps 文件(自动修正相对路径 CD / GET FILE)
spss_analyze 常用分析一键:frequencies / descriptives / crosstabs / ttest_independent / ttest_paired / oneway / correlation / regression

spss_analyze 用 OMS(Output Management System)把结果表格导出为 XML 再解析,模型直接拿到论文可用的统计数字。

安装

dsh plugin --profile desktop add dsh-thesis-workbench

或在 DSH 插件市场里搜索 dsh-thesis-workbench。

安装后重启 DSH 生效。

前置依赖

  • SPSS 25-31 已安装(需要 stats.exe + statisticspython3.bat)
    • 插件自动探测常见安装目录(C:\Program Files\IBM\SPSS\Statistics\<版本> 等)
    • 装在别处时设 SPSS_PATH / SPSS_PYTHON_BAT 环境变量,或在 profile 的 cordis.patch.yml 里覆写

配置

在 profile 自己的 cordis.patch.yml 里按 id 覆写(可选):

- id: thesis-workbench
  config:
    spssStats: "C:\\Program Files\\IBM\\SPSS\\Statistics\\26\\stats.exe"
    spssPythonBat: "C:\\Program Files\\IBM\\SPSS\\Statistics\\26\\statisticspython3.bat"
    workDir: ""                          # 留空则用 %TEMP%/dsh-thesis-spss

使用

  1. spss_check 先自检环境;
  2. spss_variables / spss_data 摸底数据结构(变量、类型、测度、案例数、抽样数据);
  3. spss_analyze 跑常见分析,或 spss_run / spss_run_file 跑自定义语法。

MCP 独立使用

mcp/server.js 是零依赖 stdio MCP server,任何 MCP 客户端(Codex / Claude Code / opencode 等)可直接挂载:

{
  "mcpServers": {
    "spss": {
      "command": "node",
      "args": ["<包目录>/mcp/server.js"],
      "env": {
        "SPSS_PATH": "C:\\Program Files\\IBM\\SPSS\\Statistics\\26\\stats.exe",
        "SPSS_PYTHON_BAT": "C:\\Program Files\\IBM\\SPSS\\Statistics\\26\\statisticspython3.bat"
      }
    }
  }
}

工具:check / list_variables / get_data / run_syntax / run_syntax_file / analyze。

许可

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

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