Skip to content

Commit 7ec5eee

Browse files
committed
fix(common): type MCP tool content mapping
1 parent d5d00f0 commit 7ec5eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/mcp/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export async function callMCPTool(
126126
}
127127
const content = ((await client.callTool(...args)) as CallToolResult).content
128128

129-
return content.map((c) => {
129+
return content.map((c: (typeof content)[number]) => {
130130
if (c.type === 'text') {
131131
return {
132132
type: 'json',

0 commit comments

Comments
 (0)