API Reference#
The platform exposes MCP capabilities through Streamable HTTP and two RESTful HTTP APIs.
API |
Service |
Base |
What it covers |
|---|---|---|---|
MCP Server |
|
Complete JSON-RPC reference for session setup, all MCP tool calls, resource reads, subscriptions, and SSE notifications. |
|
MCP Server |
|
MCP session initialization, alert-resource subscriptions, SSE update notifications, cursor-based reads, and proactive-delivery integration. |
|
MCP Server |
|
The |
|
MCP Server |
|
Monitor discovery, activity, reports, stats, snapshot/clip media, RTSP live preview, Router status, and optional OpenClaw chat proxy. |
|
videostream-analytics (VSA) |
|
The VSA control plane — register / start / stop / pause / restart sources, hot-update pipeline config, the source lifecycle state machine, and the events VSA emits. |
Data flow#
The MCP and REST APIs form a control and event flow: an MCP client calls tools or reads resources, the MCP server drives VSA’s control plane, and VSA pushes pipeline events back to the MCP server’s webhook.
MCP server videostream-analytics (:8999)
│ register / start / stop / pause / restart ── VSA HTTP API
└──────────────────────────────────────────────────▶ │
│ RTSP → motion
│ → prefilter → clips
MCP Server (:3101) │
◀──── POST /events (motion / static / recording) ───┘ ── Webhook API
Conventions#
Common to the two RESTful APIs:
Transport — JSON request/response bodies,
Content-Type: application/json, UTF-8.Auth — none; deploy on loopback / private LAN / behind a reverse proxy.
Status codes —
200success ·404unknown source ·422schema / semantic validation failure ·4xxpermanent (do not retry) ·5xxtransient (retry after backoff).Health probe — both services answer
GET /health.
See each linked document for the full endpoint list, request / response schemas, and worked examples.