Skip to content

Commit f973b54

Browse files
mcp client: fix tool name generation (#228)
* mcp client: closeConnection(id) and closeAllConnections() * mcp client: fix tool name generation * Delete cyan-wolves-grab.md
1 parent 81ebc18 commit f973b54

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/ready-dolls-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"agents": patch
3+
---
4+
5+
mcp client: fix tool name generation

packages/agents/src/mcp/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class MCPClientManager {
184184
return Object.fromEntries(
185185
getNamespacedData(this.mcpConnections, "tools").map((tool) => {
186186
return [
187-
`${tool.serverId}.${tool.name}`,
187+
`${tool.serverId}_${tool.name}`,
188188
{
189189
parameters: jsonSchema(tool.inputSchema),
190190
description: tool.description,

0 commit comments

Comments
 (0)