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