Logo di Mediaserver Operation

Mediaserver Operation

CommunityPopolare
jxxghp
mediaserver-operation

Usa questa skill quando l’utente chiede di esaminare, diagnosticare o gestire direttamente un server configurato Emby, Jellyfin, Plex, ZSpace, UGREEN, TrimeMedia o Navidrome. Rileva le funzionalità del provider solo quando servono e supporta librerie, ricerca nativa di film e musica, copertura degli episodi, contenuti aggiunti di recente, stato di ripresa, sessioni di riproduzione, statistiche, scansioni, aggiornamenti dei metadati e URL di riproduzione del provider, senza aggiungere strumenti permanenti.

Panoramica

Pubblicato dajxxghp
RepositoryMoviePilot
Nome della skillmediaserver-operation
Stelle
11.8K
Fork
1.5K
File inclusi
1
LicenzaGPL-3.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da jxxghp su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Mediaserver Operation in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/jxxghp/MoviePilot/tree/v3/skills/mediaserver-operation
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jxxghp/MoviePilot.git /tmp/MoviePilot
mkdir -p .claude/skills
cp -r /tmp/MoviePilot/skills/mediaserver-operation .claude/skills/mediaserver-operation
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Mediaserver Operation in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Mediaserver Operation non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Mediaserver Operation non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

bash
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:

bash
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

bash
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:

json
{
  "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.

actionPurpose and argument summary
activity.backdropsRead recent provider backdrop images.; arguments: limit, remote
activity.latestRead recently added provider items.; arguments: limit, username
activity.resumeRead in-progress/resumable provider items.; arguments: limit, username
capabilities.listList supported media-server actions and their complete argument contracts.; arguments: action_name
instances.listList configured media-server instances without connection secrets.; no arguments
items.countCount items below one library or parent.; arguments: parent
items.detailRead one provider item by native ID.; arguments: item_id*
items.listPage items below one library or parent.; arguments: parent, offset, limit
items.movies.searchSearch provider-native movie items by title and optional year.; arguments: title*, year
items.music.searchSearch provider-native music by title, artist, or album.; arguments: title, artist, album
items.season_episodesRead native episode coverage for one series and optional season.; arguments: item_id, title, year, season
libraries.listList visible provider libraries.; arguments: hidden, username
library.scanTrigger a provider library scan.; arguments: scan_mode
metadata.refreshRefresh provider metadata for mapped items.; arguments: items*
playback.sessionsRead active playback sessions.; no arguments
playback.urlBuild the provider play URL for one item.; arguments: item_id*
server.statisticsRead media counts and provider statistics.; no arguments
server.user.library_foldersRead the current user's visible library folders.; no arguments
server.users.countRead provider user count.; no arguments

activity.backdrops

Read recent provider backdrop images. Effect: safe_read. Providers: ugreen, trimemedia, mediavault.

  • limit (integer; default 50): Number of items to return, from 1 to 200.
  • remote (boolean; default False): Return provider URLs that are remotely accessible.

activity.latest

Read recently added provider items. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • limit (integer; default 50): Number of items to return, from 1 to 200.
  • username (string): Read for this username; supported by Emby, Jellyfin, and ZSpace.

activity.resume

Read in-progress/resumable provider items. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • limit (integer; default 50): Number of items to return, from 1 to 200.
  • username (string): Read for this username; supported by Emby, Jellyfin, and ZSpace.

capabilities.list

List supported media-server actions and their complete argument contracts. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • action_name (string): Optional exact action name used to return one capability contract.

instances.list

List configured media-server instances without connection secrets. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • arguments: {}

items.count

Count items below one library or parent. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • parent (string|integer): Library or parent item ID; Navidrome may omit it and use music.
  • Rule: parent is required except for Navidrome, which defaults to music.

items.detail

Read one provider item by native ID. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • item_id* (string): Provider-native item ID returned by the selected media server.

items.list

Page items below one library or parent. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • parent (string|integer): Library or parent item ID; Navidrome may omit it and use music.
  • offset (integer; default 0): Zero-based list offset.
  • limit (integer; default 50): Number of items to return, from 1 to 200.
  • Rule: parent is required except for Navidrome, which ignores it.

items.movies.search

Search provider-native movie items by title and optional year. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, mediavault.

  • title* (string): Movie title.
  • year (string|integer): Optional release year.

items.music.search

Search provider-native music by title, artist, or album. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, navidrome.

  • title (string): Track, album, or music-item title.
  • artist (string): Artist name.
  • album (string): Album name; provide title, artist, or album.
  • Rule: Provide at least one of title, artist, and album.

items.season_episodes

Read native episode coverage for one series and optional season. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, mediavault.

  • item_id (string): Provider-native item ID returned by the selected media server.
  • title (string): Series title; provide it or item_id.
  • year (string|integer): Optional premiere year.
  • season (integer): Optional season number.
  • Rule: Provide at least one of item_id and title.

libraries.list

List visible provider libraries. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • hidden (boolean; default False): Return only libraries configured for synchronization.
  • username (string): Read libraries visible to this username; supported by Emby, Jellyfin, and ZSpace.

library.scan

Trigger a provider library scan. Effect: external_side_effect. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • scan_mode (string|integer): UGREEN-native scan mode; omit it for every other provider.

metadata.refresh

Refresh provider metadata for mapped items. Effect: external_side_effect. Providers: emby, plex, zspace, ugreen, trimemedia.

  • items* (object[]): Items to refresh. Each item supports title:string, year:string|integer, type using the exact MoviePilot media-type value, category:string, and target_path:string.

playback.sessions

Read active playback sessions. Effect: safe_read. Providers: emby, jellyfin, plex.

  • arguments: {}

playback.url

Build the provider play URL for one item. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • item_id* (string): Provider-native item ID returned by the selected media server.

server.statistics

Read media counts and provider statistics. Effect: safe_read. Providers: emby, jellyfin, plex, zspace, ugreen, trimemedia, navidrome, mediavault.

  • arguments: {}

server.user.library_folders

Read the current user's visible library folders. Effect: safe_read. Providers: emby, jellyfin, zspace.

  • arguments: {}

server.users.count

Read provider user count. Effect: safe_read. Providers: emby, jellyfin, zspace, ugreen, trimemedia, navidrome, mediavault.

  • arguments: {}

Safety And Verification

  • Before library.scan, confirm the exact server and scan scope/mode.
  • Before metadata.refresh, confirm the exact item list because providers may perform a broad library refresh when a precise item cannot be mapped.
  • After a scan or refresh, verify with activity.latest, items.detail, or the smallest relevant library query.
  • If a provider does not advertise an action, report it as unsupported. Never fall back to raw HTTP, arbitrary SDK methods, or credentials copied from MoviePilot settings.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Mediaserver Operation?

Usa questa skill quando l’utente chiede di esaminare, diagnosticare o gestire direttamente un server configurato Emby, Jellyfin, Plex, ZSpace, UGREEN, TrimeMedia o Navidrome. Rileva le funzionalità del provider solo quando servono e supporta librerie, ricerca nativa di film e musica, copertura degli episodi, contenuti aggiunti di recente, stato di ripresa, sessioni di riproduzione, statistiche, scansioni, aggiornamenti dei metadati e URL di riproduzione del provider, senza aggiungere strumenti permanenti.

Perché usare Mediaserver Operation su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Mediaserver Operation è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Mediaserver Operation in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/jxxghp/MoviePilot/tree/v3/skills/mediaserver-operation. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Mediaserver Operation?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Mediaserver Operation?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Mediaserver Operation: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Mediaserver Operation è gratuita?

Sì. È pubblicata su GitHub da jxxghp con licenza GPL-3.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇