Commit bafd534
committed
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 #3511 parent 82bd057 commit bafd534
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
| |||
0 commit comments