Treasury Risk Analyzer

v0.1.2
io.github.christianmatumona/treasury-risk-mcp Checked 1 day ago Published 1 month ago

Treasury risk, FX exposure, liquidity & payment decisions for AI CFO agents.

Values you need

VariableWhat it is
X402_PRIVATE_KEYoptional secret Private key of a dedicated Base wallet holding a few USDC, used to sign per-call x402 payments. Without it, paid tools only validate input and quote the price.
MAX_PAYMENT_USDoptional Hard per-call spending cap in USD (default 2.00). Tools priced above it are refused before signing. Default: 2.00
TREASURY_API_URLoptional Override the service base URL (default: public production deployment).

npm (npx) discovery passed

Requires Node.js 18+

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

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: describe_service, get_example_input, run_demo, treasury_risk, fx_exposure, liquidity_forecast, treasury_decision.
  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