67 lines
3.9 KiB
HTML
67 lines
3.9 KiB
HTML
<div is="emby-scroller" class="view flex flex-direction-column scrollFrameY flex-grow" data-horizontal="false" data-forcescrollbar="true" data-centerfocus="true" data-bindheader="true" data-controller="__plugin/configPagejs" data-title="eMCPy">
|
|
<style>
|
|
.emcpy-page h2 { margin-top: 1.5em; margin-bottom: 0.5em; }
|
|
.emcpy-page code { background: #333; padding: 0.2em 0.5em; border-radius: 3px; }
|
|
.emcpy-status { margin-top: 1em; padding: 0.8em 1em; border-radius: 6px; background: rgba(255,255,255,0.03); border: 1px solid #3a3a3a; }
|
|
.emcpy-status.ok { border-color: #4CAF50; color: #4CAF50; }
|
|
.emcpy-status.err { border-color: #F44336; color: #F44336; }
|
|
.emcpy-status.pending { color: #FFA500; }
|
|
</style>
|
|
<div class="scrollSlider flex-direction-column padded-left padded-left-page padded-right padded-top-page padded-bottom-page">
|
|
<div class="readOnlyContent auto-center" style="max-width: 900px;">
|
|
<h1 class="pageTitle">eMCPy Configuration</h1>
|
|
<p style="color: #999; margin-top: -0.5em; margin-bottom: 1.5em;">MCP-Server (Model Context Protocol) für AI-Agenten. Läuft eingebettet in Emby auf einem eigenen Port.</p>
|
|
|
|
<form id="emcpyConfigForm" class="emcpyConfigForm">
|
|
<div class="paper-card" style="padding: 1.5em; margin-top: 2em;">
|
|
<h2 style="margin-top:0;">MCP-Server</h2>
|
|
|
|
<div class="checkboxContainer">
|
|
<label>
|
|
<input is="emby-checkbox" type="checkbox" id="enableMcpServer" />
|
|
<span>MCP-Server aktivieren</span>
|
|
</label>
|
|
<div class="fieldDescription">
|
|
Startet den HTTP-Listener mit dem MCP-Protokoll (JSON-RPC 2.0) beim Serverstart.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inputContainer" style="margin-top: 1em;">
|
|
<label class="inputLabel inputLabelUnfocused" for="mcpPort">Port</label>
|
|
<input is="emby-input" type="number" id="mcpPort" min="1024" max="65535" step="1" />
|
|
<div class="fieldDescription">
|
|
TCP-Port des MCP-Endpunkts (Standard: 8097). Muss auf dem Host frei sein und ggf. im Docker-Template gemappt werden.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inputContainer" style="margin-top: 1em;">
|
|
<label class="inputLabel inputLabelUnfocused" for="listenAddress">Listen-Adresse</label>
|
|
<input is="emby-input" type="text" id="listenAddress" />
|
|
<div class="fieldDescription">
|
|
<code>0.0.0.0</code> = alle Interfaces (empfohlen für Docker), <code>127.0.0.1</code> = nur lokal.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inputContainer" style="margin-top: 1em;">
|
|
<label class="inputLabel" for="apiKey">API-Key</label>
|
|
<input is="emby-input" type="password" id="apiKey" autocomplete="off" />
|
|
<div class="fieldDescription">
|
|
Optional. Leer = offen (nur im LAN verwenden!). Bei gesetztem Key müssen Clients den Header <code>X-Api-Key</code> oder <code>Authorization: Bearer <Key></code> senden.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="emcpy-status pending" id="serverStatus">
|
|
Status wird geladen …
|
|
</div>
|
|
|
|
<div style="margin-top: 1.5em;">
|
|
<button is="emby-button" type="submit" class="raised button-submit emby-button">
|
|
<span>Speichern</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|