mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 12:51:26 +08:00
fix: call tool bug (#8526)
This commit is contained in:
parent
84157f7bd8
commit
ff649b9d49
@ -621,6 +621,9 @@ class McpService {
|
||||
} catch (e) {
|
||||
logger.error('args parse error', args)
|
||||
}
|
||||
if (args === '') {
|
||||
args = {}
|
||||
}
|
||||
}
|
||||
const client = await this.initClient(server)
|
||||
const result = await client.callTool({ name, arguments: args }, undefined, {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user