Skip to content
Automation
Skill

/mediaserver-operation

Use this skill when the user asks to inspect, diagnose, or directly operate a configured Emby, Jellyfin, Plex, ZSpace, UGREEN, TrimeMedia, or Navidrome server. It discovers provider capabilities on demand and supports libraries, native movie/music search, episode coverage,

From plugin
moviepilot
12k15 skills
Install
$ npx -y skills add jxxghp/moviepilot --skill mediaserver-operation --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/mediaserver-operation

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use this skill when the user asks to inspect, diagnose, or directly operate a configured Emby, Jellyfin, Plex, ZSpace, UGREEN, TrimeMedia, or Navidrome server. It discovers provider capabilities on demand and supports libraries, native movie/music search, episode coverage,

SKILL.md

mediaserver-operation.SKILL.md
name: mediaserver-operation
version: 3
description: >-
  Use this skill when the user asks to inspect, diagnose, or directly operate a
  configured Emby, Jellyfin, Plex, ZSpace, UGREEN, TrimeMedia, or Navidrome
  server. It discovers provider capabilities on demand and supports libraries,
  native movie/music search, episode coverage, recent media, resume state,
  playback sessions, statistics, scans, metadata refreshes, and provider play
  URLs without adding permanent tools.
allowed-tools: execute_command

Media Server Operation

Use `scripts/mp-mediaserver.py`. The helper reads MoviePilot's local server configuration and credentials itself. Never request, print, or pass a host, username, password, API key, token, Cookie, or arbitrary URL.

Boundary

  • Keep `library.exists` in `moviepilot-api` for canonical duplicate checks. It

aggregates configured servers and applies MoviePilot media identity and music matching rules.

  • Use this Skill for server-native exploration, diagnostics, playback state,

library browsing, scans, and metadata refreshes.

  • A provider result is not automatically a MoviePilot transfer, subscription,

or history fact. Use the appropriate MoviePilot API for those workflows.

Instance And Provider Discovery

Fast path: call directly

Do not routinely call `instances` or `capabilities` before an operation. This Skill already contains the full action contract, and the helper performs instance resolution, provider support checks, complete argument validation, and the action in one `call` invocation.

  • If the user or prior context provides the exact server name, pass it with

`--server` and call the action immediately.

  • If no server name is known, omit `--server`. The helper automatically uses the

only enabled media server.

  • If multiple servers remain ambiguous, the failed call lists every valid

server name. Reuse that list for the next direct call; do not add a separate `instances` call unless the user explicitly asks to inspect instances.

  • Do not probe an action with empty or guessed arguments. Compose the complete

JSON object from the contract below before calling.

The helper rejects unknown fields and reports all detectable argument errors in one response before connecting to the provider, so correct every reported field together instead of retrying one field at a time.

Optional discovery

python skills/mediaserver-operation/scripts/mp-mediaserver.py instances
python skills/mediaserver-operation/scripts/mp-mediaserver.py capabilities
python skills/mediaserver-operation/scripts/mp-mediaserver.py capabilities --server "living-room"

The complete action and argument contract is documented below. Use `capabilities` only to confirm which documented actions a configured provider supports. For a compact machine-readable copy of one action's same contract:

python skills/mediaserver-operation/scripts/mp-mediaserver.py capabilities \
  --server "living-room" \
  --action items.season_episodes

Do not inspect the helper source to discover arguments and do not guess a provider-specific action. `capabilities` is optional and should be used only when the configured provider itself is unknown or support must be diagnosed.

Call Shape

python skills/mediaserver-operation/scripts/mp-mediaserver.py call \
  --server "living-room" \
  --action activity.latest \
  --arguments '{"limit":20}'

The `--arguments` value must be one JSON object. List reads default to 50 items and cap at 200.

External MCP Contract

External MCP clients do not receive this `SKILL.md` and cannot use the hidden `execute_command` tool. MoviePilot therefore exposes a separate admin-only MCP tool named `mediaserver_operation`. Its `tools/list` `inputSchema` contains one `oneOf` branch for every action below, including the function description, supported providers, effect, field types, required/default values, enums, nested `metadata.refresh` item fields, and cross-field rules. The external client should select the matching branch and make one `tools/call`; it does not need to call a discovery tool first.

MCP call arguments use the same contract without shell quoting:

{
  "server": "living-room",
  "action": "items.season_episodes",
  "arguments": {
    "item_id": "exact-series-id",
    "season": 2
  }
}

`server` may be omitted when only one media server is enabled. If multiple instances remain ambiguous, the result lists the valid server names.

Complete Action Contract

This is the complete Media Server Operation action contract. It comes directly from the script `ACTIONS` registry and matches the external MCP `tools/list` oneOf branches. A field name ending in `*` is required. Put every action parameter in the `arguments` object.

| action | Purpose and argument summary | | :--- | :--- | | `activity.backdrops` | Read recent provider backdrop images.; arguments: `limit`, `remote` | | `activity.latest` | Read recently added provider items.; arguments: `limit`, `username` | | `activity.resume` | Read in-progress/resumable provider items.; arguments: `limit`, `username` | | `capabilities.list` | List supported media-server actions and their complete argument contracts.; arguments: `action_name` | | `instances.list` | List configured media-server instances without connection secrets.; no arguments | | `items.count` | Count items below one library or parent.; arguments: `parent` | | `items.detail` | Read one provider item by native ID.; arguments: `item_id*` | | `items.list` | Page items below one library or parent.; arguments: `parent`, `offset`, `limit` | | `items.movies.search` | Search provider-native movie items by title and optional year.; arguments: `title*`, `year` | | `items.music.search` | Search provider-native music by title, artist, or album.; arguments: `title`, `artist`, `album` | | `items.season_episodes` | Read native episode coverage for one series and optional season.; arguments: `item_id`, `titl

Read more
Ships withmoviepilot

基于 NAStool 部分代码重新设计,聚焦自动化核心需求,减少问题同时更易于扩展和维护。

Get the whole plugin
Stats
11,745
Stars
1,484
Forks
Active
Maintenance
Python
Language
GPL-3.0
License
1h ago
Last commit
3y ago
Created

Repo: jxxghp/moviepilot

Other skills on moviepilot.