Skip to content

Commit d0990a4

Browse files
committed
npm run fetch:spec-types and cherry-pick elicitation changes
1 parent 41c6b35 commit d0990a4

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

src/spec.types.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Source: https://github.com/modelcontextprotocol/modelcontextprotocol
55
* Pulled from: https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/schema.ts
6-
* Last updated from commit: 4528444698f76e6d0337e58d2941d5d3485d779d
6+
* Last updated from commit: 7dcdd69262bd488ddec071bf4eefedabf1742023
77
*
88
* DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates.
99
* To update this file, run: npm run fetch:spec-types
@@ -469,6 +469,15 @@ export interface BaseMetadata {
469469
export interface Implementation extends BaseMetadata, Icons {
470470
version: string;
471471

472+
/**
473+
* An optional human-readable description of what this implementation does.
474+
*
475+
* This can be used by clients or servers to provide context about their purpose
476+
* and capabilities. For example, a server might describe the types of resources
477+
* or tools it provides, while a client might describe its intended use case.
478+
*/
479+
description?: string;
480+
472481
/**
473482
* An optional URL of the website for this implementation.
474483
*
@@ -613,7 +622,7 @@ export interface ResourceRequestParams extends RequestParams {
613622
* @category `resources/read`
614623
*/
615624
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
616-
export interface ReadResourceRequestParams extends ResourceRequestParams {}
625+
export interface ReadResourceRequestParams extends ResourceRequestParams { }
617626

618627
/**
619628
* Sent from the client to the server, to read a specific resource URI.
@@ -650,7 +659,7 @@ export interface ResourceListChangedNotification extends JSONRPCNotification {
650659
* @category `resources/subscribe`
651660
*/
652661
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
653-
export interface SubscribeRequestParams extends ResourceRequestParams {}
662+
export interface SubscribeRequestParams extends ResourceRequestParams { }
654663

655664
/**
656665
* Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.
@@ -668,7 +677,7 @@ export interface SubscribeRequest extends JSONRPCRequest {
668677
* @category `resources/unsubscribe`
669678
*/
670679
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
671-
export interface UnsubscribeRequestParams extends ResourceRequestParams {}
680+
export interface UnsubscribeRequestParams extends ResourceRequestParams { }
672681

673682
/**
674683
* Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.
@@ -1377,7 +1386,7 @@ export type SamplingMessageContentBlock =
13771386
*/
13781387
export interface Annotations {
13791388
/**
1380-
* Describes who the intended customer of this object or data is.
1389+
* Describes who the intended audience of this object or data is.
13811390
*
13821391
* It can include multiple entries to indicate content useful for multiple audiences (e.g., `["user", "assistant"]`).
13831392
*/
@@ -1833,7 +1842,7 @@ export interface ElicitRequestFormParams extends RequestParams {
18331842
/**
18341843
* The elicitation mode.
18351844
*/
1836-
mode: "form";
1845+
mode?: "form";
18371846

18381847
/**
18391848
* The message to present to the user describing what information is being requested.
@@ -1845,6 +1854,7 @@ export interface ElicitRequestFormParams extends RequestParams {
18451854
* Only top-level properties are allowed, without nesting.
18461855
*/
18471856
requestedSchema: {
1857+
$schema?: string;
18481858
type: "object";
18491859
properties: {
18501860
[key: string]: PrimitiveSchemaDefinition;

0 commit comments

Comments
 (0)