fix: call tool bug (#8526)

This commit is contained in:
SuYao 2025-07-25 19:33:55 +08:00 committed by GitHub
parent 84157f7bd8
commit ff649b9d49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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, {