clinical-trial-design
v0.0.12Phase 2/3 clinical trial design via gsDesign / gsDesign2: sample size, GS boundaries, multiplicity
Values you need
| Variable | What it is | |
|---|---|---|
DESIGNR_RSCRIPT | optional | 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_LAUNCHER | optional | 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-mcpAdd 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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