{
  "id": "mcp-relay",
  "name": "MCP Relay",
  "description": "Connect remote MCP clients to your OpenClaw Gateway",
  "categories": [
    "infrastructure"
  ],
  "enabledByDefault": false,
  "activation": {
    "onStartup": true,
    "onCommands": [
      "mcp-relay"
    ]
  },
  "cliCommands": [
    {
      "name": "mcp-relay",
      "description": "Inspect the MCP relay connection and manage client grants",
      "hasSubcommands": true
    }
  ],
  "configSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "relayUrl": {
        "type": "string",
        "default": "https://mcp.openclaw.ai",
        "pattern": "^(?:https://[^\\s/?#@\\\\]+|http://(?:localhost|127\\.0\\.0\\.1)(?::[0-9]+)?)/?$"
      },
      "agentId": {
        "type": "string",
        "minLength": 1
      }
    }
  },
  "uiHints": {
    "relayUrl": {
      "label": "Relay URL",
      "help": "HTTPS relay origin. HTTP is supported only for localhost and 127.0.0.1 development."
    },
    "agentId": {
      "label": "Default Agent",
      "help": "Optional agent for new conversations; otherwise use the Gateway default."
    }
  },
  "controlUi": {
    "entry": "dist/control-ui/014d9dea01954ee9aa12ece339ea92f0872600eb9195ef5a9a81cdd9ecd915f4/index.js",
    "styles": [
      "dist/control-ui/014d9dea01954ee9aa12ece339ea92f0872600eb9195ef5a9a81cdd9ecd915f4/index.css"
    ]
  },
  "recommendedPrompts": [
    "Help me plan an MCP Relay connection from ChatGPT, Codex, or Claude to this Gateway.",
    "Review my connected MCP Relay apps and their access without changing grants."
  ]
}
