feat: support server-specified endpoint (#58)

This commit is contained in:
samanhappy
2025-05-09 21:25:44 +08:00
committed by GitHub
parent 74d1ca6a87
commit 0f5dfbe419
3 changed files with 33 additions and 1 deletions

View File

@@ -347,6 +347,7 @@ export const createMcpServer = (name: string, version: string): Server => {
if (serverInfo.enabled === false) return false;
if (!group) return true;
const serversInGroup = getServersInGroup(group);
if (!serversInGroup || serversInGroup.length === 0) return serverInfo.name === group;
return serversInGroup.includes(serverInfo.name);
});