mediaserver-operation
What it does
It lets the AI browse libraries, check playback state and trigger scans or metadata refreshes on your configured media server. It is for MoviePilot users who run a home media server.
When to use it
- ✓When you want to check what a media server library contains or find a title.
- ✓When a new movie or episode is missing from Emby, Jellyfin or Plex.
- ✓When you want to trigger a scan or metadata refresh on your media server.
Skill link
https://github.com/jxxghp/MoviePilot/blob/v3/skills/mediaserver-operation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Please trigger a library scan on my Jellyfin server because the new episode is missing.”
5 new skills a week. 1 minute to read.
How it works
The AI runs a bundled helper that reads your saved server settings, checks the server's own data and performs the action you requested.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
Run the bundled copy from the MoviePilot program directory with its project runtime, for example:
cd <MOVIEPILOT_ROOT>
python skills/mediaserver-operation/scripts/mp-mediaserver.py instances
The Agent command environment routes python to the project-specific moviepilot-python
entry when available and falls back to the project or Docker VENV_PATH Python otherwise.
Media-server connections may depend on macOS local-network permissions, so use the provided
python command for every operation.
The runtime sets MOVIEPILOT_ROOT for copied skills. If you run a copied
script directly from <CONFIG_PATH>/agent/skills/, set that variable to the
program directory first; otherwise the helper returns a clear relocation
error. Do not use a system python3 when it does not meet MoviePilot's
required Python version.
Boundary
- Keep
library.existsinmoviepilot-apifor 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
--serverand 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
instancescall 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.
The default schema mode is full. Clients
FAQ
Do I have to share my server login?
No. The helper reads the server settings from MoviePilot, so you do not paste addresses or keys into the chat.
Which servers does it support?
It supports Emby, Jellyfin, Plex, ZSpace, UGREEN, TrimeMedia and Navidrome.
Does it handle duplicate checks too?
Not directly. Canonical duplicate checks stay in the MoviePilot API skill, which applies MoviePilot's matching rules.
Details
Original description by the author
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.
repo: jxxghp/MoviePilot
Popularity
- GitHub stars
- 12k
- Ranking position
- #11485
- License
- GPL-3.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
anysearch
12kHelps your agent search the web in real time, query specialized sources such as finance or academic data and read full web pages.
browser-use
12kHelps your agent open web pages, read them, click buttons, fill in forms and take screenshots to check the results.
command-dispatch
12kHelps your agent find and run MoviePilot system or plugin commands from a request, after checking which commands exist.
create-moviepilot-plugin
12kHelps your agent create or fix a MoviePilot plugin, using the right file layout and setup for the MoviePilot version.
Similar skills
knowledge-automation
394kHelps your agent set up a recurring job that brings new content into your Knowledge vault on a schedule, then checks that the job runs.
knowledge-source-ingest
394kHelps your agent keep a Knowledge vault current with new items from chat channels, feeds, or mailboxes, without re-adding what it already has.
benchmark
280kHelps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.