Logo de Mediaserver Operation

Mediaserver Operation

ComunidadePopular
jxxghp
mediaserver-operation

Use esta habilidade quando o usuário pedir para inspecionar, diagnosticar ou operar diretamente um servidor configurado do Emby, Jellyfin, Plex, ZSpace, UGREEN, TrimeMedia ou Navidrome. Ela descobre os recursos do provedor sob demanda e oferece suporte a bibliotecas, buscas nativas de filmes/músicas, cobertura de episódios, mídias recentes, estado de reprodução retomada, sessões de reprodução, estatísticas, varreduras, atualizações de metadados e URLs de reprodução do provedor, sem adicionar ferramentas permanentes.

Visão geral

Publicado porjxxghp
RepositórioMoviePilot
Nome da habilidademediaserver-operation
Estrelas
11.8K
Forks
1.5K
Arquivos incluídos
1
LicençaGPL-3.0
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por jxxghp no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Mediaserver Operation no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/jxxghp/MoviePilot/tree/v3/skills/mediaserver-operation
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Mediaserver Operation em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Mediaserver Operation automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Mediaserver Operation não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Mediaserver Operation faz?

Use esta habilidade quando o usuário pedir para inspecionar, diagnosticar ou operar diretamente um servidor configurado do Emby, Jellyfin, Plex, ZSpace, UGREEN, TrimeMedia ou Navidrome. Ela descobre os recursos do provedor sob demanda e oferece suporte a bibliotecas, buscas nativas de filmes/músicas, cobertura de episódios, mídias recentes, estado de reprodução retomada, sessões de reprodução, estatísticas, varreduras, atualizações de metadados e URLs de reprodução do provedor, sem adicionar ferramentas permanentes.

Por que usar Mediaserver Operation no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Mediaserver Operation é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Mediaserver Operation no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/jxxghp/MoviePilot/tree/v3/skills/mediaserver-operation. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Mediaserver Operation?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Mediaserver Operation?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Mediaserver Operation com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Mediaserver Operation é gratuita?

Sim. A habilidade é publicada no GitHub por jxxghp sob a licença GPL-3.0. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇