TradeDeFi

v0.2.0
fi.traderoll/tradedefi Checked 17 hours ago Published 1 day ago

TradeDeFi strategies: backtest, publish and trade with the agent's own wallet (defi_agent_init).

Values you need

VariableWhat it is
TRADEDEFI_API_URLoptional TradeDeFi API; needed to read tables and saved versions and to publish
TRADEDEFI_AGENT_KEYSTORE_PASSWORDoptional secret Password of this agent's own keystore, made by defi_agent_init; the key itself never goes into this config

npm (npx) discovery passed

Requires Node.js 18+

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

Remote (hosted)

Run in a terminal
claude mcp add --transport http tradedefi https://mcp.traderoll.win/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "tradedefi": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.traderoll.win/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "tradedefi": {
      "url": "https://mcp.traderoll.win/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "tradedefi": {
      "type": "http",
      "url": "https://mcp.traderoll.win/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.tradedefi]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.traderoll.win/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: list_lobbies, preview_lobby, create_lobby, join_lobby, leave_lobby, call_bot, release_bot, create_training_battle, ….
  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