Zyris MCP

A hosted Model Context Protocol (MCP) server that exposes the Zyris video platform as a set of agent-callable tools. Point any MCP-compatible client — Claude Desktop, Claude Code, Cursor, Windsurf, VS Code, or your own agent — at Zyris, and your assistant can ingest, analyse, search, and chat with video content using natural language.

Zyris runs and maintains the server for you. There's nothing to install or deploy — grab an API key, add a few lines to your client's MCP config, and your assistant has the tools.


Table of contents


What you can do with it

Once connected, an agent can perform the full video-intelligence lifecycle through conversation:

CapabilityWhat it enables
IngestImport videos from YouTube directly into your library.
ManageList, inspect, and delete videos in your library with rich filtering and sorting.
ProcessRun the analyse and search-process pipelines that make a video understandable and searchable.
OrganizeGroup processed videos into named collections for scoped operations.
SearchRun natural-language semantic search across videos or whole collections and get back ranked, timestamped clips.
VisualizeProject every segment of a selection into a 2-D map for clustering / exploration UIs.
ChatAsk free-form questions about a specific video and get grounded, RAG-based answers with multi-turn memory.
EmbedGenerate text embeddings or retrieve stored per-segment video embeddings for your own downstream ML.

Get your API key

  1. Generate a key (sk_...) from your Zyris dashboard's developer settings.
  2. Keep it out of anything you commit to source control or share publicly — treat it like a password.
  3. Use it in your MCP client config as shown below. Every client sends it the same way: the X-Zyris-Api-Key header (or Authorization: Bearer) on every request.

Connecting a client

All clients point at the same URL — https://playground.zyris.ai/mcp — and attach your API key as a header. Field names differ slightly per client; the shapes below cover the common ones.

Claude Code

bash
claude mcp add --transport http zyris https://playground.zyris.ai/mcp \
  --header "X-Zyris-Api-Key: sk_your_key_here"

Run /mcp inside Claude Code to confirm it connected. (Add --scope project to share the config with your team via .mcp.json.)

Cursor

Create .cursor/mcp.json in your project (or the global ~/.cursor/mcp.json):

json
{
  "mcpServers": {
    "zyris": {
      "url": "https://playground.zyris.ai/mcp",
      "headers": {
        "X-Zyris-Api-Key": "sk_your_key_here"
      }
    }
  }
}

Open Settings → MCP to verify the server shows a green status, then enable its tools.

VS Code (Copilot / MCP)

Add an .vscode/mcp.json to your workspace:

json
{
  "servers": {
    "zyris": {
      "type": "http",
      "url": "https://playground.zyris.ai/mcp",
      "headers": {
        "X-Zyris-Api-Key": "sk_your_key_here"
      }
    }
  }
}

Open the Chat view in Agent mode and select the zyris tools.

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

json
{
  "mcpServers": {
    "zyris": {
      "serverUrl": "https://playground.zyris.ai/mcp",
      "headers": {
        "X-Zyris-Api-Key": "sk_your_key_here"
      }
    }
  }
}

Reload Windsurf and refresh the MCP server list in the Cascade panel.

Claude Desktop

Claude Desktop connects to remote/HTTP MCP servers through its Connectors UI: Settings → Connectors → add a custom connector pointing at https://playground.zyris.ai/mcp. For config-file setups that only support stdio, bridge to the HTTP endpoint with mcp-remote:

json
{
  "mcpServers": {
    "zyris": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://playground.zyris.ai/mcp",
        "--header",
        "X-Zyris-Api-Key: sk_your_key_here"
      ]
    }
  }
}

Restart Claude Desktop; the tools appear under the 🔌 / tools menu in a new conversation.

Generic MCP client

Any client that supports the Streamable HTTP transport works:

  • URL: https://playground.zyris.ai/mcp
  • Header: X-Zyris-Api-Key: sk_... (or Authorization: Bearer sk_...)

For a quick interactive check, point the MCP Inspector at the same URL and header.


Capabilities & tool reference

All tools return JSON. Parameters marked optional may be omitted; defaults are shown. IDs are UUID strings unless noted.

1. Server & diagnostics

sdk_info

Report the server's effective configuration without leaking secrets. Use this first to confirm you're connected and that your key is being received.

  • Parameters: none
  • Returns: sdk_version, base_url, timeout, api_key_configured (boolean), api_key_source (request-header / none)
jsonc
// →
{ "sdk_version": "0.1.0", "base_url": "https://playground.zyris.ai", "timeout": 30.0, "api_key_configured": true, "api_key_source": "request-header" }

2. Video library management

list_videos

List videos owned by your API key, with filtering and pagination.

  • Parameters (all optional):
    • status — one of uploaded, analysed, search_processed, processed. processed requires both pipelines complete.
    • skip — offset for pagination
    • limit — page size (default 20)
    • sort_by, sort_order — e.g. created_at / desc
    • not_in_collection — when true, only videos not yet in any collection
  • Returns: a list of video rows, each including video_id, name, status, asset paths (video_path, thumbnail_path, hls_playlist_path), per-pipeline statuses (analyse_status, search_process_status, transcode/thumbnail/HLS), and created_at.

get_video

Fetch full details and metadata for one video.

  • Parameters: video_id
  • Returns: video record including video_metadata (duration, codecs, etc. when available) and all asset paths.

delete_video

Permanently delete a video and every derived asset (thumbnails, HLS, embeddings).

  • Parameters: video_id
  • Returns: { "status": "deleted", "video_id": "..." }
  • ⚠️ Irreversible. There is no soft-delete or undo.

3. Ingestion (uploads & imports)

import_youtube_video

Import a video directly from a YouTube URL — the backend fetches and ingests it.

  • Parameters: url (string), name (optional string)
  • Returns: { "video_id": "..." } (HTTP 202 — ingestion is asynchronous; poll get_upload_status)
  • Failure modes: raises a structured error for known YouTube conditions — private, unavailable, age-restricted, geo-blocked, copyright-blocked, too-long, or auth-required videos. The underlying code (e.g. YOUTUBE_VIDEO_PRIVATE) is included so an agent can explain why.

get_upload_status

Poll the ingestion/processing status of an uploaded or imported video.

  • Parameters: video_id
  • Returns: per-pipeline statuses (thumbnail_generation_status, transcoding_status, hls_generation_status) plus a convenience derived_status rolling them into one of pending / in_progress / completed / failed. Poll derived_status in a loop until it is terminal.

Direct binary file uploads are not exposed as MCP tools, since an LLM host can't stream large file bodies safely. For agent-driven ingestion, use YouTube import, then drive processing/search through these tools.

4. Processing pipelines

A raw video isn't useful until it's processed. Two independent pipelines apply:

  • Analyse — content understanding (the basis for ask_video).
  • Search-process — segments and embeds the video so it becomes searchable and its embeddings retrievable.

A video is fully processed only when both finish. A video must be fully processed before it can be added to a collection.

initiate_analyse

  • Parameters: video_id
  • Returns: { "video_id": "...", "status": "..." } (enqueued)

get_analyse_status

  • Parameters: video_id
  • Returns: video_id, status (e.g. done), optional percentage and error. Note: analyse reports success as "done".

initiate_search_process

  • Parameters: video_id
  • Returns: { "video_id": "...", "status": "..." } (enqueued)

get_search_process_status

  • Parameters: video_id
  • Returns: video_id, status (e.g. success), optional percentage and error. Note: search-process reports success as "success".

Pipeline status vocabularies differ per pipeline. Treat done/success/completed as done, failed/error as failed, and keep polling otherwise.

5. Collections

Collections group fully-processed videos so search and other operations can be scoped to a set.

list_collections

  • Parameters: page (default 1), page_size (default 10, max 100)
  • Returns: data (collections, each with collection_id, name, description, video_count, up to four signed thumbnails), plus page, page_size, total.

create_collection

  • Parameters: name (string), description (optional)
  • Returns: the created collection.

update_collection

  • Parameters: collection_id, name (optional), description (optional). At least one of name/description must be provided.
  • Returns: the updated collection.

delete_collection

  • Parameters: collection_id
  • Returns: { "status": "deleted", "collection_id": "..." }
  • Deletes only the collection — the member videos are not deleted.

list_collection_videos

  • Parameters: collection_id, page (default 1), page_size (default 10), sort_by (default created_at), sort_order (default desc)
  • Returns: paginated videos in the collection (data, page, page_size, total).

add_video_to_collection

  • Parameters: collection_id, video_id
  • Returns: { "status": "added", ... }
  • Constraint: the video must be fully processed (both analyse and search-process done). Adding a video that's already a member returns a conflict.

remove_video_from_collection

  • Parameters: collection_id, video_id
  • Returns: { "status": "removed", ... }
  • Removes only the link; the video record is untouched and can be re-added later.

6. Semantic search & visualization

search_videos

Natural-language semantic search returning ranked, timestamped clips.

  • Parameters:
    • query (string) — the natural-language query
    • video_ids (optional list) — restrict to specific videos
    • collection_id (optional) — restrict to a collection
    • top_k (default 5) — number of hits to return
    • Provide at least one of video_ids or collection_id.
  • Returns: a ranked list of hits, each with rank, start/end (HH:MM:SS timestamps), video_id, and signed thumbnail_url / hls_playlist_url / video_url for playback.

visualize_videos

Project every segment of a selection into a 2-D map (UMAP) — ideal for clustering and exploration UIs.

  • Parameters: video_ids (optional list) and/or collection_id (provide at least one)
  • Returns: videos (per-video metadata + color + playback URLs) and points (one per segment: segment_id, video_id, x, y, start/end, thumbnail_url).

7. Conversational Q&A (chat)

ask_video

Ask a free-form question about one video and get a grounded, retrieval-augmented answer.

  • Parameters:
    • video_id — the video to ask about
    • question (string)
    • top_k (optional) — how many segments to retrieve as context
    • history (optional) — prior turns for multi-turn context, as [{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}, ...]
  • Returns: { "answer": "..." }
  • Stateless: the server keeps no memory between calls. To hold a conversation, resend prior turns in history each time.

The MCP tool returns the complete answer in one response, which is the right shape for tool-calling agents.

8. Embeddings

embed_text

Generate an embedding vector for an arbitrary string.

  • Parameters: text (1–4096 characters), include_vector (default false)
  • Returns: status, embedding_count, dimension. When include_vector is true, the full vector(s) are included under data. By default the (large) vector is omitted to keep the response compact.

get_video_embeddings

Retrieve the stored per-segment embedding vectors for a processed video.

  • Parameters: video_id, include_vectors (default false)
  • Returns: id, status (ready when available), segment_count, and data — one entry per segment with its start/end, embedding_option/scope, and dimension. Raw vectors are omitted unless include_vectors is true.
  • Requires: the video's search-process pipeline must be finished, otherwise this returns a conflict — wait until search_process_status is done and retry.

End-to-end workflows

Make a YouTube video searchable, then query it

  1. import_youtube_video(url) → grab video_id
  2. Poll get_upload_status(video_id) until derived_status is completed
  3. initiate_analyse(video_id) and initiate_search_process(video_id)
  4. Poll get_analyse_status / get_search_process_status until terminal
  5. search_videos(query="the moment they discuss pricing", video_ids=[video_id])
  6. ask_video(video_id, "Summarize the pricing discussion")

Build a curated, searchable collection

  1. create_collection("Q2 Customer Calls") → collection_id
  2. For each fully-processed video: add_video_to_collection(collection_id, video_id)
  3. search_videos(query="objections about onboarding", collection_id=collection_id, top_k=10)
  4. visualize_videos(collection_id=collection_id) to render a segment map in your UI

Status & lifecycle reference

A video moves through these states:

  • uploaded — ingested; transcode/thumbnail/HLS done, but not yet understood or searchable.
  • analysed — analyse pipeline complete (enables ask_video).
  • search_processed — search pipeline complete (enables search + embeddings retrieval).
  • processed — both pipelines complete (required for collection membership).

Pipeline status vocabularies (don't string-compare blindly):

PipelineSuccess valueFailure valuesTerminal?
Upload (derived_status)completedfailedalso pending / in_progress
Analysedonefailed / errorelse keep polling
Search-processsuccessfailed / errorelse keep polling

Error handling

Every failed call is returned to the model as a structured error containing the exception type, HTTP status_code, the raw response_body, and a human-readable message. Common cases:

HTTPMeaningTypical cause
400Bad requestInvalid parameters; for YouTube imports, a specific YOUTUBE_* code.
401Authentication failedMissing/invalid API key.
403Permission deniedKey lacks access to the resource.
404Not foundUnknown video_id / collection_id.
409ConflictVideo already in collection, or pipeline not finished yet.
413Payload too largeUpload exceeds the size limit.
422Validation errorMalformed body.
429Rate limitedIncludes Retry-After when available.
5xxServer / upstream errorTransient backend issue — retry with backoff.

If no API key is provided (no X-Zyris-Api-Key header), the call returns a clear "no API key" error before any backend request — check sdk_info to confirm your key is being resolved from request-header.


Security notes

  • Your API key travels per request in the X-Zyris-Api-Key header (or Authorization: Bearer) and is never returned by any tool.
  • Treat your key like a password: don't commit it to a repo, paste it into shared docs, or check in an MCP config file that contains it. Store it in your client's local/secret config, not in a file you'll push.
  • If a key is ever exposed, rotate it from your Zyris dashboard immediately.
  • delete_video is permanent and irreversible; agents should confirm with you before calling it.

Troubleshooting

SymptomFix
Client can't connectConfirm the URL is exactly https://playground.zyris.ai/mcp and that your network allows outbound HTTPS.
401 on every callMissing or wrong API key. Confirm your client config sends X-Zyris-Api-Key (or Authorization: Bearer). Check sdk_info → api_key_source.
"No API key" errorYour client isn't sending the header — double-check the MCP config file for a typo in the header name or a missing key.
Tools don't show up in the clientRe-check the config file syntax (JSON) and restart/reload the client after adding the server.
add_video_to_collection returns 409The video isn't fully processed yet, or it's already a member. Confirm both pipelines are done.
get_video_embeddings returns 409Search-process pipeline hasn't finished. Wait until search_process_status is done.