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 整合