mediaserver-operation
它能做什么
它让 AI 浏览媒体库、检查播放状态,并在你已配置的媒体服务器上触发扫描或元数据刷新。适用于运行家庭媒体服务器的 MoviePilot 用户。
适用场景
- ✓当你想查看媒体服务器的媒体库内容,或查找某个标题时。
- ✓当新的电影或剧集在 Emby、Jellyfin 或 Plex 中缺失时。
- ✓当你想在媒体服务器上触发扫描或元数据刷新时。
技能链接
https://github.com/jxxghp/MoviePilot/blob/v3/skills/mediaserver-operation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我的 Jellyfin 服务器上触发媒体库扫描,因为新的一集没有显示。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会运行随附的辅助工具,读取你已保存的服务器设置,检查服务器自身的数据,并执行你要求的操作。
技术内容(原始 SKILL.md)
作者在 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
常见问题
我需要共享服务器的登录信息吗?
不需要。辅助工具会从 MoviePilot 读取服务器设置,因此你无需把地址或密钥粘贴到聊天中。
它支持哪些服务器?
它支持 Emby、Jellyfin、Plex、ZSpace、UGREEN、TrimeMedia 和 Navidrome。
它也处理重复检查吗?
不直接处理。标准的重复检查仍由 MoviePilot API 技能负责,它会应用 MoviePilot 的匹配规则。
详情
作者的原始描述
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
热度
- GitHub 星标
- 12k
- 排名
- #11485
- 许可证
- GPL-3.0
- 更新时间
- 2026/11/1
评论
- …