mediaserver-operation
できること
AIが、設定済みのメディアサーバーのライブラリを閲覧し、再生の状態を確認し、スキャンやメタデータの更新を実行できるようにします。自宅でメディアサーバーを使うMoviePilotのユーザー向けです。
使う場面
- ✓メディアサーバーのライブラリに何が入っているかを確認したい、またはタイトルを探したいとき。
- ✓新しい映画や話数がEmby、Jellyfin、Plexに表示されないとき。
- ✓メディアサーバーでスキャンやメタデータの更新を実行したいとき。
スキルのリンク
https://github.com/jxxghp/MoviePilot/blob/v3/skills/mediaserver-operation/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。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の照合ルールを使うMoviePilotのAPIのスキルが担当します。
詳細
作者による元の説明
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
コメント
- …
このリポジトリの他のスキル
anysearch
12kエージェントが、Webをリアルタイムで検索し、金融や学術データなどの専門の情報源に問い合わせ、Webページの全文を読めるよう支援します。
browser-use
12kエージェントが、Webページを開いて読み、ボタンをクリックし、フォームに入力し、スクリーンショットを撮って結果を確認できるよう支援します。
command-dispatch
12kエージェントが、リクエストからMoviePilotのシステムやプラグインのコマンドを見つけて実行できるよう支援します。その前に、どのコマンドがあるかを確認します。
create-moviepilot-plugin
12kエージェントが、MoviePilotのバージョンに合ったファイル構成と設定を使い、MoviePilotのプラグインを作成または修正できるよう支援します。