diff --git a/src/eMCPy/Configuration/configPage.html b/src/eMCPy/Configuration/configPage.html index f767b9e..bb309a8 100644 --- a/src/eMCPy/Configuration/configPage.html +++ b/src/eMCPy/Configuration/configPage.html @@ -9,7 +9,7 @@
MCP-Server (Model Context Protocol) für AI-Agenten. Läuft eingebettet in Emby auf einem eigenen Port.
http://<ServerHost>:<Port>/mcp.
+ ' + urls[i] + '';
+ const pv = view.querySelector('#pluginVersion');
+ if (pv) pv.textContent = 'v' + ver;
+ }).catch(err => {
+ tryNext(i + 1);
});
+ };
+ tryNext(0);
}
onResume(options) {
diff --git a/src/eMCPy/Mcp/McpToolRegistry.cs b/src/eMCPy/Mcp/McpToolRegistry.cs
index 6e6079d..428e31a 100644
--- a/src/eMCPy/Mcp/McpToolRegistry.cs
+++ b/src/eMCPy/Mcp/McpToolRegistry.cs
@@ -1,4 +1,5 @@
using System;
+using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
@@ -60,7 +61,7 @@ namespace eMCPy.Mcp
return RpcResult(id, new
{
protocolVersion = "2024-11-05",
- serverInfo = new { name = "eMCPy", version = "1.0.0" },
+ serverInfo = new { name = "eMCPy", version = GetVersion() },
capabilities = new { tools = new { listChanged = false } }
});
@@ -303,5 +304,14 @@ namespace eMCPy.Mcp
private object RpcError(JsonElement id, int code, string message) =>
new { jsonrpc = "2.0", id = Plain(id), error = new { code, message } };
+
+ ///