Clinical Trial Design

io.github.wei-ai-lab由 GitHub 账号 wei-ai-lab 发布v0.0.12更新于 Oct 25, 2026

Phase 2/3 clinical trial design via gsDesign / gsDesign2: sample size, GS boundaries, multiplicity

发布方自己的服务:[PREPROD] Clinical.ly Research Suite

已验证STDIO仅桌面数据与分析AI 与机器学习

概览

AI 生成的概览

本地 MCP 服务器,调用 ClinicalTrialDesign R 包计算 2/3 期临床试验设计:样本量、成组序贯界值与多重性。

可以做什么
运行二分类、连续和生存终点的终点设计,包括样本量计算与基于 gsDesign/gsDesign2 的成组序贯界值。构建多假设设计,涵盖共同主要终点、多人群和图形化多重性控制。校验并基准测试设计,核对计算结果是否符合预期。根据计算结果生成设计报告。每次工具调用都会启动一个 Rscript 子进程并交换 JSON,耗时约 300 毫秒加 R 计算时间。
适用场景
适合统计师或临床研究人员让助手在对话中起草和检查 2 期或 3 期确证性试验设计、样本量、序贯监查界值和多重性校正。
运行要求
以 npm 包(clinical-trial-design)形式通过 stdio 在本地运行,需要 Node.js 以及已安装且 Rscript 在 PATH 上的 R 环境。DESIGNR_RSCRIPT 可指定 Rscript 路径,DESIGNR_LAUNCHER 可覆盖内置的 launcher.R。未声明任何身份验证或 API 密钥。
安装前请注意
输出属于统计计算而非监管建议,使用前应由合格统计师复核。服务器会启动本地 R 进程,超时为 60 秒;两个环境变量可改变所执行的 R 脚本和启动器,请只指向可信文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Clinical Trial Design,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

clinical-trial-design MCP server

TypeScript MCP server that exposes the ClinicalTrialDesign R package as 9 trial-design tools over stdio (3 endpoint + 3 multi-hypothesis + 3 meta). One Rscript subprocess per tool call, JSON roundtrip, ~300 ms per call + R compute. Covers Phase 2 and Phase 3 confirmatory designs.

Published to npm as clinical-trial-design and to the official MCP registry as io.github.wei-ai-lab/clinical-trial-design.

Tools

See the top-level README for the full tool surface, SMOKE.md for the 18-prompt smoke matrix, and PUBLISH.md for the npm + registry publish steps.

Build

bash
npm install                  # pulls dev dependencies (esbuild, typescript)npm run build                # esbuild bundle → dist/index.js (the publish artifact)npm run build:dev            # tsc → build/*.js per-file (used by the smoke script)

The server is wired from the top-level .claude-plugin/plugin.json:

json
"mcpServers": { "clinical-trial-design": { "command": "node", "args": ["mcp-server/dist/index.js"] } }

Smoke pass

bash
npm run build:dev            # required: smoke imports from build/r-bridge.jsnode scripts/smoke.mjs

Expected: 18 pass / 0 fail / 18 total. The R sources are loaded directly by r/inst/launcher.R (or ../r-package/ClinicalTrialDesign/inst/launcher.R in dev); no remotes::install_local step required.

Environment

  • DESIGNR_RSCRIPT — full path to Rscript if not on PATH.
  • DESIGNR_LAUNCHER — full path to launcher.R if you need to override the default. Wire-format identifier preserved as a stability commitment (see API_STABILITY.md).

Layout

src/  index.ts                         # McpServer + stdio transport; registers 9 tools  r-bridge.ts                      # spawns Rscript, JSON roundtrip, 60s timeout  tools/    common-schemas.ts              # shared zod fragments + ReasoningChainSchema    design-binary.ts               # endpoint design (3 tools)    design-continuous.ts    design-survival.ts    design-co-primary.ts           # multi-hypothesis (3 tools)    design-multi-population.ts    design-graphical-multiplicity.ts    validate-benchmark.ts          # meta (3 tools)    verify-design.ts    design-report.tsscripts/  smoke.mjs                        # programmatic 18-prompt smoke passr/                                 # R sources staged for the npm tarball  R/*.R  inst/launcher.R  DESCRIPTION  NAMESPACE

来源:mcp-server/README.md,提交 9d1e7c9

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.0.12最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Clinical 集成