clinical-trial-design

v0.0.12
io.github.wei-ai-lab/clinical-trial-design Checked 4 days ago Published 7 months ago

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

Values you need

VariableWhat it is
DESIGNR_RSCRIPToptional Optional override for the Rscript binary path. Defaults to whatever 'Rscript' resolves to on the system PATH. Set this if R isn't on PATH or you need a specific R version.
DESIGNR_LAUNCHERoptional Optional override for the R launcher path (the inst/launcher.R that sources the R sources and dispatches the JSON). Defaults to the bundled launcher. Set this only if you need to use a non-bundled R source tree.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add clinical-trial-design -- npx -y --package=clinical-trial-design@0.0.12 clinical-trial-design-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "clinical-trial-design": {
      "args": [
        "-y",
        "--package=clinical-trial-design@0.0.12",
        "clinical-trial-design-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "clinical-trial-design": {
      "args": [
        "-y",
        "--package=clinical-trial-design@0.0.12",
        "clinical-trial-design-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "clinical-trial-design": {
      "args": [
        "-y",
        "--package=clinical-trial-design@0.0.12",
        "clinical-trial-design-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.clinical-trial-design]
command = "npx"
args = ["-y", "--package=clinical-trial-design@0.0.12", "clinical-trial-design-mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: design_binary, design_continuous, design_survival, design_co_primary, design_multi_population, design_graphical_multiplicity, validate_against_benchmark, verify_design, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json