mcp server tool alias (#4621)
This commit is contained in:
@@ -184,7 +184,7 @@ async function handler(
|
||||
const app = appList.find((app) => {
|
||||
const mcpApp = mcp.apps.find((mcpApp) => String(mcpApp.appId) === String(app._id))!;
|
||||
|
||||
return toolName === mcpApp.toolName;
|
||||
return toolName === mcpApp.toolAlias || toolName === mcpApp.toolName;
|
||||
});
|
||||
|
||||
if (!app) {
|
||||
|
||||
@@ -138,7 +138,7 @@ async function handler(
|
||||
);
|
||||
|
||||
return {
|
||||
name: mcpApp.toolName,
|
||||
name: mcpApp.toolAlias || mcpApp.toolName,
|
||||
description: mcpApp.description,
|
||||
inputSchema: isPlugin
|
||||
? pluginNodes2InputSchema(version.nodes)
|
||||
|
||||
Reference in New Issue
Block a user