mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: add type casting for CallToolResultSchema compatibility with SDK v1.20.0
The SDK v1.20.0 has a different response type structure. Added type casting to maintain backward compatibility with the existing McpToolCallResponse type.
This commit is contained in:
parent
d3f9de988d
commit
0b9fc4c602
1 changed files with 4 additions and 1 deletions
|
|
@ -1601,7 +1601,7 @@ export class McpHub {
|
|||
timeout = 60 * 1000
|
||||
}
|
||||
|
||||
return await connection.client.request(
|
||||
const result = await connection.client.request(
|
||||
{
|
||||
method: "tools/call",
|
||||
params: {
|
||||
|
|
@ -1614,6 +1614,9 @@ export class McpHub {
|
|||
timeout,
|
||||
},
|
||||
)
|
||||
|
||||
// Cast the result to our expected type structure for backward compatibility
|
||||
return result as McpToolCallResponse
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue