Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

xpai-camera-control

БесплатноЗапускает вложенные скриптыНе проверен

Discover, connect, and control XPAI LAN cameras via MCP. Capabilities: device detection, streaming, WebRTC preview, snapshots, PTZ control, alarm events…

catolin-zhangот catolin-zhang323 установки в других каталогах

Об этом скилле

Camera Control Skill

When to Use

Trigger when the user wants to discover, view, capture, record, move (PTZ), monitor (events/alarm), adjust (illumination/image), or track with IP cameras on the same LAN. Everyday single-step asks this covers: "what cameras are on my network?"; "show me the front-door feed" (screenshot / RTSP link / WebRTC preview); "record 30 seconds"; "pan up to check the roof"; "alert me and snapshot when someone passes"; "too dark: raise the brightness / turn on the fill light"; "set line-crossing detection at the garage entrance".

The frames, event records, and stream URLs this skill produces also power higher-level, multistep tasks:

  • Visual Q&A — read a captured frame to answer questions like "has my package arrived?" or "did I leave the warehouse light on?", then act on the answer (e.g. switch to night mode)
  • Event-driven automation — on a motion/human/vehicle alarm, auto-snapshot, pan toward the subject, or chain follow-up steps
  • Periodic comparison — capture at intervals and compare frames (construction progress, water level)
  • Downstream hand-off — pass the stream_url or event store to external consumers (CV pipeline, NVR, alert platform)
  • Multi-camera patrol — sweep all connected cameras and summarize which areas show activity

Running Mode: MCP Server (stdio transport)

scripts/mcp_server.py runs as an MCP server over stdio transport only — it is not a network service (no port, no localhost URL). The MCP client launches it as a child process (config below) and exchanges JSON-RPC over stdin/stdout; the Agent interacts with all camera tools exclusively through this channel, and per-session connection state lives in that child process's memory.

Installation

If xpai-camera-control tools are not present in the available tool set, follow these steps:

Step 1 — Determine SKILL_ROOT: the absolute path of the directory containing this SKILL.md, or run python -c "from scripts._paths import get_skill_root; print(get_skill_root())".

Step 2 — Install dependencies: "<MCP_PYTHON>" -m pip install -r <SKILL_ROOT>/requirements.txt — <MCP_PYTHON> is the absolute path of the same 64-bit Python interpreter configured for the MCP server in Step 3. Always install through -m pip on that exact interpreter: a bare pip may belong to a different Python environment.

Step 3 — Write MCP config: append the following JSON to the host's MCP config file (replace <SKILL_ROOT> with the actual path from Step 1):

{
  "mcpServers": {
    "xpai-camera-control": {
      "command": "python",
      "args": ["<SKILL_ROOT>/scripts/mcp_server.py"]
    }
  }
}

Config notes: args must stay an absolute path — do not rely on cwd (host support for cwd varies). On Windows, write the path with forward slashes or escaped backslashes (\\) so the JSON stays valid. command must be the same 64-bit Python interpreter used in Step 2 — use its absolute path if it is not the PATH python. Common config locations: Claude Desktop %APPDATA%\Claude\claude_desktop_config.json (Win) / ~/Library/Application Support/Claude/claude_desktop_config.json (macOS); Cursor Settings → MCP → Add Server; Cline .cline/mcp_settings.json.

Native library (camera-proto): the native library is delivered as the pinned pip dependency camera-proto==0.3.0, installed together with the other dependencies in Step 2 — installation happens at setup time, never at MCP startup. The MCP server starts normally even if the package is missing; the first camera tool call then returns an error containing the exact fix command to run — "<MCP_PYTHON>" -m pip install -r requirements.txt, with the actual interpreter path and requirements file filled in. After installing, simply retry the tool — no server restart needed (the loader retries on the next call). On startup, the first import runs a one-shot dependency self-check and writes a single stderr line with the actual interpreter path and the camera-proto status — read it first when diagnosing. Startup output goes to stderr, never to the JSON-RPC stdout channel.

MCP-Only Interaction (Hard Rule)

All camera operations MUST go through the MCP tools exposed by scripts/mcp_server.py. If the tools are not present in your available tool set, do NOT fall back to scripting — follow the Installation steps first, then call the tools; if server startup fails, report the stderr reason and resolve it before retrying.

  • NEVER import scripts.toolkit (or any module inside this package) directly, and NEVER write standalone scripts that re-implement or wrap tool functionality — direct imports bypass the skill's security constraints (explicit user confirmation, parameter validation) and the in-memory connection state held by the MCP server process, so scripted calls in a separate process silently violate both.

Single-Instance Limit

Полный SKILL.md на ClawHub

Установить xpai-camera-control в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл xpai-camera-control?

Discover, connect, and control XPAI LAN cameras via MCP. Capabilities: device detection, streaming, WebRTC preview, snapshots, PTZ control, alarm events, illumination, image settings, detection & tracking, device management.

Как установить скилл xpai-camera-control?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл xpai-camera-control запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить xpai-camera-control с