From d49ec8cf18902670b86f0aacc441229bd4ec5a4f Mon Sep 17 00:00:00 2001 From: Tapan Chugh Date: Thu, 24 Jul 2025 14:24:16 -0700 Subject: [PATCH] DRAFT: consider adding REST method annotations for things --- docs/specification/draft/schema.mdx | 24 +++- docs/specification/draft/server/resources.mdx | 107 ++++++++++++++++++ schema/draft/schema.json | 92 ++++++++++++++- schema/draft/schema.ts | 43 +++++-- 4 files changed, 250 insertions(+), 16 deletions(-) diff --git a/docs/specification/draft/schema.mdx b/docs/specification/draft/schema.mdx index fb6ff5d3b..27fc84f61 100644 --- a/docs/specification/draft/schema.mdx +++ b/docs/specification/draft/schema.mdx @@ -37,6 +37,11 @@ the data is entirely optional.

Cursor: string

An opaque token used to represent a cursor for pagination.

+### `ElicitationObjectSchema` + +
type ElicitationObjectSchema = {
  properties: { [key: string]: PrimitiveSchemaDefinition };
  required?: string[];
  type: "object";
}

Schema for elicitation-style object structures. +Only allows flat objects with primitive-typed properties.

+ ### `EmbeddedResource`
interface EmbeddedResource {
  _meta?: { [key: string]: unknown };
  annotations?: Annotations;
  resource: TextResourceContents | BlobResourceContents;
  type: "resource";
}

The contents of a resource, embedded into a prompt or tool call result.

It is up to the client how best to render embedded resources for the benefit @@ -149,25 +154,36 @@ if present).