Skip to content
DreamUI Connectors
Get started

Reference

Admin only · read-only

Spark admin MCP

An HTTP MCP endpoint for Spark admin telemetry. It’s for operator diagnostics only and doesn’t generate websites — use the MCP adapter for that.

What it is

The repository’s /api/mcp route (app/api/mcp/route.ts) exposes one read-only tool, uicopilot_spark_admin. It requires a separate administrator credential, accepted as a bearer token or X-MCP-Token header.

Call shape

Spark admin MCP · read-onlyFetch a 7-day telemetry snapshot
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "uicopilot_spark_admin",
    "arguments": {
      "action": "snapshot",
      "range": "7d",
      "requestLimit": 100
    }
  }
}

The tool also supports "action": "request_detail" with a real requestId taken from a snapshot.