{
  "$schema": "https://modelcontextprotocol.io/schema.json",
  "name": "atrader-pro-mcp",
  "title": "ATrader Pro MCP Server",
  "description": "Official Model Context Protocol (MCP) server for ATrader Pro automated trading robots, real-time AI signals, and risk calculators for Deriv.",
  "version": "1.0.0",
  "homepage": "https://atrader.pro/docs/api",
  "repository": "https://atrader.pro",
  "transports": [
    {
      "type": "streamable-http",
      "url": "https://atrader.pro/api/mcp"
    },
    {
      "type": "sse",
      "url": "https://atrader.pro/api/mcp"
    }
  ],
  "capabilities": {
    "tools": {
      "listChanged": true
    },
    "resources": {
      "subscribe": false,
      "listChanged": true
    },
    "prompts": {
      "listChanged": false
    }
  },
  "tools": [
    {
      "name": "list_bots",
      "description": "List all 14 available free AI trading bots on ATrader Pro with win-rates and strategy profiles.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "strategy": {
            "type": "string",
            "enum": ["all", "even-odd", "rise-fall", "under-over", "volatility"],
            "description": "Filter bots by strategy category"
          }
        }
      }
    },
    {
      "name": "get_live_signals",
      "description": "Get real-time AI confluence signals with >90% calculated win rate for Deriv synthetic indices.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "timeframe": {
            "type": "string",
            "enum": ["M1", "M2", "M5"],
            "default": "M1"
          }
        }
      }
    },
    {
      "name": "simulate_martingale",
      "description": "Simulate Martingale recovery steps, max drawdown exposure, and stake progression for bankroll management.",
      "inputSchema": {
        "type": "object",
        "required": ["bankroll", "initialStake"],
        "properties": {
          "bankroll": { "type": "number", "description": "Total bankroll in USD" },
          "initialStake": { "type": "number", "description": "Starting stake per trade in USD" },
          "multiplier": { "type": "number", "default": 2.0, "description": "Recovery multiplier (1.6 to 2.8)" },
          "maxSteps": { "type": "integer", "default": 5, "description": "Maximum recovery steps before hard stop" }
        }
      }
    },
    {
      "name": "check_status",
      "description": "Check platform uptime, Deriv WebSocket connection health, and API latency.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    }
  ]
}
