Rail

v0.1.1
io.github.tstockham96/rail-mcp Checked 1 day ago Published 2 months ago

Budgets, propose-then-approve, and receipts for agents that buy for a human.

Values you need

VariableWhat it is
RAIL_DATA_DIRoptional Directory for the local ledger (budget, proposals, receipts). Defaults to ~/.rail in the user home directory. Set to override.

npm (npx) discovery passed

Requires Node.js 18+

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

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: set_budget, get_budget, propose_purchase, list_proposals, decide_proposal, get_receipts, refund_receipt.
  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