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:
suyao 2025-07-15 23:50:53 +08:00
parent 0456094512
commit e7b4f1f934
No known key found for this signature in database

View File

@ -425,7 +425,8 @@ class McpService {
...tool,
id: buildFunctionCallToolName(server.name, tool.name),
serverId: server.id,
serverName: server.name
serverName: server.name,
type: 'mcp'
}
serverTools.push(serverTool)
})