Skip to content

Commit e765f74

Browse files
fix(deps): update dependency @modelcontextprotocol/sdk to v1.26.0 [security] (#351)
* fix(deps): update dependency @modelcontextprotocol/sdk to v1.26.0 [security] * fix(mcp): adding passthrough types --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Elliott de Launay <edelauna@gmail.com> Co-authored-by: edelauna <54631123+edelauna@users.noreply.github.com>
1 parent 45e6284 commit e765f74

4 files changed

Lines changed: 153 additions & 54 deletions

File tree

packages/types/src/mcp.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -99,32 +99,32 @@ export type McpResourceResponse = {
9999
}>
100100
}
101101

102+
export type McpResourceLinkAnnotations = {
103+
audience?: ("user" | "assistant")[]
104+
priority?: number
105+
lastModified?: string
106+
}
107+
108+
// Defined in MCP spec 2025-06-18: https://modelcontextprotocol.io/specification/2025-06-18/server/tools
109+
export type McpResourceLink = {
110+
type: "resource_link"
111+
uri: string
112+
name: string
113+
description?: string
114+
mimeType?: string
115+
title?: string
116+
size?: number
117+
annotations?: McpResourceLinkAnnotations
118+
}
119+
102120
export type McpToolCallResponse = {
103121
_meta?: Record<string, any> // eslint-disable-line @typescript-eslint/no-explicit-any
104122
content: Array<
105-
| {
106-
type: "text"
107-
text: string
108-
}
109-
| {
110-
type: "image"
111-
data: string
112-
mimeType: string
113-
}
114-
| {
115-
type: "audio"
116-
data: string
117-
mimeType: string
118-
}
119-
| {
120-
type: "resource"
121-
resource: {
122-
uri: string
123-
mimeType?: string
124-
text?: string
125-
blob?: string
126-
}
127-
}
123+
| { type: "text"; text: string }
124+
| { type: "image"; data: string; mimeType: string }
125+
| { type: "audio"; data: string; mimeType: string }
126+
| { type: "resource"; resource: { uri: string; mimeType?: string; text?: string; blob?: string } }
127+
| McpResourceLink
128128
>
129129
isError?: boolean
130130
}

0 commit comments

Comments
 (0)