{
  "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/0662f5a5303137ed5f23a30ea47ad8e75640b3ec34116c384c796a5c818f835b/index.js",
    "styles": [
      "dist/control-ui/0662f5a5303137ed5f23a30ea47ad8e75640b3ec34116c384c796a5c818f835b/index.css"
    ]
  }
}
