The RunFabric MCP (Model Context Protocol) server exposes plan, deploy, doctor, remove, and invoke as tools for AI agents and IDEs (e.g. Cursor, Claude Code).
runfabric_doctor, runfabric_plan, runfabric_build, runfabric_deploy, runfabric_remove, runfabric_invoke, runfabric_logs, runfabric_list, runfabric_inspect, runfabric_releases, runfabric_generate, runfabric_state, runfabric_workflowrunfabric CLI must be on PATH. Build from repo with make build; the binary is at bin/runfabric. Override with RUNFABRIC_CMD if the binary has another name or path.From the repo root:
cd protocol/mcp && npm install && npm run build && node dist/index.js
Or after build, run the binary:
node protocol/mcp/dist/index.js
Ensure runfabric is on PATH (e.g. export PATH="$PWD/bin:$PATH" from repo root after make build).
In Cursor settings (or .cursor/mcp.json), add an MCP server that runs the RunFabric MCP process:
nodepath/to/unifn-framework-scaffold/protocol/mcp/dist/index.jsRUNFABRIC_CMD=/path/to/runfabric if the CLI is not on PATHThe exact configuration format depends on your Cursor/MCP client; use the stdio transport and point to the built dist/index.js (or npm start from protocol/mcp).
| Tool | Parameters |
|---|---|
runfabric_doctor |
configPath (optional), stage (optional) |
runfabric_plan |
configPath, stage, provider (optional) |
runfabric_build |
configPath, stage, provider (optional) |
runfabric_deploy |
configPath, stage, preview, provider (optional) |
runfabric_remove |
configPath, stage, provider (optional) |
runfabric_invoke |
configPath, stage, function (required), payload (optional), provider (optional) |
runfabric_logs |
configPath, stage, function (optional), all (optional), provider (optional) |
runfabric_list |
configPath, stage, provider (optional) |
runfabric_inspect |
configPath, stage, provider (optional) |
runfabric_releases |
configPath, stage, provider (optional) |
runfabric_generate |
configPath (optional), stage (optional), args (optional string array; forwarded after runfabric generate) |
runfabric_state |
configPath (optional), stage (optional), command (required), args (optional string array) |
runfabric_workflow |
configPath (optional), stage (optional), command (required), args (optional string array) |
All tools run the CLI with --json, --non-interactive, and --yes so output is machine-readable and no prompts or confirmations appear. Results are the combined stdout/stderr as text content. When the exit code is non-zero, the result is marked with isError: true.