feat: eMPCby Plugin (Plugin, Config, McpHttpServer, McpToolRegistry, ServiceRegistrar)

- Plugin: BasePlugin<PluginConfiguration> + IServerEntryPoint, GUID 095db6d6-...
- McpHttpServer: HttpListener auf /mcp, JSON-RPC 2.0, API-Key-Check
- McpToolRegistry: initialize, tools/list, tools/call + 4 Tools
  (emby_server_info, emby_search, emby_now_playing, emby_get_item)
- ServiceRegistrar: zweites IServerEntryPoint, DI-Brücke für
  ISessionManager/ILibraryManager/IUserManager
- Build: net6.0, MediaBrowser.Server.Core 4.9.1.90, 0 Fehler
This commit is contained in:
michael committed 2026-09-07 17:03:05 +02:00
1 parent 6fe05698cf
commit 798b33b22c
26 files changed
+970

No files matched your search

+154
View File
@@ -0,0 +1,154 @@
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Serialization;
namespace eMPCby.Mcp
{
/// <summary>
/// Eigenständiger HTTP-Listener (Muster: WatchParty ExternalWebServer), der das
/// MCP-Protokoll (JSON-RPC 2.0) auf /mcp bedient. Läuft neben dem Emby-Port.
/// </summary>
public class McpHttpServer
{
private readonly ILogger _logger;
private readonly IJsonSerializer _json;
private readonly int _port;
private readonly string _listenAddress;
private readonly string _apiKey;
private readonly HttpListener _listener;
private readonly CancellationTokenSource _cts = new CancellationTokenSource();
private readonly McpToolRegistry _tools;
public McpHttpServer(ILogger logger, IJsonSerializer json, int port, string listenAddress, string apiKey)
{
_logger = logger;
_json = json;
_port = port;
_listenAddress = string.IsNullOrEmpty(listenAddress) ? "0.0.0.0" : listenAddress;
_apiKey = apiKey ?? string.Empty;
_listener = new HttpListener();
// "*" bindet an alle Interfaces (Linux: ohne Root-Problem)
_listener.Prefixes.Add($"http://*:{_port}/");
_tools = new McpToolRegistry(_logger, _json);
}
public string Start()
{
try
{
_listener.Start();
_logger.Info("[eMPCby] MCP-Server lauscht auf http://{0}:{1}/mcp", _listenAddress, _port);
Task.Run(() => ListenAsync(_cts.Token));
return $"Lauscht auf {_listenAddress}:{_port}";
}
catch (Exception ex)
{
_logger.ErrorException("[eMPCby] MCP-Server konnte nicht starten", ex);
return "Fehler: " + ex.Message;
}
}
public void Stop()
{
if (!_listener.IsListening) return;
_cts.Cancel();
_listener.Stop();
_listener.Close();
_logger.Info("[eMPCby] MCP-Server gestoppt.");
}
private async Task ListenAsync(CancellationToken ct)
{
while (!ct.IsCancellationRequested && _listener.IsListening)
{
HttpListenerContext ctx;
try
{
ctx = await _listener.GetContextAsync().ConfigureAwait(false);
}
catch
{
break; // Listener gestoppt
}
_ = Task.Run(() => HandleAsync(ctx));
}
}
private async Task HandleAsync(HttpListenerContext ctx)
{
try
{
var req = ctx.Request;
var resp = ctx.Response;
resp.ContentType = "application/json";
if (req.HttpMethod != "POST" ||
!req.Url.AbsolutePath.StartsWith("/mcp", StringComparison.OrdinalIgnoreCase))
{
resp.StatusCode = 404;
await WriteJsonAsync(resp, new { error = "Nicht gefunden. Nutze POST /mcp" });
return;
}
// API-Key-Check (Header "X-Api-Key" oder "Authorization: Bearer <key>")
if (!string.IsNullOrEmpty(_apiKey))
{
var key = req.Headers["X-Api-Key"];
if (string.IsNullOrEmpty(key))
{
var auth = req.Headers["Authorization"];
if (auth != null && auth.StartsWith("Bearer ", StringComparison.OrdinalIgnoreCase))
key = auth.Substring(7);
}
if (key != _apiKey)
{
resp.StatusCode = 401;
await WriteJsonAsync(resp, new { error = "Ungültiger API-Key" });
return;
}
}
using var reader = new StreamReader(req.InputStream, req.ContentEncoding);
var body = await reader.ReadToEndAsync();
var result = _tools.HandleRequest(body);
if (result == null)
{
// Notification (z. B. notifications/initialized) → 202, kein Body
resp.StatusCode = 202;
resp.Close();
return;
}
await WriteJsonAsync(resp, result);
}
catch (Exception ex)
{
_logger.ErrorException("[eMPCby] Fehler bei MCP-Request", ex);
try
{
ctx.Response.StatusCode = 500;
await WriteJsonAsync(ctx.Response, new { error = ex.Message });
}
catch
{
// Response bereits geschlossen
}
}
}
private async Task WriteJsonAsync(HttpListenerResponse resp, object obj)
{
var json = _json.SerializeToString(obj);
var bytes = Encoding.UTF8.GetBytes(json);
resp.ContentLength64 = bytes.Length;
await resp.OutputStream.WriteAsync(bytes, 0, bytes.Length);
resp.Close();
}
}
}
+276
View File
@@ -0,0 +1,276 @@
using System;
using System.Collections.Generic;
using System.Linq;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Serialization;
namespace eMPCby.Mcp
{
/// <summary>
/// MCP-Tool-Registry: parst JSON-RPC 2.0 Requests (initialize, tools/list, tools/call)
/// und implementiert die Emby-Tools direkt über die injizierten Emby-Dienste.
/// </summary>
public class McpToolRegistry
{
private readonly ILogger _logger;
private readonly IJsonSerializer _json;
public McpToolRegistry(ILogger logger, IJsonSerializer json)
{
_logger = logger;
_json = json;
}
private ISessionManager Sessions => Plugin.Instance?.SessionManager;
private ILibraryManager Library => Plugin.Instance?.LibraryManager;
private IUserManager Users => Plugin.Instance?.UserManager;
// ---------- JSON-RPC 2.0 Handler ----------
public object HandleRequest(string body)
{
Dictionary<string, object> req;
try
{
req = _json.DeserializeFromString(body, typeof(Dictionary<string, object>)) as Dictionary<string, object>;
}
catch (Exception ex)
{
return RpcError(null, -32700, "Parse error: " + ex.Message);
}
if (req == null)
return RpcError(null, -32700, "Parse error: Request ist kein JSON-Objekt");
var id = req.TryGetValue("id", out var idVal) ? idVal : null;
var method = req.TryGetValue("method", out var mVal) ? mVal?.ToString() : null;
var paramsDict = req.TryGetValue("params", out var pVal) ? pVal as Dictionary<string, object> : null;
switch (method)
{
case "initialize":
return RpcResult(id, new
{
protocolVersion = "2024-11-05",
serverInfo = new { name = "eMPCby", version = "1.0.0" },
capabilities = new { tools = new { listChanged = false } }
});
case "notifications/initialized":
return null; // Notification → keine Antwort
case "tools/list":
return RpcResult(id, new { tools = GetToolDefinitions() });
case "tools/call":
return HandleToolCall(id, paramsDict);
default:
return RpcError(id, -32601, "Methode nicht gefunden: " + method);
}
}
private object HandleToolCall(object id, Dictionary<string, object> p)
{
var name = p != null && p.TryGetValue("name", out var nVal) ? nVal?.ToString() : null;
var args = p != null && p.TryGetValue("arguments", out var aVal)
? aVal as Dictionary<string, object>
: new Dictionary<string, object>();
try
{
object result;
switch (name)
{
case "emby_server_info":
result = ToolServerInfo();
break;
case "emby_search":
result = ToolSearch(args);
break;
case "emby_now_playing":
result = ToolNowPlaying();
break;
case "emby_get_item":
result = ToolGetItem(args);
break;
default:
return RpcError(id, -32602, "Unbekanntes Tool: " + name);
}
return RpcResult(id, new
{
content = new[] { new { type = "text", text = _json.SerializeToString(result) } },
isError = false
});
}
catch (Exception ex)
{
_logger.ErrorException("[eMPCby] Tool-Fehler: " + name, ex);
return RpcResult(id, new
{
content = new[] { new { type = "text", text = "Fehler: " + ex.Message } },
isError = true
});
}
}
// ---------- Tool-Definitionen ----------
private List<object> GetToolDefinitions()
{
return new List<object>
{
new
{
name = "emby_server_info",
description = "Liefert Basis-Infos zum Emby-Server (Name, Plugin-Status, Benutzeranzahl).",
inputSchema = new { type = "object", properties = new Dictionary<string, object>() }
},
new
{
name = "emby_search",
description = "Durchsucht die Emby-Mediathek nach Filmen, Serien oder Musik.",
inputSchema = new
{
type = "object",
properties = new
{
query = new { type = "string", description = "Suchbegriff (Titel,_actor, Genre …)" },
type = new { type = "string", description = "Optional: Movie, Series, Music – leer = alle Typen" }
},
required = new[] { "query" }
}
},
new
{
name = "emby_now_playing",
description = "Listet alle aktuell abspielenden Sessions (wer sieht gerade was).",
inputSchema = new { type = "object", properties = new Dictionary<string, object>() }
},
new
{
name = "emby_get_item",
description = "Holt Details zu einem einzelnen Item per Item-ID (GUID).",
inputSchema = new
{
type = "object",
properties = new
{
id = new { type = "string", description = "Item-ID als GUID" }
},
required = new[] { "id" }
}
}
};
}
// ---------- Tool-Implementierungen ----------
private object ToolServerInfo()
{
var cfg = Plugin.Instance?.Configuration;
return new
{
server = "Emby",
plugin = "eMPCby",
mcpEnabled = cfg?.EnableMcpServer ?? false,
mcpPort = cfg?.McpPort ?? 0,
userCount = Users?.GetUserCount(new MediaBrowser.Model.Querying.UserQuery()) ?? 0
};
}
private object ToolSearch(Dictionary<string, object> args)
{
var query = args != null && args.TryGetValue("query", out var qVal) ? qVal?.ToString() : null;
if (string.IsNullOrWhiteSpace(query))
return new { error = "Parameter 'query' fehlt" };
if (Library == null)
return new { error = "LibraryManager noch nicht verfügbar (Server startet?)" };
var type = args != null && args.TryGetValue("type", out var tVal) ? tVal?.ToString() : null;
var results = new List<object>();
var queryResult = Library.GetItemsResult(new MediaBrowser.Controller.Entities.InternalItemsQuery
{
SearchTerm = query,
Limit = 20
});
foreach (var item in queryResult.Items)
{
if (!string.IsNullOrEmpty(type) &&
!string.Equals(item.MediaType, type, StringComparison.OrdinalIgnoreCase))
continue;
results.Add(new
{
id = item.Id.ToString(),
name = item.Name,
type = item.MediaType,
path = item.Path
});
}
return new { query, type, count = results.Count, results };
}
private object ToolNowPlaying()
{
if (Sessions == null)
return new { error = "SessionManager noch nicht verfügbar (Server startet?)" };
var list = Sessions.Sessions
.Where(s => s.NowPlayingItem != null)
.Select(s => new
{
session = s.Id,
user = s.UserName,
client = s.Client,
device = s.DeviceName,
item = s.NowPlayingItem.Name,
itemType = s.NowPlayingItem.Type,
itemId = s.NowPlayingItem.Id,
positionSeconds = s.PlayState != null ? (long)(s.PlayState.PositionTicks / TimeSpan.TicksPerSecond) : 0,
paused = s.PlayState?.IsPaused ?? false
})
.ToList();
return new { count = list.Count, nowPlaying = list };
}
private object ToolGetItem(Dictionary<string, object> args)
{
var id = args != null && args.TryGetValue("id", out var idVal) ? idVal?.ToString() : null;
if (string.IsNullOrWhiteSpace(id))
return new { error = "Parameter 'id' fehlt" };
if (Library == null)
return new { error = "LibraryManager noch nicht verfügbar (Server startet?)" };
if (!Guid.TryParse(id, out var guid))
return new { error = "Ungültige GUID: " + id };
var item = Library.GetItemById(guid);
if (item == null)
return new { found = false, id };
return new
{
found = true,
id = item.Id.ToString(),
name = item.Name,
type = item.MediaType,
path = item.Path
};
}
// ---------- JSON-RPC-Helfer ----------
private object RpcResult(object id, object result) => new { jsonrpc = "2.0", id, result };
private object RpcError(object id, int code, string message) =>
new { jsonrpc = "2.0", id, error = new { code, message } };
}
}
+63
View File
@@ -0,0 +1,63 @@
using System;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Serialization;
using eMPCby.Mcp;
namespace eMPCby
{
public class Plugin : BasePlugin<PluginConfiguration>, IServerEntryPoint
{
private readonly ILogger _logger;
private readonly IJsonSerializer _jsonSerializer;
private McpHttpServer _mcpServer;
public static Plugin Instance { get; private set; }
// DI-Brücke: werden von ServiceRegistrar (zweites IServerEntryPoint) gesetzt
public ISessionManager SessionManager { get; set; }
public ILibraryManager LibraryManager { get; set; }
public IUserManager UserManager { get; set; }
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer,
ILogManager logManager, IJsonSerializer jsonSerializer)
: base(applicationPaths, xmlSerializer)
{
Instance = this;
_logger = logManager.GetLogger(GetType().Name);
_jsonSerializer = jsonSerializer;
}
public override string Name => "eMPCby";
public override string Description =>
"MCP-Server (Model Context Protocol) für Emby – Emby-Funktionen als MCP-Tools für AI-Agenten.";
// Feste Plugin-GUID – NIE ändern (Config-Zuordnung in Emby)
public override Guid Id => new Guid("095db6d6-5ecc-4ec3-85ea-7756dd6d958c");
public void Run()
{
var cfg = Configuration;
if (!cfg.EnableMcpServer)
{
_logger.Info("[eMPCby] MCP-Server ist deaktiviert.");
return;
}
_mcpServer = new McpHttpServer(_logger, _jsonSerializer, cfg.McpPort, cfg.ListenAddress, cfg.ApiKey);
var status = _mcpServer.Start();
_logger.Info("[eMPCby] MCP-Server Status: {0}", status);
}
public void Dispose()
{
_mcpServer?.Stop();
_mcpServer = null;
}
}
}
+12
View File
@@ -0,0 +1,12 @@
using MediaBrowser.Model.Plugins;
namespace eMPCby
{
public class PluginConfiguration : BasePluginConfiguration
{
public bool EnableMcpServer { get; set; } = true;
public int McpPort { get; set; } = 8097;
public string ListenAddress { get; set; } = "0.0.0.0";
public string ApiKey { get; set; } = string.Empty; // leer = offen (nur LAN)
}
}
+27
View File
@@ -0,0 +1,27 @@
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Controller.Session;
namespace eMPCby
{
/// <summary>
/// Zweites IServerEntryPoint: Emby injiziert die Dienste per Konstruktor und
/// legt sie auf Plugin.Instance ab, damit die McpToolRegistry darauf zugreifen kann.
/// </summary>
public class ServiceRegistrar : IServerEntryPoint
{
public ServiceRegistrar(ISessionManager sessionManager, ILibraryManager libraryManager, IUserManager userManager)
{
if (Plugin.Instance != null)
{
Plugin.Instance.SessionManager = sessionManager;
Plugin.Instance.LibraryManager = libraryManager;
Plugin.Instance.UserManager = userManager;
}
}
public void Run() { }
public void Dispose() { }
}
}
@@ -0,0 +1,75 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"eMPCby/1.0.0": {
"dependencies": {
"MediaBrowser.Server.Core": "4.9.1.90"
},
"runtime": {
"eMPCby.dll": {}
}
},
"MediaBrowser.Common/4.9.1.90": {
"runtime": {
"lib/netstandard2.0/Emby.Media.Model.dll": {
"assemblyVersion": "4.9.1.90",
"fileVersion": "4.9.1.90"
},
"lib/netstandard2.0/Emby.Web.GenericEdit.dll": {
"assemblyVersion": "4.9.1.90",
"fileVersion": "4.9.1.90"
},
"lib/netstandard2.0/MediaBrowser.Common.dll": {
"assemblyVersion": "4.9.1.90",
"fileVersion": "4.9.1.90"
},
"lib/netstandard2.0/MediaBrowser.Model.dll": {
"assemblyVersion": "4.9.1.90",
"fileVersion": "4.9.1.90"
}
}
},
"MediaBrowser.Server.Core/4.9.1.90": {
"dependencies": {
"MediaBrowser.Common": "4.9.1.90"
},
"runtime": {
"lib/netstandard2.0/Emby.Naming.dll": {
"assemblyVersion": "4.9.1.90",
"fileVersion": "4.9.1.90"
},
"lib/netstandard2.0/MediaBrowser.Controller.dll": {
"assemblyVersion": "4.9.1.90",
"fileVersion": "4.9.1.90"
}
}
}
}
},
"libraries": {
"eMPCby/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"MediaBrowser.Common/4.9.1.90": {
"type": "package",
"serviceable": true,
"sha512": "sha512-QzXFYh7TPskAtctdCguJxep9aMSfIrsT4F+xUrdAVh4pj2KAD3DzwkY1DDPIUUD6M+Lgwag/NesBgd1pgLffbQ==",
"path": "mediabrowser.common/4.9.1.90",
"hashPath": "mediabrowser.common.4.9.1.90.nupkg.sha512"
},
"MediaBrowser.Server.Core/4.9.1.90": {
"type": "package",
"serviceable": true,
"sha512": "sha512-lyThQ7kXhzLNisMfqzSoxrhG/7gnK9/lJyNfV/TCo10c30oKiTR2n5nG+ognv6hCNz9jmcPpAt3561Oj7EIVwQ==",
"path": "mediabrowser.server.core/4.9.1.90",
"hashPath": "mediabrowser.server.core.4.9.1.90.nupkg.sha512"
}
}
}
Binary file not shown.
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>eMPCby</AssemblyName>
<RootNamespace>eMPCby</RootNamespace>
<AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<NoWarn>CS1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MediaBrowser.Server.Core" Version="4.9.1.90" />
</ItemGroup>
</Project>
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("eMPCby")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6fe05698cf0759622e8c839d49166c32c6e9bd5f")]
[assembly: System.Reflection.AssemblyProductAttribute("eMPCby")]
[assembly: System.Reflection.AssemblyTitleAttribute("eMPCby")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
7c309f225f033c0437c1b8d5e42dadb179f8bdd8070b4eb188dd1a2060a70642
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = eMPCby
build_property.ProjectDir = /opt/data/work/eMPCby/src/eMPCby/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Binary file not shown.
@@ -0,0 +1 @@
63cb8ad25597b628ec5ba659fb03625604a1b8bb172dc17e62710479ad0d52cc
@@ -0,0 +1,12 @@
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/eMPCby.csproj.AssemblyReference.cache
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/eMPCby.GeneratedMSBuildEditorConfig.editorconfig
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/eMPCby.AssemblyInfoInputs.cache
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/eMPCby.AssemblyInfo.cs
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/eMPCby.csproj.CoreCompileInputs.cache
/opt/data/work/eMPCby/src/eMPCby/bin/Release/net6.0/eMPCby.deps.json
/opt/data/work/eMPCby/src/eMPCby/bin/Release/net6.0/eMPCby.dll
/opt/data/work/eMPCby/src/eMPCby/bin/Release/net6.0/eMPCby.pdb
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/eMPCby.dll
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/refint/eMPCby.dll
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/eMPCby.pdb
/opt/data/work/eMPCby/src/eMPCby/obj/Release/net6.0/ref/eMPCby.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,82 @@
{
"format": 1,
"restore": {
"/opt/data/work/eMPCby/src/eMPCby/eMPCby.csproj": {}
},
"projects": {
"/opt/data/work/eMPCby/src/eMPCby/eMPCby.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/opt/data/work/eMPCby/src/eMPCby/eMPCby.csproj",
"projectName": "eMPCby",
"projectPath": "/opt/data/work/eMPCby/src/eMPCby/eMPCby.csproj",
"packagesPath": "/opt/data/home/.nuget/packages/",
"outputPath": "/opt/data/work/eMPCby/src/eMPCby/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/opt/data/home/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"MediaBrowser.Server.Core": {
"target": "Package",
"version": "[4.9.1.90, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[6.0.36, 6.0.36]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[6.0.36, 6.0.36]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/tmp/dotnet/sdk/8.0.424/RuntimeIdentifierGraph.json"
}
}
}
}
}
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/opt/data/home/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/opt/data/home/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/opt/data/home/.nuget/packages/" />
</ItemGroup>
</Project>
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
+184
View File
@@ -0,0 +1,184 @@
{
"version": 3,
"targets": {
"net6.0": {
"MediaBrowser.Common/4.9.1.90": {
"type": "package",
"compile": {
"lib/netstandard2.0/Emby.Media.Model.dll": {
"related": ".pdb;.xml"
},
"lib/netstandard2.0/Emby.Web.GenericEdit.dll": {
"related": ".pdb;.xml"
},
"lib/netstandard2.0/MediaBrowser.Common.dll": {
"related": ".pdb;.xml"
},
"lib/netstandard2.0/MediaBrowser.Model.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/netstandard2.0/Emby.Media.Model.dll": {
"related": ".pdb;.xml"
},
"lib/netstandard2.0/Emby.Web.GenericEdit.dll": {
"related": ".pdb;.xml"
},
"lib/netstandard2.0/MediaBrowser.Common.dll": {
"related": ".pdb;.xml"
},
"lib/netstandard2.0/MediaBrowser.Model.dll": {
"related": ".pdb;.xml"
}
}
},
"MediaBrowser.Server.Core/4.9.1.90": {
"type": "package",
"dependencies": {
"MediaBrowser.Common": "4.9.1.90"
},
"compile": {
"lib/netstandard2.0/Emby.Naming.dll": {
"related": ".pdb;.xml"
},
"lib/netstandard2.0/MediaBrowser.Controller.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/netstandard2.0/Emby.Naming.dll": {
"related": ".pdb;.xml"
},
"lib/netstandard2.0/MediaBrowser.Controller.dll": {
"related": ".pdb;.xml"
}
}
}
}
},
"libraries": {
"MediaBrowser.Common/4.9.1.90": {
"sha512": "QzXFYh7TPskAtctdCguJxep9aMSfIrsT4F+xUrdAVh4pj2KAD3DzwkY1DDPIUUD6M+Lgwag/NesBgd1pgLffbQ==",
"type": "package",
"path": "mediabrowser.common/4.9.1.90",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netstandard2.0/Emby.Media.Model.dll",
"lib/netstandard2.0/Emby.Media.Model.pdb",
"lib/netstandard2.0/Emby.Media.Model.xml",
"lib/netstandard2.0/Emby.Web.GenericEdit.dll",
"lib/netstandard2.0/Emby.Web.GenericEdit.pdb",
"lib/netstandard2.0/Emby.Web.GenericEdit.xml",
"lib/netstandard2.0/MediaBrowser.Common.dll",
"lib/netstandard2.0/MediaBrowser.Common.pdb",
"lib/netstandard2.0/MediaBrowser.Common.xml",
"lib/netstandard2.0/MediaBrowser.Model.dll",
"lib/netstandard2.0/MediaBrowser.Model.pdb",
"lib/netstandard2.0/MediaBrowser.Model.xml",
"mediabrowser.common.4.9.1.90.nupkg.sha512",
"mediabrowser.common.nuspec"
]
},
"MediaBrowser.Server.Core/4.9.1.90": {
"sha512": "lyThQ7kXhzLNisMfqzSoxrhG/7gnK9/lJyNfV/TCo10c30oKiTR2n5nG+ognv6hCNz9jmcPpAt3561Oj7EIVwQ==",
"type": "package",
"path": "mediabrowser.server.core/4.9.1.90",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netstandard2.0/Emby.Naming.dll",
"lib/netstandard2.0/Emby.Naming.pdb",
"lib/netstandard2.0/Emby.Naming.xml",
"lib/netstandard2.0/MediaBrowser.Controller.dll",
"lib/netstandard2.0/MediaBrowser.Controller.pdb",
"lib/netstandard2.0/MediaBrowser.Controller.xml",
"mediabrowser.server.core.4.9.1.90.nupkg.sha512",
"mediabrowser.server.core.nuspec"
]
}
},
"projectFileDependencyGroups": {
"net6.0": [
"MediaBrowser.Server.Core >= 4.9.1.90"
]
},
"packageFolders": {
"/opt/data/home/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/opt/data/work/eMPCby/src/eMPCby/eMPCby.csproj",
"projectName": "eMPCby",
"projectPath": "/opt/data/work/eMPCby/src/eMPCby/eMPCby.csproj",
"packagesPath": "/opt/data/home/.nuget/packages/",
"outputPath": "/opt/data/work/eMPCby/src/eMPCby/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/opt/data/home/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"MediaBrowser.Server.Core": {
"target": "Package",
"version": "[4.9.1.90, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[6.0.36, 6.0.36]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[6.0.36, 6.0.36]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/tmp/dotnet/sdk/8.0.424/RuntimeIdentifierGraph.json"
}
}
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"version": 2,
"dgSpecHash": "ZXxFe7uDLlk=",
"success": true,
"projectFilePath": "/opt/data/work/eMPCby/src/eMPCby/eMPCby.csproj",
"expectedPackageFiles": [
"/opt/data/home/.nuget/packages/mediabrowser.common/4.9.1.90/mediabrowser.common.4.9.1.90.nupkg.sha512",
"/opt/data/home/.nuget/packages/mediabrowser.server.core/4.9.1.90/mediabrowser.server.core.4.9.1.90.nupkg.sha512",
"/opt/data/home/.nuget/packages/microsoft.netcore.app.ref/6.0.36/microsoft.netcore.app.ref.6.0.36.nupkg.sha512",
"/opt/data/home/.nuget/packages/microsoft.aspnetcore.app.ref/6.0.36/microsoft.aspnetcore.app.ref.6.0.36.nupkg.sha512"
],
"logs": []
}