Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions packages/types/src/mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,22 @@ export type McpToolCallResponse = {
| {
type: "text"
text: string
annotations?: Record<string, unknown>
_meta?: Record<string, unknown>
}
| {
type: "image"
data: string
mimeType: string
annotations?: Record<string, unknown>
_meta?: Record<string, unknown>
}
| {
type: "audio"
data: string
mimeType: string
annotations?: Record<string, unknown>
_meta?: Record<string, unknown>
}
| {
type: "resource"
Expand All @@ -124,6 +130,17 @@ export type McpToolCallResponse = {
text?: string
blob?: string
}
annotations?: Record<string, unknown>
_meta?: Record<string, unknown>
}
| {
type: "resource_link"
uri: string
name: string
description?: string
mimeType?: string
annotations?: Record<string, unknown>
_meta?: Record<string, unknown>
}
>
isError?: boolean
Expand Down
Loading
Loading