MCP Setup
Configure MCP clients to call ConsoleViewer safely.
ConsoleViewer provides a restricted JSON-RPC endpoint at /api/mcp for automation.
Prerequisites
- A Personal Access Token (PAT) from Settings (
/settings) - A project
propertyId(open a project page and copy the segment from/sites/<propertyId>)
Endpoint
/api/mcp
Authentication
Send requests with:
Authorization: Bearer <PAT>Content-Type: application/json
Safety model
- The endpoint supports only an allowlist of methods.
- Calls are rate limited, with additional throttling on repeated auth failures.
- Tokens can be revoked at any time.