jasp-bridge
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RSCRIPT | No | Path to Rscript when using an existing R + jaspTools installation (alternative to the offline runtime). | |
| JASP_PATH | No | Absolute path to the JASP executable (JASP.exe or Store version JASPDesktop.exe). If not set, the plugin auto-detects traditional and Store installations. | |
| JASP_RUNTIME | No | Path to the headless R runtime (e.g. C:/Users/<you>/.workbuddy/jasp-bridge/runtime). Used together with RSCRIPT for headless execution. | |
| JASP_BRIDGE_HOME | No | Plugin installation directory (e.g. C:/Users/<you>/.workbuddy/jasp-bridge), configured in mcp.json env. | |
| JASP_BRIDGE_TIMEOUT_MS | No | Timeout in milliseconds for the bridge, configured in mcp.json env (e.g. 300000). | |
| JASP_BRIDGE_UPDATE_URL | No | URL of the update manifest (latest.json), configured in mcp.json env, e.g. https://github.com/nanple/jasp-bridge/releases/latest/download/latest.json. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| jasp_statusA | 检查本机 JASP、Rscript、jaspTools 是否可用,返回可用后端(无头 R / CLI 模板重放 / dry-run)。开始任何分析前先调用。 |
| jasp_progressA | 返回 jasp-bridge 当前进度:阶段、已完成、下一步、已知问题、分析类型清单与最近改动文件。用于交接,或让另一个助手接手继续开发。 |
| jasp_check_updateA | 读取 latest.json 更新清单,比较版本并返回更新说明。只检查,不下载。更新源可通过 JASP_BRIDGE_UPDATE_URL 或 url 参数指定。 |
| jasp_download_updateA | 按 latest.json 下载更新 zip,校验 SHA256,解压到 updates//,返回 update.ps1 安装命令。不会自动替换正在运行的文件。 |
| jasp_load_dataA | 从本地路径加载 CSV/TSV/JSON 数据,建立变量字典与会话。返回 session_id,后续工具都要带上它。 |
| jasp_ingest_dataA | 把对话中粘贴的表格(CSV/TSV)或 JSON 数组写成数据集并建立会话,适合没有本地文件的小样本。 |
| jasp_describe_dataA | 返回会话数据的样本量、变量类型、缺失、水平与描述统计,用于规划分析前核对变量。 |
| jasp_list_methodsA | 列出已封装的 JASP 分析、所需变量角色与 JASP 分析名,可用于把自然语言映射到方法。 |
| jasp_plan_analysisA | 由插件根据已加载数据生成可确认的分析计划(建议题项、因子结构、方法与关键选项)。这是分析方案的权威来源:宿主只需把计划展示给用户,不要自行计算、下结论或改用 Python 做旁路分析。用户未指定题项或因子时,插件会检查变量名、前缀和类型并给出建议;建议必须标明为建议,不是已确认的事实。状态为 proposed 时请展示计划并等待用户确认,不要自动执行。确认请用 jasp_confirm_plan,修改请用 jasp_update_plan。本工具不执行分析。 |
| jasp_confirm_planA | 在用户核对插件提出的计划(含建议题项与因子结构)之后锁定该计划,随后才能调用 jasp_run。未解决的问题需要先 jasp_update_plan 补全,或在用户明确同意时使用 allow_incomplete=true。不要在用户确认前执行。 |
| jasp_update_planA | 对插件已提出的计划做增量修改(题项、因子结构、方法、选项)。适用于用户不接受某条建议、或要补全模型路径的情况。修改后默认仍为待确认;加上 confirm=true 且没有未解问题时可直接确认。不要跳过确认去执行,也不要在宿主侧自行改算。 |
| jasp_runA | 按已确认的计划调用本机 JASP 引擎执行分析,这是得出统计数字、表格、图和 .jasp 的唯一途径。宿主应展示本工具链返回的结果,不要自行计算或编造数值,也不要改用 Python 做旁路分析。返回 run_id,用 jasp_run_status 轮询,用 jasp_get_results 取结果。计划未确认时不要调用(除非用户明确要求 force=true)。若本机无 R/jaspTools,会进入 dry-run 并生成可复现请求,不会产生统计数字。 |
| jasp_run_statusB | 查询 jasp_run 的执行状态(running/done/error/timeout/interrupted),并返回日志尾部。 |
| jasp_get_resultsA | 读取已完成的 JASP 结果,返回由 JASP 引擎生成的 Markdown 表格、图片、工件路径,并可配合 jasp_export 得到 .jasp。宿主应原样展示这些结果,不要改写数字、不要自行计算或下结论,也不要改用 Python 再算一遍。format=json 时返回原始 result.json 内容。 |
| jasp_exportC | 导出 JASP 引擎请求(request.json)、分析模板(template.json)、R 执行脚本、Markdown 结果或结果表 CSV,便于复核与复用。 |
| jasp_run_templateB | 用已有 .jasp 模板调用本机 JASP 的 --report 模式,导出 report.pdf、HTML dashboard 与结果 JSON。适合固定分析流程的复核与出报告。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 16 tools
Most tools occupy clearly distinct slots in the pipeline: environment check, data load, planning lifecycle (plan/confirm/update), execution, polling, results, export. The main overlaps are jasp_load_data vs jasp_ingest_data (both create sessions, differentiated only by file vs pasted source) and jasp_progress vs jasp_status (both read 'status'-like info for different purposes). Descriptions do disambiguate these, so misselection risk is low but not zero.
All names use a consistent jasp_ prefix and snake_case, with predictable verb_noun forms like jasp_load_data, jasp_run_status, jasp_get_results. A few names are noun-only (jasp_progress, jasp_status), a minor deviation from the otherwise uniform verb pattern.
16 tools is slightly above the ideal band but each maps to a concrete step (load, describe, plan, confirm, run, poll, results, export, template replay, updates, handoff). Nothing appears redundant enough to cut, though the update-check/download pair and progress/status pair could arguably be consolidated.
The surface covers the full analysis lifecycle end-to-end, including data ingestion from file and clipboard, plan review/confirmation, execution, polling, results retrieval, export, template replay, and self-update. Minor gaps remain: no session listing/cleanup and no explicit run cancel/interrupt, which agents may need on long runs.