Skip to content

Commit eae28f1

Browse files
arafatkatzeCline Evaluation
andauthored
Fixing Typescript type errors in MCP hub (RooCodeInc#3700)
* Fixing Typescript type errors in MCP hub * Fixing Typescript type errors in MCP hub --------- Co-authored-by: Cline Evaluation <[email protected]>
1 parent 47eacdc commit eae28f1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.changeset/cuddly-worms-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
Fix Typescript type errors in MCP hub

src/services/mcp/McpHub.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ export class McpHub {
784784
console.error(`Failed to parse timeout configuration for server ${serverName}: ${error}`)
785785
}
786786

787-
return await connection.client.request(
787+
const result = await connection.client.request(
788788
{
789789
method: "tools/call",
790790
params: {
@@ -797,6 +797,11 @@ export class McpHub {
797797
timeout,
798798
},
799799
)
800+
801+
return {
802+
...result,
803+
content: result.content ?? [],
804+
}
800805
}
801806

802807
/**

0 commit comments

Comments
 (0)