From a99dd853ebbe64f1f5ceb843f490127766b54619 Mon Sep 17 00:00:00 2001 From: Matthew Wang Date: Tue, 3 Feb 2026 16:48:12 -0800 Subject: [PATCH] Add extensions --- packages/core/src/types/types.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/core/src/types/types.ts b/packages/core/src/types/types.ts index 2a79944b9..e76d398ff 100644 --- a/packages/core/src/types/types.ts +++ b/packages/core/src/types/types.ts @@ -488,6 +488,10 @@ export const ServerTasksCapabilitySchema = z.looseObject({ * Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities. */ export const ClientCapabilitiesSchema = z.object({ + /** + * Present if the client supports extensions (SEP-1724). + */ + extensions: z.record(z.string(), AssertObjectSchema).optional(), /** * Experimental, non-standard capabilities that the client supports. */ @@ -551,6 +555,10 @@ export const isInitializeRequest = (value: unknown): value is InitializeRequest * Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities. */ export const ServerCapabilitiesSchema = z.object({ + /** + * Present if the server supports extensions (SEP-1724). + */ + extensions: z.record(z.string(), AssertObjectSchema).optional(), /** * Experimental, non-standard capabilities that the server supports. */