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
- Get your API key
- Connecting a client
- Capabilities & tool reference
- End-to-end workflows
- Status & lifecycle reference
- Error handling
- Security notes
- Troubleshooting
What you can do with it
Once connected, an agent can perform the full video-intelligence lifecycle through conversation:
| Capability | What it enables |
|---|---|
| Ingest | Import videos from YouTube directly into your library. |
| Manage | List, inspect, and delete videos in your library with rich filtering and sorting. |
| Process | Run the analyse and search-process pipelines that make a video understandable and searchable. |
| Organize | Group processed videos into named collections for scoped operations. |
| Search | Run natural-language semantic search across videos or whole collections and get back ranked, timestamped clips. |
| Visualize | Project every segment of a selection into a 2-D map for clustering / exploration UIs. |
| Chat | Ask free-form questions about a specific video and get grounded, RAG-based answers with multi-turn memory. |
| Embed | Generate text embeddings or retrieve stored per-segment video embeddings for your own downstream ML. |
Get your API key
- Generate a key (
sk_...) from your Zyris dashboard's developer settings. - Keep it out of anything you commit to source control or share publicly — treat it like a password.
- Use it in your MCP client config as shown below. Every client sends it the same way: the
X-Zyris-Api-Keyheader (orAuthorization: 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
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):
{
"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:
{
"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:
{
"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:
{
"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_...(orAuthorization: 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)
// →
{ "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 ofuploaded,analysed,search_processed,processed.processedrequires both pipelines complete.skip— offset for paginationlimit— page size (default20)sort_by,sort_order— e.g.created_at/descnot_in_collection— whentrue, 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), andcreated_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; pollget_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 conveniencederived_statusrolling them into one ofpending/in_progress/completed/failed. Pollderived_statusin 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), optionalpercentageanderror. Note:analysereports 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), optionalpercentageanderror. Note:search-processreports success as"success".
Pipeline status vocabularies differ per pipeline. Treat
done/success/completedas done,failed/erroras 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(default1),page_size(default10, max100) - Returns:
data(collections, each withcollection_id,name,description,video_count, up to four signedthumbnails), pluspage,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(default1),page_size(default10),sort_by(defaultcreated_at),sort_order(defaultdesc) - 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
analyseandsearch-processdone). 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 queryvideo_ids(optional list) — restrict to specific videoscollection_id(optional) — restrict to a collectiontop_k(default5) — number of hits to return- Provide at least one of
video_idsorcollection_id.
- Returns: a ranked list of hits, each with
rank,start/end(HH:MM:SStimestamps),video_id, and signedthumbnail_url/hls_playlist_url/video_urlfor 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/orcollection_id(provide at least one) - Returns:
videos(per-video metadata + color + playback URLs) andpoints(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 aboutquestion(string)top_k(optional) — how many segments to retrieve as contexthistory(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
historyeach 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(defaultfalse) - Returns:
status,embedding_count,dimension. Wheninclude_vectoristrue, the full vector(s) are included underdata. 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(defaultfalse) - Returns:
id,status(readywhen available),segment_count, anddata— one entry per segment with itsstart/end,embedding_option/scope, anddimension. Raw vectors are omitted unlessinclude_vectorsistrue. - Requires: the video's search-process pipeline must be finished, otherwise this returns a conflict — wait until
search_process_statusis done and retry.
End-to-end workflows
Make a YouTube video searchable, then query it
import_youtube_video(url)→ grabvideo_id- Poll
get_upload_status(video_id)untilderived_statusiscompleted initiate_analyse(video_id)andinitiate_search_process(video_id)- Poll
get_analyse_status/get_search_process_statusuntil terminal search_videos(query="the moment they discuss pricing", video_ids=[video_id])ask_video(video_id, "Summarize the pricing discussion")
Build a curated, searchable collection
create_collection("Q2 Customer Calls")→collection_id- For each fully-processed video:
add_video_to_collection(collection_id, video_id) search_videos(query="objections about onboarding", collection_id=collection_id, top_k=10)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 (enablesask_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):
| Pipeline | Success value | Failure values | Terminal? |
|---|---|---|---|
Upload (derived_status) | completed | failed | also pending / in_progress |
| Analyse | done | failed / error | else keep polling |
| Search-process | success | failed / error | else 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:
| HTTP | Meaning | Typical cause |
|---|---|---|
| 400 | Bad request | Invalid parameters; for YouTube imports, a specific YOUTUBE_* code. |
| 401 | Authentication failed | Missing/invalid API key. |
| 403 | Permission denied | Key lacks access to the resource. |
| 404 | Not found | Unknown video_id / collection_id. |
| 409 | Conflict | Video already in collection, or pipeline not finished yet. |
| 413 | Payload too large | Upload exceeds the size limit. |
| 422 | Validation error | Malformed body. |
| 429 | Rate limited | Includes Retry-After when available. |
| 5xx | Server / upstream error | Transient 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-Keyheader (orAuthorization: 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_videois permanent and irreversible; agents should confirm with you before calling it.
Troubleshooting
| Symptom | Fix |
|---|---|
| Client can't connect | Confirm the URL is exactly https://playground.zyris.ai/mcp and that your network allows outbound HTTPS. |
401 on every call | Missing 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" error | Your 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 client | Re-check the config file syntax (JSON) and restart/reload the client after adding the server. |
add_video_to_collection returns 409 | The video isn't fully processed yet, or it's already a member. Confirm both pipelines are done. |
get_video_embeddings returns 409 | Search-process pipeline hasn't finished. Wait until search_process_status is done. |