We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53c71ff + af7450c commit 7006c1fCopy full SHA for 7006c1f
src/main/mcp.ts
@@ -404,7 +404,7 @@ export default class {
404
throw new Error(`Tool ${name} not found`)
405
}
406
407
- const tool = name.replace(`___${client.server.uuid}`, '')
+ const tool = name.replace(`___${client.server.uuid.slice(-4)}`, '')
408
console.log('Calling MCP tool', tool, args)
409
410
return await client.client.callTool({
@@ -415,8 +415,9 @@ export default class {
415
416
417
protected uniqueToolName(server: McpServer, name: string): string {
418
- return `${name}___${server.uuid}`
419
- }
+ const suffix = server.uuid.slice(-4) // use only last 4 characters of UUID to generate uniqueToolName
+ return `${name}___${suffix}`
420
+}
421
422
protected mcpToOpenAI = (server: McpServer, tool: any): LlmTool => {
423
return {
0 commit comments