@aiwerk/mcp-bridge 2.8.29 → 2.8.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/standalone-server.js +10 -13
- package/package.json +1 -1
|
@@ -346,19 +346,16 @@ export class StandaloneServer {
|
|
|
346
346
|
if (serverName) {
|
|
347
347
|
this.logger.info(`[mcp-bridge] Lazy discovery for server: ${serverName} (triggered by ${toolName})`);
|
|
348
348
|
await this.discoverSingleServer(serverName);
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
}
|
|
349
|
+
// After discovery, the placeholder tool no longer exists - return discovered tools
|
|
350
|
+
const serverTools = this.directTools.filter(t => t.serverName === serverName);
|
|
351
|
+
const discovered = serverTools.map(t => `${t.registeredName}: ${t.description}`);
|
|
352
|
+
return {
|
|
353
|
+
jsonrpc: "2.0",
|
|
354
|
+
id,
|
|
355
|
+
result: {
|
|
356
|
+
content: [{ type: "text", text: `Discovered ${serverTools.length} tools from ${serverName}. Available tools:\n\n${discovered.join("\n")}\n\nCall any of these tools directly by name.` }]
|
|
357
|
+
}
|
|
358
|
+
};
|
|
362
359
|
}
|
|
363
360
|
}
|
|
364
361
|
if (!entry) {
|