mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 06:19:05 +08:00
feat: add type property to server tools in MCPService
- Enhanced the server tool structure by adding a `type` property set to 'mcp' for better identification and handling of tools within the MCPService.
This commit is contained in:
parent
0456094512
commit
e7b4f1f934
@ -425,7 +425,8 @@ class McpService {
|
|||||||
...tool,
|
...tool,
|
||||||
id: buildFunctionCallToolName(server.name, tool.name),
|
id: buildFunctionCallToolName(server.name, tool.name),
|
||||||
serverId: server.id,
|
serverId: server.id,
|
||||||
serverName: server.name
|
serverName: server.name,
|
||||||
|
type: 'mcp'
|
||||||
}
|
}
|
||||||
serverTools.push(serverTool)
|
serverTools.push(serverTool)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user