refactor: Umbenennung eMPCby -> eMCPy (Namespace, Assembly, Plugin-Name, Docs)

This commit is contained in:
michael committed 2026-09-07 17:45:50 +02:00
1 parent 542381a740
commit 3968bfea6f
8 files changed
+30 -30

No files matched your search

+9 -9
View File
@@ -17,7 +17,7 @@ using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Serialization;
namespace eMPCby
namespace eMCPy
{
public class Plugin : BasePlugin<PluginConfiguration>
{
@@ -27,11 +27,11 @@ namespace eMPCby
Instance = this;
}
public override string Name => "eMPCby – emby MCP";
public override string Name => "eMCPy – emby MCP";
public override string Description => "MCP-Server (Model Context Protocol) für AI-Agenten.";
/// <summary>Feste GUID – NIE ändern (Emby identifiziert das Plugin daran).</summary>
public override string Id => "eMPCbyEmbyMcp"; // GUID-Format empfohlen
public override string Id => "eMCPyEmbyMcp"; // GUID-Format empfohlen
public static Plugin Instance { get; private set; }
}
@@ -42,7 +42,7 @@ namespace eMPCby
```csharp
using MediaBrowser.Model.Plugins;
namespace eMPCby
namespace eMCPy
{
public class PluginConfiguration : BasePluginConfiguration
{
@@ -59,7 +59,7 @@ namespace eMPCby
using MediaBrowser.Controller;
using MediaBrowser.Model.Plugins;
namespace eMPCby
namespace eMCPy
{
public class PluginEntryPoint : IServerEntryPoint
{
@@ -93,7 +93,7 @@ Emby scannt die Plugin-Assembly und registriert automatisch alle Typen mit diese
| Interface | Zweck |
|---|---|
| `IServerEntryPoint` | Init/Start/Dispose beim Serverlebenszyklus – **Kern für eMPCby** |
| `IServerEntryPoint` | Init/Start/Dispose beim Serverlebenszyklus – **Kern für eMCPy** |
| `IRestfulService` | Eigene REST-Endpunkte (`/emby/<route>/...`) |
| `IScheduledTask` | Task im Dashboard (manuell + Trigger) |
| `IPluginConfigurationPage` | HTML-Config-Seite im Dashboard |
@@ -104,7 +104,7 @@ Kein manuelles Wiring nötig – Interface implementieren reicht.
## 4. Dependency Injection
Konstruktoren von EntryPoints/Services können beliebige Emby-Dienste anfordern. Für eMPCby relevant:
Konstruktoren von EntryPoints/Services können beliebige Emby-Dienste anfordern. Für eMCPy relevant:
- `IServerManager` – Version, Status, Health
- `IMediaLibraryManager` – Bibliotheken, Scan-Trigger
@@ -116,9 +116,9 @@ Konstruktoren von EntryPoints/Services können beliebige Emby-Dienste anfordern.
## 5. Build & Deploy (Unraid/Docker)
- Build: `dotnet build -c Release` → `bin/Release/netstandard2.0/eMPCby.dll`
- Build: `dotnet build -c Release` → `bin/Release/netstandard2.0/eMCPy.dll`
- Deploy: DLL nach `/mnt/user/appdata/Emby/plugins/` (Container-Pfad `/emby/plugins/`), Emby-Container neu starten.
- Verifikation: Dashboard → Plugins → „eMPCby“ sichtbar; `plugins/configurations/<Id>/` wird angelegt.
- Verifikation: Dashboard → Plugins → „eMCPy“ sichtbar; `plugins/configurations/<Id>/` wird angelegt.
- Debugging: Emby-Logs unter `/mnt/user/appdata/Emby/logs/embyserver.txt`.
## 6. MCP-Protokoll (Kurzreferenz)