You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// are re-exported from generated with Base64 validation.
685
707
686
-
/**
687
-
* A known resource that the server is capable of reading.
688
-
*/
689
-
exportconstResourceSchema=z.object({
690
-
...BaseMetadataSchema.shape,
691
-
...IconsSchema.shape,
692
-
/**
693
-
* The URI of this resource.
694
-
*/
695
-
uri: z.string(),
696
-
697
-
/**
698
-
* A description of what this resource represents.
699
-
*
700
-
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
701
-
*/
702
-
description: z.optional(z.string()),
703
-
704
-
/**
705
-
* The MIME type of this resource, if known.
706
-
*/
707
-
mimeType: z.optional(z.string()),
708
-
709
-
/**
710
-
* Optional annotations for the client.
711
-
*/
712
-
annotations: AnnotationsSchema.optional(),
713
-
714
-
/**
715
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
716
-
* for notes on _meta usage.
717
-
*/
718
-
_meta: z.optional(z.looseObject({}))
719
-
});
720
-
721
-
/**
722
-
* A template description for resources available on the server.
723
-
*/
724
-
exportconstResourceTemplateSchema=z.object({
725
-
...BaseMetadataSchema.shape,
726
-
...IconsSchema.shape,
727
-
/**
728
-
* A URI template (according to RFC 6570) that can be used to construct resource URIs.
729
-
*/
730
-
uriTemplate: z.string(),
731
-
732
-
/**
733
-
* A description of what this template is for.
734
-
*
735
-
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
736
-
*/
737
-
description: z.optional(z.string()),
738
-
739
-
/**
740
-
* The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
741
-
*/
742
-
mimeType: z.optional(z.string()),
743
-
744
-
/**
745
-
* Optional annotations for the client.
746
-
*/
747
-
annotations: AnnotationsSchema.optional(),
748
-
749
-
/**
750
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
751
-
* for notes on _meta usage.
752
-
*/
753
-
_meta: z.optional(z.looseObject({}))
754
-
});
708
+
// Note: ResourceSchema, ResourceTemplateSchema are re-exported from generated.
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
828
-
* for notes on _meta usage.
829
-
*/
830
-
_meta: z.optional(z.looseObject({}))
831
-
});
832
-
833
-
// Note: ListPromptsRequestSchema, GetPromptRequestSchema are re-exported from generated.
// Note: TextContentSchema, ImageContentSchema, AudioContentSchema are re-exported
852
768
// from generated with Base64 validation for data fields.
853
769
854
-
/**
855
-
* A tool call request from an assistant (LLM).
856
-
* Represents the assistant's request to use a tool.
857
-
*/
858
-
exportconstToolUseContentSchema=z.object({
859
-
type: z.literal('tool_use'),
860
-
/**
861
-
* The name of the tool to invoke.
862
-
* Must match a tool name from the request's tools array.
863
-
*/
864
-
name: z.string(),
865
-
/**
866
-
* Unique identifier for this tool call.
867
-
* Used to correlate with ToolResultContent in subsequent messages.
868
-
*/
869
-
id: z.string(),
870
-
/**
871
-
* Arguments to pass to the tool.
872
-
* Must conform to the tool's inputSchema.
873
-
*/
874
-
input: z.record(z.string(),z.unknown()),
875
-
/**
876
-
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
0 commit comments