Skip to content

Commit bafd534

Browse files
fix(mcp): add resource_link to McpToolCallResponse type union
@modelcontextprotocol/sdk v1.26.0 introduced a new 'resource_link' content type in tool call responses. Without this type in the McpToolCallResponse union, TypeScript compilation fails at McpHub.ts:2208 and :2253 with TS2322. The new type includes uri, name, optional description, and optional mimeType, matching the SDK's ResourceLink definition. Fixes compile failure in PR #351
1 parent 82bd057 commit bafd534

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/types/src/mcp.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ export type McpToolCallResponse = {
125125
blob?: string
126126
}
127127
}
128+
| {
129+
type: "resource_link"
130+
uri: string
131+
name: string
132+
description?: string
133+
mimeType?: string
134+
}
128135
>
129136
isError?: boolean
130137
}

0 commit comments

Comments
 (0)