Skip to content

Commit c1c02d2

Browse files
authored
Merge pull request #2817 from dennismeister93/chore/update-mcp-sdk-1.13.3
chore(deps): upgrade @modelcontextprotocol/sdk from 1.12.0 to 1.13.3
2 parents 0237b51 + 6d73abb commit c1c02d2

File tree

5 files changed

+71
-4
lines changed

5 files changed

+71
-4
lines changed

.changeset/famous-beers-breathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Updated MCP SDK to 1.13.3

pnpm-lock.yaml

Lines changed: 37 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/tools/useMcpToolTool.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,18 @@ async function processToolContent(task: Task, toolResult: McpToolCallResponse):
212212
const { blob: _, ...rest } = item.resource
213213
return JSON.stringify(rest, null, 2)
214214
}
215+
// kilocode_change start
216+
if (item.type === "resource_link") {
217+
const { uri, name, description, mimeType } = item
218+
return `Resource Link: ${name || uri}${description ? ` - ${description}` : ""}${mimeType ? ` (${mimeType})` : ""}`
219+
}
220+
if (item.type === "image") {
221+
return `[Image: ${item.mimeType}]`
222+
}
223+
if (item.type === "audio") {
224+
return `[Audio: ${item.mimeType}]`
225+
}
226+
// kilocode_change end
215227
return ""
216228
})
217229
.filter(Boolean)

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
"@google/genai": "^1.0.0",
637637
"@lmstudio/sdk": "^1.1.1",
638638
"@mistralai/mistralai": "^1.9.18",
639-
"@modelcontextprotocol/sdk": "1.12.0",
639+
"@modelcontextprotocol/sdk": "1.13.3",
640640
"@qdrant/js-client-rest": "^1.14.0",
641641
"@roo-code/cloud": "workspace:^",
642642
"@roo-code/ipc": "workspace:^",

src/shared/mcp.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,19 @@ export type McpToolCallResponse = {
5858
| {
5959
type: "text"
6060
text: string
61+
_meta?: Record<string, any> // kilocode_change
6162
}
6263
| {
6364
type: "image"
6465
data: string
6566
mimeType: string
67+
_meta?: Record<string, any> // kilocode_change
6668
}
6769
| {
6870
type: "audio"
6971
data: string
7072
mimeType: string
73+
_meta?: Record<string, any> // kilocode_change
7174
}
7275
| {
7376
type: "resource"
@@ -76,8 +79,21 @@ export type McpToolCallResponse = {
7679
mimeType?: string
7780
text?: string
7881
blob?: string
82+
_meta?: Record<string, any> // kilocode_change
7983
}
84+
_meta?: Record<string, any> // kilocode_change
8085
}
86+
// kilocode_change start
87+
| {
88+
type: "resource_link"
89+
uri: string
90+
name?: string
91+
description?: string
92+
mimeType?: string
93+
_meta?: Record<string, any>
94+
}
95+
// kilocode_change end
8196
>
97+
structuredContent?: Record<string, any> // kilocode_change
8298
isError?: boolean
8399
}

0 commit comments

Comments
 (0)