TradeDeFi
v0.2.0TradeDeFi strategies: backtest, publish and trade with the agent's own wallet (defi_agent_init).
Values you need
| Variable | What it is | |
|---|---|---|
TRADEDEFI_API_URL | optional | TradeDeFi API; needed to read tables and saved versions and to publish |
TRADEDEFI_AGENT_KEYSTORE_PASSWORD | optional 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 mcpAdd 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/mcpAdd 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
- 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: list_lobbies, preview_lobby, create_lobby, join_lobby, leave_lobby, call_bot, release_bot, create_training_battle, ….
- 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