Skip to content

Commit 9f14269

Browse files
committed
add annotations in all places per spec
1 parent 5c913f3 commit 9f14269

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/types.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,12 @@ export const ResourceTemplateSchema = z.object({
868868
*/
869869
mimeType: z.optional(z.string()),
870870

871+
872+
/**
873+
* Optional annotations for the client.
874+
*/
875+
annotations: AnnotationsSchema.optional(),
876+
871877
/**
872878
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
873879
* for notes on _meta usage.
@@ -1060,6 +1066,11 @@ export const TextContentSchema = z.object({
10601066
*/
10611067
text: z.string(),
10621068

1069+
/**
1070+
* Optional annotations for the client.
1071+
*/
1072+
annotations: AnnotationsSchema.optional(),
1073+
10631074
/**
10641075
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
10651076
* for notes on _meta usage.
@@ -1081,6 +1092,11 @@ export const ImageContentSchema = z.object({
10811092
*/
10821093
mimeType: z.string(),
10831094

1095+
/**
1096+
* Optional annotations for the client.
1097+
*/
1098+
annotations: AnnotationsSchema.optional(),
1099+
10841100
/**
10851101
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
10861102
* for notes on _meta usage.
@@ -1102,6 +1118,11 @@ export const AudioContentSchema = z.object({
11021118
*/
11031119
mimeType: z.string(),
11041120

1121+
/**
1122+
* Optional annotations for the client.
1123+
*/
1124+
annotations: AnnotationsSchema.optional(),
1125+
11051126
/**
11061127
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
11071128
* for notes on _meta usage.
@@ -1145,6 +1166,10 @@ export const ToolUseContentSchema = z
11451166
export const EmbeddedResourceSchema = z.object({
11461167
type: z.literal('resource'),
11471168
resource: z.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
1169+
/**
1170+
* Optional annotations for the client.
1171+
*/
1172+
annotations: AnnotationsSchema.optional(),
11481173
/**
11491174
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
11501175
* for notes on _meta usage.

0 commit comments

Comments
 (0)