Skip to content

Commit b0585f4

Browse files
committed
fix: upgrade @modelcontextprotocol/sdk to 1.28.0
Upgrades MCP SDK to support protocol version 2025-11-25. Ports upstream fix from Roo-Code PR #12243.
1 parent 7d100dc commit b0585f4

3 files changed

Lines changed: 145 additions & 94 deletions

File tree

packages/types/src/mcp.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,22 @@ export type McpToolCallResponse = {
105105
| {
106106
type: "text"
107107
text: string
108+
annotations?: Record<string, unknown>
109+
_meta?: Record<string, unknown>
108110
}
109111
| {
110112
type: "image"
111113
data: string
112114
mimeType: string
115+
annotations?: Record<string, unknown>
116+
_meta?: Record<string, unknown>
113117
}
114118
| {
115119
type: "audio"
116120
data: string
117121
mimeType: string
122+
annotations?: Record<string, unknown>
123+
_meta?: Record<string, unknown>
118124
}
119125
| {
120126
type: "resource"
@@ -124,6 +130,17 @@ export type McpToolCallResponse = {
124130
text?: string
125131
blob?: string
126132
}
133+
annotations?: Record<string, unknown>
134+
_meta?: Record<string, unknown>
135+
}
136+
| {
137+
type: "resource_link"
138+
uri: string
139+
name: string
140+
description?: string
141+
mimeType?: string
142+
annotations?: Record<string, unknown>
143+
_meta?: Record<string, unknown>
127144
}
128145
>
129146
isError?: boolean

0 commit comments

Comments
 (0)