Vigiora

Tämä sivu ei ole vielä saatavilla kielellä: Suomi. Se näytetään englanniksi.

MCP serverVersiosta 1.6.6 alkaen

Connect claude.ai, Claude Desktop, ChatGPT, Claude Code, Codex and Cursor to your Vigiora server through the Model Context Protocol. Sign in with your Vigiora account, or use a scoped API key.

Every Vigiora server has a built-in MCP server. AI assistants can connect to it and use your cameras, alerts, recordings and clips as tools: summarise last night's alerts, look at a camera's live snapshot, find a person in a red shirt in the recordings, or export a clip.

What MCP is#

The Model Context Protocol (MCP) is an open standard that lets AI assistants call tools on other systems. claude.ai, Claude Desktop, ChatGPT, Claude Code, Codex, Cursor and many other apps support it.

Vigiora's tools are API v1: each tool is one API operation, and a tool call runs that operation as the signed-in user (or the API key's user). Scopes, roles, camera permissions, rate limits and credential redaction work exactly as they do over REST. When the server gets new API operations, they appear as new tools automatically.

The MCP server URL#

https://<your-site>.vigiora.com/api/v1/mcp

Use the same address you open the web app with, for example https://yourname.vigiora.com/api/v1/mcp, or http://192.0.2.10:8080/api/v1/mcp on your local network. The web app shows it, with ready-to-copy setup snippets, under API keys → Connect an AI agent.

  • Transport: Streamable HTTP, without sessions (MCP protocol revisions 2024-11-05 to 2026-07-28). Every message is a POST, and the server answers with JSON.
  • Server name: vigiora. The server also sends short usage instructions when the client connects.

Add to claude.ai or Claude Desktop#

claude.ai and Claude Desktop need only the URL. Your Vigiora server is its own OAuth sign-in server, so there is no key to copy.

  1. Add a custom connector

    In claude.ai or Claude Desktop, open Settings → Connectors and click Add custom connector.

  2. Enter the name and URL

    Give it a name, for example Vigiora, and paste https://<your-site>.vigiora.com/api/v1/mcp. Leave the OAuth client ID and secret empty. Click Add.

  3. Sign in

    Click Connect. A Vigiora page opens. Sign in with your Vigiora server account if you aren't signed in yet. The page shows which app is asking and where you go back to (claude.ai).

  4. Choose the access

    Choose Read only (the default) or Read and control, then click Approve. You're back in Claude, and the connector lists the Vigiora tools.

AccessWhat the app can do
Read onlySee cameras, live snapshots, alerts, faces, recordings, clips and the event log, Analytics counts, floor plans and the Home Assistant devices shared with Vigiora.
Read and controlAlso change camera settings, turn cameras and AI on or off, move PTZ cameras, acknowledge alerts, protect recordings, make clips, scan the local network and fix a camera's address, set up Analytics lines, zones and areas, edit floor plans and control shared Home Assistant devices. Viewers never get camera changes, PTZ, the network tools, Analytics or floor-plan changes, or Home Assistant devices.

The app acts as you, with the access you chose. It sees only the cameras you can see. It can never manage users, settings, API keys or webhooks, export the configuration, or create public share links. If your role changes later, the app's access follows it.

Below the access choice, Ask me before actions decides whether the app must get your approval before it moves cameras, scans the network or does another risky action. It starts as the server's human in the loop setting (on by default). While that setting is on, only an admin can untick it.

Add to ChatGPT#

  1. Turn on developer mode

    In ChatGPT, open Settings → Apps & Connectors and turn on developer mode under Advanced.

  2. Create the connector

    Click Create, give it a name, paste https://<your-site>.vigiora.com/api/v1/mcp and choose OAuth as the authentication.

  3. Sign in and approve

    Sign in on the Vigiora page that opens (it shows chatgpt.com as the app that is asking), choose Read only or Read and control, and click Approve.

Claude Code, Codex and Cursor#

These clients can sign in the same way, or use an API key. Every API key setup below reads the key from the VIGIORA_API_KEY environment variable, so the key is never written into a config file:

export VIGIORA_API_KEY=vgk_...

Claude Code#

With an API key:

claude mcp add --transport http vigiora https://<your-server>/api/v1/mcp \
  --header "Authorization: Bearer $VIGIORA_API_KEY"

To sign in instead, leave out --header, then run /mcp in Claude Code, pick vigiora and choose Authenticate:

claude mcp add --transport http vigiora https://<your-site>.vigiora.com/api/v1/mcp

Because Claude Code returns to localhost, the consent page warns that the app runs on your computer: approve it only if you just started the sign-in yourself. Run /mcp to check that vigiora is connected.

Codex#

Add this to ~/.codex/config.toml:

[mcp_servers.vigiora]
url = "https://<your-server>/api/v1/mcp"
bearer_token_env_var = "VIGIORA_API_KEY"

Cursor#

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "vigiora": {
      "url": "https://<your-server>/api/v1/mcp",
      "headers": { "Authorization": "Bearer ${env:VIGIORA_API_KEY}" }
    }
  }
}

Claude Desktop with an API key#

Prefer the custom connector with sign-in (above). If you'd rather use an API key, Claude Desktop's local config can bridge to a remote server with mcp-remote (this needs Node.js). Add this to claude_desktop_config.json, and keep the file private, because it holds the key:

{
  "mcpServers": {
    "vigiora": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://<your-server>/api/v1/mcp",
               "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer vgk_..." }
    }
  }
}

Other clients#

Any MCP client with Streamable HTTP and custom headers works. Send the key as Authorization: Bearer vgk_… (or X-API-Key: vgk_…). Without a valid credential the endpoint answers 401 with a WWW-Authenticate: Bearer challenge that points at the sign-in metadata. A web-app session token is refused. To try the server from a terminal, use the MCP Inspector:

npx @modelcontextprotocol/inspector --cli https://<your-server>/api/v1/mcp \
  --transport http --header "Authorization: Bearer $VIGIORA_API_KEY" --method tools/list

Tools#

From version 1.6.20 there are 453 tools (386 in 1.6.19, 358 in 1.6.18, 347 in 1.6.17, 341 in 1.6.16, 306 in 1.6.13, 226 in 1.6.10 and 1.6.11), one per API v1 operation that a credential can call: a key with the admin scope on an admin user sees them all. The server lists only the tools that the granted scopes (the key's, or the access approved at sign-in) and the user's role allow, so a read-only key or a Read only connection never sees a write tool. Tool names are the API's operationId in snake_case. Arguments are the operation's path, query and header parameters and its JSON body fields. Write tools that accept retries take an optional idempotency_key.

Every read tool has the readOnlyHint annotation, and so do detect_objects and analyze_image, which only look at a picture. Deletes (alert rules included), unprotect, secret rotation, bulk changes, imports and relocate_camera have destructiveHint. start_network_scan and lookup_network_address are not marked read only, because they send traffic on your network, and neither is analyze_camera, which writes a Guardian entry and may fire alert rules.

From version 1.6.9, human in the loop decides whether an agent must get your approval before risky tools: moving PTZ cameras, scans, camera, user, webhook and settings changes, deletes and the like. It is on by default. While it is on, those tools take an optional confirm argument, and the server asks you with an Allow / Deny prompt when the app supports it, or answers confirmation_required so the agent asks you in the chat. While it is off, the agent acts directly. get_agent_policy tells the agent which applies.

ScopeTools
any credentialget_agent_policy, get_me, get_server, get_thing_capabilities
cameras:readanalyze_image, create_camera_snapshot_url, create_camera_stream_url, detect_objects, get_camera, get_camera_clock (admin, operator), get_camera_audio_level, get_camera_audio_status, get_camera_hardware_id (admin, operator), get_camera_objects, get_camera_pipeline, get_camera_snapshot (image), get_client (admin, operator), get_client_status_history (admin, operator), get_object_image (image), get_reference_frame (image), get_system_object_history, get_system_objects, get_thing, list_available_streams (admin, operator), list_camera_ai_services, list_cameras, list_client_audio_outputs (admin, operator), list_clients (admin, operator), list_outputs (admin, operator), list_things, suggest_ai_cameras (admin, operator)
cameras:write (admin, operator)add_detected_cameras, bulk_update_cameras, capture_reference_frame, check_detected_camera_clock, set_camera_clock, set_detected_camera_clock, update_camera_clock, update_client (admin), client_action_install_ffmpeg (admin), client_action_restart (admin), client_action_resync_cameras (admin), client_action_update (admin), create_camera, create_client_camera (admin), create_output, create_room, delete_camera (admin), delete_client (admin), delete_output, delete_reference_frame, delete_room, delete_room_inventory, detect_camera, detect_camera_batch, disable_camera, disable_camera_ai, disable_camera_ai_service, enable_camera, enable_camera_ai, enable_camera_ai_service, get_detection_batch, get_dhcp_move (admin), move_device_to_dhcp (admin), probe_ptz, relocate_camera, replace_room_inventory, repush_camera, suggest_camera_name, update_camera, update_camera_ai_service, update_output, update_room, update_room_outputs
cameras:control (admin, operator)delete_ptz_preset, get_ptz_preset, goto_ptz_preset, list_ptz_presets, move_ptz, move_ptz_in_room, play_audio_in_room, save_ptz_preset, speak_in_room, speak_on_camera, stop_ptz, test_output, update_ptz_preset
alerts:readget_alert, get_alert_face_photo (image), get_alert_rule, get_alert_snapshot (image), get_alert_summary, get_face_crop (image), get_face_photo (image), get_label_alert_rule, get_latest_motion_levels, get_latest_people_counts, get_motion_rule, get_room_alert_rule, list_alert_rules, list_alerts, list_camera_alert_rules, list_camera_detection_events, list_camera_detection_tracks, list_camera_labels, list_faces, list_label_alert_rules, list_motion_levels, list_motion_rules, list_people_counts, list_room_alert_rules
alerts:write (admin, operator)acknowledge_alert (every role), acknowledge_alerts (every role), create_alert, create_alert_rule, create_label_alert_rule, create_motion_rule, create_room_alert_rule, delete_alert, delete_alert_rule, delete_label_alert_rule, delete_motion_rule, delete_room_alert_rule, disable_alert_rule, enable_alert_rule, unacknowledge_alert (every role), update_alert_rule, update_label_alert_rule, update_motion_rule, update_room_alert_rule
recordings:readget_alert_recording, get_camera_frame (image), get_camera_timeline, get_clip, get_library_album, get_library_item, get_library_item_thumbnail (image), get_library_stats, get_recording, list_camera_recording_days, list_cameras_with_recordings, list_clips, list_library_albums, list_library_folders, list_library_items, list_recordings
recordings:writeadd_library_album_items, create_clip, create_clip_download_url, create_library_album, create_library_folder, create_library_item, delete_clip, delete_library_album, delete_library_folder, delete_library_item, move_library_folder, preflight_clips, protect_recording, remove_library_album_items, reorder_library_album, unprotect_recording, update_library_album, update_library_item
clips:sharecreate_clip_share, create_library_album_share, create_library_item_share, list_all_clip_shares, list_clip_shares, revoke_clip_share, revoke_share
events:readlist_events
guardian:readget_ai_live_history, get_briefing, get_briefing_feed, get_briefing_recap, get_camera_transcript, get_guardian_clip_settings (admin, operator), get_guardian_entry, get_guardian_entry_frame (image), get_guardian_trash_frame (admin, operator; image), get_guardian_trash_settings (admin, operator), get_view, list_camera_ai_live_sessions, list_guardian_conversation_messages, list_guardian_conversations, list_guardian_entries, list_guardian_trash (admin, operator), list_room_guardian_entries, list_transcripts, list_view_suggestions, list_views, search_guardian
guardian:writeanalyze_camera (admin, operator), compare_reference_frame, compose_view, create_guardian_conversation, delete_camera_ai_live_session, delete_guardian_conversation, delete_guardian_entries (admin, operator), delete_guardian_entry (admin, operator), delete_view, get_room_ai_live_digest (admin, operator), guardian_chat, list_camera_ai_live_session_messages, list_room_ai_live_messages, mark_briefing_reviewed, purge_guardian_entries (admin), read_plates, recompute_guardian_clips (admin), recompute_guardian_frames (admin), record_room_ai_live_feedback (admin, operator), refine_view, refresh_briefing_recap, restore_guardian_entries (admin, operator), set_camera_ai_live_session_mode (admin, operator), start_camera_ai_live_session, start_room_ai_live (admin, operator), stop_camera_ai_live_session (admin, operator), stop_room_ai_live (admin, operator), summarize_transcript, translate_transcript, unmark_briefing_reviewed, update_guardian_conversation, update_view
analytics:readget_analytics_bays, get_analytics_busy_hours, get_analytics_counts, get_analytics_dwell, get_analytics_flows, get_analytics_heatmap, get_analytics_occupancy, get_analytics_queues, get_analytics_speed, get_camera_analytics, list_analytics_alert_events, list_analytics_alert_rules, list_analytics_areas, list_analytics_displays (admin, operator), list_analytics_lines, list_analytics_zones
analytics:write (admin, operator)create_analytics_alert_rule, create_analytics_area, create_analytics_display, create_analytics_line, create_analytics_zone, delete_analytics_alert_rule, delete_analytics_area, delete_analytics_line, delete_analytics_zone, revoke_analytics_display, set_analytics_occupancy, update_analytics_alert_rule, update_analytics_area, update_analytics_line, update_analytics_zone, update_camera_analytics
floorplans:readget_camera_locations, get_floor_plan, get_floor_plan_live, list_floor_plan_items, list_floor_plan_rooms, list_floor_plan_sites, list_floor_plans
floorplans:write (admin, operator)create_floor_plan, delete_floor_plan, replace_floor_plan_items, sync_floor_plan_rooms, update_floor_plan
devices:read (admin, operator)get_bluetooth, get_bluetooth_device, get_home_assistant_bridge, get_home_assistant_instance, get_home_assistant_room_signals, get_home_assistant_rule_actions, get_io_t_device, get_io_t_zigbee_status, list_bluetooth_devices, list_bluetooth_scans, list_home_assistant_action_log, list_home_assistant_devices, list_home_assistant_instances, list_home_assistant_triggers, list_io_t_device_entities, list_io_t_devices
devices:write (admin, operator)create_home_assistant_trigger, delete_home_assistant_trigger, expose_io_t_device, forget_io_t_device, identify_io_t_device, list_home_assistant_entities (admin), list_home_assistant_instance_entities (admin), reconfigure_io_t_device, remove_io_t_device (admin), scan_bluetooth, set_home_assistant_entity_access (admin), set_home_assistant_instance_entity_access (admin), unexpose_io_t_device, update_bluetooth_device, update_home_assistant_device, update_home_assistant_room_signals, update_home_assistant_rule_actions, update_home_assistant_trigger, update_io_t_device
devices:control (admin, operator)command_home_assistant_device, set_io_t_device_entity
settings:read (admin, operator)export_config (admin), get_agent_settings, get_auto_scan, get_client_error (admin), get_home_assistant (admin), get_layout (every role), get_line_integration, get_mqtt_integration, get_remote_access (admin), get_room (every role), get_room_inventory (every role), get_settings, get_setup_checklist, get_site, get_system_ai_status, get_system_cloud_plan (admin), get_system_dashboard (every role), get_system_edge (admin), get_system_health (every role), get_system_mesh (admin), get_system_plan (admin), get_system_status, get_system_update (admin), get_telegram_integration, list_client_errors (admin), list_home_assistant_zigbee_devices (admin), list_layout_sequences (every role), list_layouts (every role), list_room_actuations (every role), list_room_outputs (every role), list_rooms (every role), list_sites, list_stt_providers (every role), run_diagnostics
settings:write (admin)check_system_update, connect_existing_home_assistant, connect_home_assistant_bridge, connect_home_assistant_instance, create_home_assistant_instance, create_layout (every role), create_layout_sequence (every role), create_site (admin, operator), delete_home_assistant_instance, delete_layout (every role), delete_layout_sequence (every role), delete_site (admin, operator), disconnect_home_assistant_bridge, disconnect_home_assistant_instance, expose_home_assistant_zigbee_device, identify_home_assistant_zigbee_device, install_home_assistant, permit_home_assistant_zigbee_join, reconfigure_home_assistant_zigbee_device, remove_home_assistant_zigbee_device, rename_home_assistant_zigbee_device, resolve_all_client_errors, resolve_client_error, restart_home_assistant, run_diagnostic_fix, setup_home_assistant_zigbee, test_home_assistant_instance, test_line_integration, test_mqtt_integration, test_telegram_integration, uninstall_home_assistant, update_agent_settings, update_auto_scan, update_guardian_clip_settings, update_guardian_trash_settings, update_home_assistant, update_home_assistant_instance, update_home_assistant_integration, update_layout (every role), update_line_integration, update_mqtt_integration, update_settings, update_setup_checklist, update_site (admin, operator), update_telegram_integration, unexpose_home_assistant_zigbee_device, unresolve_client_error
users:read (admin)get_group, get_user, list_groups, list_users
users:write (admin)create_group, create_user, delete_group, delete_user, update_group, update_user
admin (admin)delete_face, import_config, rename_face
webhooks:read (admin, operator)get_webhook, list_webhook_deliveries, list_webhooks
webhooks:write (admin)create_webhook, delete_webhook, redeliver_webhook, rotate_webhook_secret, test_webhook, update_webhook
network:read (admin, operator)discover_home_assistant (admin), dismiss_camera_candidate, get_network_scan, list_camera_candidates, list_network_devices, lookup_network_address, run_auto_scan, start_network_scan

A write scope also grants its read scope, and admin grants every scope (see Authentication and scopes). With sign-in (OAuth), only the cameras, alerts, recordings, events, Analytics, floor plans and Home Assistant devices tools are offered (device commands, Analytics and floor-plan writes and the network tools with Read and control): Guardian, settings, users, share links, webhooks and the configuration need an API key. detect_objects and analyze_image are cameras tools, so sign-in connections get them; there, call analyze_image with describe: false, because describing needs guardian:write.

New in 1.7.3#

Version 1.7.3 (API 1.105.0) adds five tools for sirens (see API v1):

  • list_active_sounds and stop_all_sounds (alerts:read): what may be sounding, and make everything quiet. stop_all_sounds never asks, even while human in the loop is on, because stopping is always safe. For a viewer it reaches only the cameras they can see.
  • stop_camera_siren (alerts:read): switch one camera's siren off. It never asks.
  • start_camera_siren and dismiss_sound (cameras:control, admins and operators): sound a camera's siren, which is loud in a real building, and mark a siren that could not be switched off as quiet. Both need approval while human in the loop is on. Use start_camera_siren only when the user asked for the siren.

The app's own assistant has stop_all_sounds, stop_siren and start_siren. They are not MCP tools.

New in 1.6.10#

The tools follow the API 1.9 to 1.11 additions (see API v1). The ones agents use most:

  • Objects: detect_objects finds the things you name (prompts, for example ["person", "red t-shirt"]) on a camera's live frame, or on a recorded moment with at (also needs recordings:read). analyze_image describes and finds objects in a photo the user gives you (image_base64). get_object_image returns the frame with the boxes drawn, for 15 minutes. analyze_camera takes include_objects: true. They need the object recognition add-on (503 no_detector without it).
  • What happened: list_camera_detection_events (one feed with the add-ons' reports; filter with source and label), get_guardian_entry_frame, get_camera_frame (a still from the recordings at any moment), list_transcripts, get_briefing and get_briefing_recap.
  • Alert rules: list_alert_rules, create_alert_rule, create_label_alert_rule, create_motion_rule and their updates and deletes.
  • Cameras and rooms: list_camera_ai_services, enable_camera_ai_service, update_camera_ai_service, speak_in_room, save_ptz_preset, list_clients.

Writes among them are confirm operations while human in the loop is on. detect_objects, analyze_image and get_camera_frame only read and never need approval.

New in 1.6.11#

Version 1.6.11 (API 1.12 to 1.14) adds no tools, so there are still 226, but some take or return new fields (see API v1):

  • create_output and update_output: a camera speaker's client_id is optional. Leave it out, or send null, to have the server play the camera's speaker itself.
  • create_alert_rule and update_alert_rule: require_detector_confirmation (default true) holds back a person rule's alert when the object detector watched the clip and saw no one.
  • list_guardian_entries, get_guardian_entry and search_guardian: detector_checked, unconfirmed_alerts and person_present_seconds tell an agent why a clip that the AI thought showed a person did not alert.

New in 1.6.20#

Version 1.6.20 (API 1.42.0 to 1.58.0) adds 67 tools, for 453 in all (see API v1). set_io_t_device_entity, set_camera_clock, set_detected_camera_clock, update_camera_clock, update_client, delete_ptz_preset, update_ptz_preset, the library deletes, scan_bluetooth, start_ptz_patrol, resume_ptz_patrol, start_ptz_patrol_scan, accept_ptz_patrol_scan and delete_ptz_patrol need approval while human in the loop is on; the reads and most writes don't.

  • PTZ patrols (cameras:control): list_ptz_patrols, create_ptz_patrol, get_ptz_patrol, update_ptz_patrol, delete_ptz_patrol, get_ptz_patrol_status, start_ptz_patrol, stop_ptz_patrol, pause_ptz_patrol, resume_ptz_patrol and list_active_ptz_patrols — a camera walks its presets on its own ("start the lobby camera patrolling", "which cameras are patrolling right now?"). The automatic setup: start_ptz_patrol_scan, get_ptz_patrol_scan, accept_ptz_patrol_scan and cancel_ptz_patrol_scan (the scan picture is signed media, not a tool). A preset's dwell_seconds is on get_ptz_preset, save_ptz_preset and update_ptz_preset.
  • Hardware health (admins): get_system_health, get_latest_health_report, list_health_reports, get_health_report, get_health_inventory, run_health_check and the health get/update settings — "is any disk failing?", "run a hardware check now".
  • Camera speaker (cameras:control): speak_on_camera says a message through a camera's own speaker.
  • Device control (devices:control): set_io_t_device_entity turns a light on, sets its brightness or colour, opens a cover, locks a lock or presses a button on a shared Home Assistant device ("turn the porch light to 30%", "close the garage"), checked against the device's own description. command_home_assistant_device still runs a named command.
  • Bluetooth (devices:read): get_bluetooth (is it available, when the next scan is), list_bluetooth_devices ("what phones were seen near the server last night?"), get_bluetooth_device with its classification and how Vigiora could use it, and list_bluetooth_scans. With devices:write: scan_bluetooth runs a scan now, update_bluetooth_device notes or ignores one. A survey only; nothing is paired.
  • Camera clocks (cameras:read/cameras:write): get_camera_clock reads a camera's clock against the server's, set_camera_clock fixes it, update_camera_clock sets the zone it should be in; check_detected_camera_clock and set_detected_camera_clock for a camera being added. update_client (cameras:write, admins) sets the time zone for the cameras behind a Client.
  • PTZ presets (cameras:control): get_ptz_preset, update_ptz_preset (rename, or move to the current position) and delete_ptz_preset, next to save_ptz_preset, list_ptz_presets and goto_ptz_preset.
  • Library (recordings:read/recordings:write): list_library_items, list_library_folders, list_library_albums, get_library_item, get_library_item_thumbnail, get_library_album and get_library_stats; and the writes to create folders and albums, save a clip, add to and reorder an album, rename, move and delete. Share a saved item or an album with create_library_item_share and create_library_album_share (clips:share). The file itself (/library/items/{id}/media) and uploads are not tools, like the other media endpoints.

New in 1.6.19#

Version 1.6.19 (API 1.36.0 to 1.41.0) adds 28 tools, for 386 in all (see API v1). setup_home_assistant_zigbee, permit_home_assistant_zigbee_join, the expose, unexpose and remove tools, forget_io_t_device and update_io_t_device need approval while human in the loop is on; the others don't.

  • IoT devices (devices:read): list_io_t_devices ("which doors are open?", "any sensor with a low battery?") with its filters, get_io_t_device with every reading and what Vigiora reads it as, list_io_t_device_entities and get_io_t_zigbee_status. With devices:write: update_io_t_device (rename, rooms, cameras, mapping overrides), expose_io_t_device, unexpose_io_t_device, reconfigure_io_t_device, identify_io_t_device ("make the kitchen sensor blink"), forget_io_t_device and remove_io_t_device (admins). The tool names spell IoT as io_t, as the snake-case rule gives.
  • Zigbee (settings:write, admins): setup_home_assistant_zigbee, permit_home_assistant_zigbee_join ("open pairing for a new sensor", through a router with ieee) and, with settings:read, list_home_assistant_zigbee_devices; rename_, reconfigure_, identify_, expose_, unexpose_ and remove_home_assistant_zigbee_device.
  • Cameras (cameras:write): suggest_camera_name names a camera from its picture in the style of the others ("Living room – TV side"); it renames nothing, so follow with update_camera once the user agrees. Uses AI credits. detect_camera and detect_camera_batch take unlock.
  • Floor plans: list_floor_plan_rooms and sync_floor_plan_rooms; replace_floor_plan_items accepts device items with device_key and entity_id, and rooms carry source, floor_plan, managed members and managed_devices.
  • Client errors (settings:read and settings:write, admins): list_client_errors, get_client_error, resolve_client_error with a note, unresolve_client_error and resolve_all_client_errors, for an agent that checks a server for problems and fixes them.

New in 1.6.18#

Version 1.6.18 (API 1.33.2 to 1.35.0) adds 11 tools, for 358 in all (see API v1). delete_view needs approval while human in the loop is on; the others don't, though composing, refining, translating and summarising use AI credits, so an agent should say when it is about to.

  • AI views (guardian:write): compose_view ("show me the entrance and the driveway live with today's alerts") answers with the view's cards and notes; refine_view changes it ("add the garage", "last 48 hours"); update_view pins, renames or trims it; delete_view removes it. With guardian:read: list_views, get_view and list_view_suggestions. A view is a description of cards on cameras, not pictures: to show the user something, follow with get_camera_snapshot or list_alerts on the cameras the cards resolved.
  • Transcripts (guardian:read): get_camera_transcript lists the speech-to-text segments of a camera or microphone in a window, oldest first. With guardian:write: translate_transcript renders the passages you give it in a language, and summarize_transcript sums up the last minutes or hours of speech ("what was said at the counter in the last hour?").
  • Faces (alerts:read): get_face_crop returns the face itself for a pending face (has_crop); delete_face takes a pending face (det-<alert id>) and not_a_face: true.
  • guardian_chat answers carry refs: one per sighting the reply cites, with the camera, the time and whether it has a clip or a frame. Use them to fetch the evidence (get_guardian_entry_frame, get_camera_frame) instead of parsing times out of the text. get_server reports ai.status and ai.retry_at: while AI is paused, the AI tools answer ai_unavailable, so wait for retry_at rather than retrying.

New in 1.6.17#

Version 1.6.17 (API 1.31 to 1.33.1) adds 6 tools, for 347 in all (see API v1). None needs approval while human in the loop is on.

  • Camera catalogue (cameras:read, admins and operators): search_camera_catalog ("Does the Tapo C230 stream locally?", "What is the stream address of a Reolink?") and list_camera_catalog_brands. detect_camera and detect_cameras take model, and scan results and detections carry catalog: what was recognised, whether it streams locally, and the login advice to pass on to the user.
  • Floor plans from a description (floorplans:write): describe_floor_plan ("Draw a plan of my house: the front door opens into a hall, …"), refine_floor_plan ("move the kitchen to the left of the entrance") and undo_floor_plan_layout. With floorplans:read, get_floor_plan_layout returns the layout and the chat. Each describe or refine uses AI credits like a Guardian chat; an agent should pass the user's words on as they are and report the notes and unplaced_cameras of the answer.

New in 1.6.15 and 1.6.16#

Versions 1.6.15 and 1.6.16 (API 1.26 to 1.30) add 35 tools, for 341 in all (see API v1):

  • Analytics (analytics:read): get_analytics_queues, get_analytics_bays, get_analytics_speed, get_analytics_busy_hours, get_analytics_flows, list_analytics_alert_rules and list_analytics_alert_events. "Is the queue at till 1 long?" is get_analytics_queues; "How many parking spaces are free?" is get_analytics_bays. With analytics:write: create_analytics_alert_rule, update_analytics_alert_rule, delete_analytics_alert_rule, create_analytics_display and revoke_analytics_display (list_analytics_displays for admins and operators).
  • Cameras: move_device_to_dhcp (admins, a confirm operation) and get_dhcp_move.
  • Integrations: get_mqtt_integration, update_mqtt_integration and test_mqtt_integration, and the same for Telegram and LINE (admins change them).
  • Home Assistant instances: list_home_assistant_instances, get_home_assistant_instance, create_home_assistant_instance, update_home_assistant_instance, delete_home_assistant_instance, connect_home_assistant_instance, disconnect_home_assistant_instance, test_home_assistant_instance, list_home_assistant_instance_entities and set_home_assistant_instance_entity_access. control_device in Guardian chat accepts "Instance / Name" when two devices share a name.
  • Share links: revoke_share revokes any share link by its id.

New in 1.6.13#

Version 1.6.13 (API 1.15 to 1.25) adds 80 tools, for 306 in all (see API v1):

  • Analytics (analytics:read): get_analytics_counts, get_analytics_occupancy, get_analytics_dwell, get_analytics_heatmap, get_camera_analytics, list_analytics_areas, list_analytics_lines and list_analytics_zones. With analytics:write: creating, changing and deleting lines, zones and areas, update_camera_analytics and set_analytics_occupancy. "How many customers came in between 9 and 12?" is get_analytics_counts with the area and from/to. Report covered_pct when it is under 100.
  • Floor plans (floorplans:read): list_floor_plan_sites, list_floor_plans, get_floor_plan, list_floor_plan_items, get_floor_plan_live ("what is happening on floor 1?") and get_camera_locations ("where is the back-door camera?"). With floorplans:write: create_floor_plan, update_floor_plan, replace_floor_plan_items and delete_floor_plan.
  • Home Assistant: get_home_assistant, install_home_assistant, update_home_assistant_integration and the other install tools (admins), and the bridge: list_home_assistant_devices, command_home_assistant_device, triggers, rule actions, room signals and list_home_assistant_action_log.
  • Moments: delete_guardian_entry, delete_guardian_entries, list_guardian_trash, restore_guardian_entries and purge_guardian_entries, plus recompute_guardian_frames, recompute_guardian_clips (dry run first) and the clip and trash settings.
  • Live media and devices: create_camera_stream_url, create_camera_snapshot_url, speak_on_camera, get_server, get_alert_summary, list_things, get_thing and get_thing_capabilities.
  • Rooms: room alert rules (create_room_alert_rule and the rest) and list_room_guardian_entries.

Guardian chat in the app has its own Analytics tool, query_analytics. It is not an MCP tool: agents use the get_analytics_* tools above.

command_home_assistant_device is a confirm operation. For a sensitive device (a lock, an alarm panel or a siren) it always asks the person with an Allow / Deny prompt, even when human in the loop is off.

Not offered as tools: the signed media links (/media/...), the floor-plan image, Things commands (agents call the operations behind them, where human in the loop applies), and the user-session-only Home Assistant operations (the owner password and pending approvals).

Also not offered as tools:

  • The event stream (GET /api/v1/events/stream): MCP tool calls are request and response. Use list_events with from (and the cursor) to catch up, or webhooks for push delivery.
  • Recording video (/recordings/{recording_id}/media): export a clip with create_clip, then use create_clip_download_url.
  • API key management: keys can't manage keys.
  • User-session-only operations: costs, billing, connected apps, AI service instances, external AI tools and switching remote access.
  • Guardian entry clips (/guardian/entries/{entry_id}/clip): video. Use get_guardian_entry_frame for the picture.
  • The OpenAPI document: it is a resource instead (see below).

Results#

  • JSON responses come back as text content, exactly as the API returns them.
  • Snapshots, face photos, frames from the recordings (get_camera_frame), Guardian entry frames (get_guardian_entry_frame), reference frames and annotated object images (get_object_image) come back as image content (JPEG), with a small JSON note that includes age_seconds when a snapshot is not live.
  • An API error is a tool error (isError: true) whose text is {"http_status": 404, "error": {"code": "not_found", "message": "...", "details": {}}}. The codes are the API's error codes. not_found also means that you may not see the item.
  • While human in the loop is on, a risky tool can answer confirmation_required (ask the user, then call again with confirm: true) or user_declined (the user chose Deny: don't retry). See Human in the loop.

Resources and prompts#

Resources:

  • vigiora://docs/overview: API conventions (pagination, errors, idempotency, rate limits, events).
  • vigiora://docs/openapi-v1.yaml: the full OpenAPI 3.1 document.

Prompts are guided workflows. In Claude Code they appear as /mcp__vigiora__… commands.

PromptWhat it does
daily_briefing (hours, default 24)Alerts, camera status and notable events, with snapshots of the key alerts.
investigate_alert (alert_id)What an alert shows, what else happened on that camera around it, whether video exists, and a verdict.
camera_health_check (camera_id, optional)Which cameras are online, produce images and record, and their recording gaps.

Safety and limits#

  • Same rules as REST. Tool calls go through the same checks as REST requests. A viewer without access to a camera can't read it through MCP either. Camera passwords are always REDACTED.
  • Human in the loop. While it is on, risky tools need your approval, per call. See Human in the loop.
  • Configuration export. export_config returns camera passwords only when the credential has the admin scope, the user is an admin and a passphrase of at least 12 characters is given; they are then encrypted with it. Sign-in connections never get this tool.
  • Rate limits. Each MCP message counts as one request against the credential's API rate limit (a bucket of 120 refilled at 10 per second), and a JSON-RPC batch holds at most 10 messages. analyze_camera and guardian_chat have their own limits, shared with REST. Over a limit, the answer is 429 with Retry-After.
  • Request size. An MCP call carries at most 1 MB. To send a photo to analyze_image, pass it base64-encoded in image_base64: about 750 KB of image at most, so scale large photos down first. The image is analysed and never stored.
  • Response size. Text results are capped at about 100 KB. When a page of results is too large, the server returns the first items that fit, removes next_cursor and adds a truncated note: ask again with a smaller limit. Images over 4 MB are not returned.
  • Cloudflare Tunnel. Over a Cloudflare Tunnel address, image tools return media_not_on_tunnel, the same as REST. Connect the agent through the site address or the LAN to get images.
  • Browsers. A request from a web page on another site (an Origin other than the server's own) is refused with 403. The sign-in and consent pages can't be shown inside another site's frame.
  • Keys and tokens are never logged. Only hashes of API keys and OAuth tokens are stored.
  • Turning it off. An administrator can turn the endpoint off with VIGIORA_MCP_ENABLED=false in the server's settings file and a restart. The endpoint then answers 404, and sign-in is off too.

How sign-in works#

The server follows the MCP authorization specification (OAuth 2.1):

  • A request without a token gets 401 with WWW-Authenticate: Bearer resource_metadata="https://<site>/.well-known/oauth-protected-resource/api/v1/mcp".
  • Protected Resource Metadata (RFC 9728) is served at /.well-known/oauth-protected-resource (and the /api/v1/mcp path form), and authorization server metadata (RFC 8414) at /.well-known/oauth-authorization-server. The issuer is the address the request arrived on, so a token issued on one address never works on another.
  • Clients identify themselves with a Client ID Metadata Document (an https URL as client_id, which claude.ai and ChatGPT use) or register with Dynamic Client Registration at /oauth/register.
  • Authorization code flow with PKCE (S256 only) at /oauth/authorize and /oauth/token, with the resource parameter (RFC 8707) and iss in the response (RFC 9207). Redirect URIs must match exactly; http is allowed only for localhost and 127.0.0.1, on any port.
  • Access tokens last 1 hour and work only on /api/v1/mcp of the server that issued them; REST /api/v1 refuses them. Refresh tokens last 30 days without use and change on every use; a used refresh token presented again revokes the whole connection. Revoke tokens at /oauth/revoke (RFC 7009).
  • Scopes: cameras:read, alerts:read, recordings:read, events:read, analytics:read, floorplans:read and devices:read, and for Read and control also cameras:write, cameras:control, alerts:write, recordings:write, network:read, analytics:write, floorplans:write and devices:control (admins and operators only for the camera, network, Analytics write, floor-plan write and device scopes). The Analytics, floor-plan and device scopes are granted from version 1.6.13. The choice on the consent page decides what is granted, narrowed to what the client asked for.

Revoke access#

Connected apps are listed in Settings → People and access → API keys under Connected apps, with when they were connected and last used, and their Ask before actions choice (human in the loop). Revoke ends an app's access at once; it has to sign in again to come back.

Access also ends on its own:

  • when you change your password, your user is disabled or your role is lowered (for every connected app of that user);
  • 90 days after you approved it (the app then asks you to sign in again).

To stop an agent that uses an API key, revoke the key on the same page. It stops working immediately.

Examples#

Ask your agent things like:

  • "Give me a briefing of the last 12 hours." (the daily_briefing prompt, or list_alerts and get_alert_snapshot)
  • "Was anyone at the front door after midnight? Show me the snapshot."
  • "Which cameras are offline or haven't recorded today?"
  • "Export the 2 minutes around alert 4812 and give me a download link." (needs recordings:write)
  • "Acknowledge all of yesterday's car alerts on the parking camera." (needs alerts:write; acknowledge_alerts with before and camera_id)
  • "Set up the new camera Vigiora found." (needs network:read and cameras:write; list_camera_candidates, then detect_camera with the camera's login and add_detected_cameras. A refused password ends the detection, because cameras lock after a few. From 1.6.8.)
  • "Find the Hikvision with MAC 08:cc:81:4a:1f:02 and fix its address." (needs network:read and cameras:write; lookup_network_address, then relocate_camera with dry_run first. See Network tools.)
  • "Do you need my OK before you move cameras?" (get_agent_policy: whether human in the loop is on for this connection.)
  • "Find a person in a red shirt at the entrance in the last hour." (list_camera_detection_events with from, then search_guardian for "red shirt", then detect_objects with at and prompts: ["person", "red shirt"] on the moments found, and get_object_image to show them. From 1.6.10.)
  • "What objects are on the garage camera now?" (detect_objects without at; describe what you look for, such as black t-shirt, not just t-shirt.)
  • "Describe this photo." (analyze_image with the photo in image_base64; it is not stored. Describing needs guardian:write.)

A tool call on the wire (JSON-RPC over HTTP POST):

curl -s https://<your-server>/api/v1/mcp \
  -H "Authorization: Bearer $VIGIORA_API_KEY" \
  -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -H "MCP-Protocol-Version: 2025-11-25" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"list_alerts","arguments":{"is_alert":true,"limit":5}}}'
Muokkaa tätä sivua GitHubissa