Skip to content
Merged
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions docs/seps/1577--sampling-with-tools.mdx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions docs/seps/2322-MRTR.mdx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions docs/seps/2663-tasks-extension.mdx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"eslint": "^10.6.0",
"eslint-config-prettier": "^10.1.8",
"glob": "^13.0.6",
"prettier": "^3.8.4",
"prettier": "^3.9.3",
"remark-mdx": "^3.1.1",
"remark-parse": "^11.0.0",
"tsx": "^4.22.4",
Expand Down
9 changes: 2 additions & 7 deletions schema/2024-11-05/schema.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/* JSON-RPC types */
export type JSONRPCMessage =
| JSONRPCRequest
| JSONRPCNotification
| JSONRPCResponse
| JSONRPCError;
JSONRPCRequest | JSONRPCNotification | JSONRPCResponse | JSONRPCError;

export const LATEST_PROTOCOL_VERSION = "2024-11-05";
export const JSONRPC_VERSION = "2.0";
Expand Down Expand Up @@ -1096,9 +1093,7 @@ export type ClientResult = EmptyResult | CreateMessageResult | ListRootsResult;

/* Server messages */
export type ServerRequest =
| PingRequest
| CreateMessageRequest
| ListRootsRequest;
PingRequest | CreateMessageRequest | ListRootsRequest;

export type ServerNotification =
| CancelledNotification
Expand Down
4 changes: 1 addition & 3 deletions schema/2025-03-26/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1234,9 +1234,7 @@ export type ClientResult = EmptyResult | CreateMessageResult | ListRootsResult;

/* Server messages */
export type ServerRequest =
| PingRequest
| CreateMessageRequest
| ListRootsRequest;
PingRequest | CreateMessageRequest | ListRootsRequest;

export type ServerNotification =
| CancelledNotification
Expand Down
26 changes: 5 additions & 21 deletions schema/2025-06-18/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
* @category JSON-RPC
*/
export type JSONRPCMessage =
| JSONRPCRequest
| JSONRPCNotification
| JSONRPCResponse
| JSONRPCError;
JSONRPCRequest | JSONRPCNotification | JSONRPCResponse | JSONRPCError;

/** @internal */
export const LATEST_PROTOCOL_VERSION = "2025-06-18";
Expand Down Expand Up @@ -1134,11 +1131,7 @@ export interface Annotations {
* @category Content
*/
export type ContentBlock =
| TextContent
| ImageContent
| AudioContent
| ResourceLink
| EmbeddedResource;
TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;

/**
* Text provided to or from an LLM.
Expand Down Expand Up @@ -1490,10 +1483,7 @@ export interface ElicitRequest extends Request {
* @category `elicitation/create`
*/
export type PrimitiveSchemaDefinition =
| StringSchema
| NumberSchema
| BooleanSchema
| EnumSchema;
StringSchema | NumberSchema | BooleanSchema | EnumSchema;

/**
* @category `elicitation/create`
Expand Down Expand Up @@ -1586,18 +1576,12 @@ export type ClientNotification =

/** @internal */
export type ClientResult =
| EmptyResult
| CreateMessageResult
| ListRootsResult
| ElicitResult;
EmptyResult | CreateMessageResult | ListRootsResult | ElicitResult;

/* Server messages */
/** @internal */
export type ServerRequest =
| PingRequest
| CreateMessageRequest
| ListRootsRequest
| ElicitRequest;
PingRequest | CreateMessageRequest | ListRootsRequest | ElicitRequest;

/** @internal */
export type ServerNotification =
Expand Down
28 changes: 7 additions & 21 deletions schema/2025-11-25/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
* @category JSON-RPC
*/
export type JSONRPCMessage =
| JSONRPCRequest
| JSONRPCNotification
| JSONRPCResponse;
JSONRPCRequest | JSONRPCNotification | JSONRPCResponse;

/** @internal */
export const LATEST_PROTOCOL_VERSION = "2025-11-25";
Expand Down Expand Up @@ -1740,11 +1738,7 @@ export interface Annotations {
* @category Content
*/
export type ContentBlock =
| TextContent
| ImageContent
| AudioContent
| ResourceLink
| EmbeddedResource;
TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;

/**
* Text provided to or from an LLM.
Expand Down Expand Up @@ -2219,8 +2213,7 @@ export interface ElicitRequestURLParams extends TaskAugmentedRequestParams {
* @category `elicitation/create`
*/
export type ElicitRequestParams =
| ElicitRequestFormParams
| ElicitRequestURLParams;
ElicitRequestFormParams | ElicitRequestURLParams;

/**
* A request from the server to elicit additional information from the user via the client.
Expand All @@ -2239,10 +2232,7 @@ export interface ElicitRequest extends JSONRPCRequest {
* @category `elicitation/create`
*/
export type PrimitiveSchemaDefinition =
| StringSchema
| NumberSchema
| BooleanSchema
| EnumSchema;
StringSchema | NumberSchema | BooleanSchema | EnumSchema;

/**
* @category `elicitation/create`
Expand Down Expand Up @@ -2343,8 +2333,7 @@ export interface TitledSingleSelectEnumSchema {
*/
// Combined single selection enumeration
export type SingleSelectEnumSchema =
| UntitledSingleSelectEnumSchema
| TitledSingleSelectEnumSchema;
UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema;

/**
* Schema for multiple-selection enumeration without display titles for options.
Expand Down Expand Up @@ -2437,8 +2426,7 @@ export interface TitledMultiSelectEnumSchema {
*/
// Combined multiple selection enumeration
export type MultiSelectEnumSchema =
| UntitledMultiSelectEnumSchema
| TitledMultiSelectEnumSchema;
UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema;

/**
* Use TitledSingleSelectEnumSchema instead.
Expand All @@ -2464,9 +2452,7 @@ export interface LegacyTitledEnumSchema {
*/
// Union type for all enum schemas
export type EnumSchema =
| SingleSelectEnumSchema
| MultiSelectEnumSchema
| LegacyTitledEnumSchema;
SingleSelectEnumSchema | MultiSelectEnumSchema | LegacyTitledEnumSchema;

/**
* The client's response to an elicitation request.
Expand Down
43 changes: 10 additions & 33 deletions schema/draft/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
* @category Common Types
*/
export type JSONValue =
| string
| number
| boolean
| null
| JSONObject
| JSONArray;
string | number | boolean | null | JSONObject | JSONArray;

/**
* @category Common Types
Expand All @@ -29,9 +24,7 @@ export type JSONArray = JSONValue[];
* @category JSON-RPC
*/
export type JSONRPCMessage =
| JSONRPCRequest
| JSONRPCNotification
| JSONRPCResponse;
JSONRPCRequest | JSONRPCNotification | JSONRPCResponse;

/** @internal */
export const LATEST_PROTOCOL_VERSION = "2026-07-28";
Expand Down Expand Up @@ -511,15 +504,11 @@ export type EmptyResult = Result;

/** @internal */
export type InputRequest =
| CreateMessageRequest
| ListRootsRequest
| ElicitRequest;
CreateMessageRequest | ListRootsRequest | ElicitRequest;

/** @internal */
export type InputResponse =
| CreateMessageResult
| ListRootsResult
| ElicitResult;
CreateMessageResult | ListRootsResult | ElicitResult;

/**
* A map of server-initiated requests that the client must fulfill.
Expand Down Expand Up @@ -2268,11 +2257,7 @@ export interface Annotations {
* @category Content
*/
export type ContentBlock =
| TextContent
| ImageContent
| AudioContent
| ResourceLink
| EmbeddedResource;
TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;

/**
* Text provided to or from an LLM.
Expand Down Expand Up @@ -2812,8 +2797,7 @@ export interface ElicitRequestURLParams {
* @category `elicitation/create`
*/
export type ElicitRequestParams =
| ElicitRequestFormParams
| ElicitRequestURLParams;
ElicitRequestFormParams | ElicitRequestURLParams;

/**
* A request from the server to elicit additional information from the user via the client.
Expand All @@ -2835,10 +2819,7 @@ export interface ElicitRequest {
* @category `elicitation/create`
*/
export type PrimitiveSchemaDefinition =
| StringSchema
| NumberSchema
| BooleanSchema
| EnumSchema;
StringSchema | NumberSchema | BooleanSchema | EnumSchema;

/**
* @example Email input schema
Expand Down Expand Up @@ -2963,8 +2944,7 @@ export interface TitledSingleSelectEnumSchema {
*/
// Combined single selection enumeration
export type SingleSelectEnumSchema =
| UntitledSingleSelectEnumSchema
| TitledSingleSelectEnumSchema;
UntitledSingleSelectEnumSchema | TitledSingleSelectEnumSchema;

/**
* Schema for multiple-selection enumeration without display titles for options.
Expand Down Expand Up @@ -3063,8 +3043,7 @@ export interface TitledMultiSelectEnumSchema {
*/
// Combined multiple selection enumeration
export type MultiSelectEnumSchema =
| UntitledMultiSelectEnumSchema
| TitledMultiSelectEnumSchema;
UntitledMultiSelectEnumSchema | TitledMultiSelectEnumSchema;

/**
* Use {@link TitledSingleSelectEnumSchema} instead.
Expand All @@ -3090,9 +3069,7 @@ export interface LegacyTitledEnumSchema {
*/
// Union type for all enum schemas
export type EnumSchema =
| SingleSelectEnumSchema
| MultiSelectEnumSchema
| LegacyTitledEnumSchema;
SingleSelectEnumSchema | MultiSelectEnumSchema | LegacyTitledEnumSchema;

/**
* The result returned by the client for an {@link ElicitRequest| elicitation/create} request.
Expand Down
Loading
Loading