@@ -159,9 +159,8 @@ function isCreateTaskResult(r: unknown): r is CreateTaskResult {
159159}
160160
161161/**
162- * Loose envelope for the (draft) 2026-06 MRTR `input_required` result. Typed
163- * minimally so this compiles before the spec types land; runtime detection is
164- * by shape.
162+ * Loose envelope for the SEP-2322 MRTR `input_required` result. Typed minimally
163+ * (field names not yet finalized in the spec); runtime detection is by shape.
165164 */
166165type InputRequiredEnvelope = {
167166 ResultType : 'input_required' ;
@@ -204,10 +203,10 @@ export type ClientOptions = ProtocolOptions & {
204203/**
205204 * MCP client built on a request-shaped {@linkcode ClientTransport}.
206205 *
207- * - 2026-06-native: every request is independent; `request()` runs the MRTR
208- * loop, servicing `input_required` rounds via locally registered handlers.
209- * - 2025-11-compat: {@linkcode connect} accepts the legacy pipe-shaped
210- * { @linkcode Transport} and runs the initialize handshake.
206+ * Every request is independent; `request()` runs the SEP-2322 MRTR loop,
207+ * servicing `input_required` rounds via locally registered handlers.
208+ * {@linkcode connect} also accepts a legacy pipe-shaped { @linkcode Transport}
209+ * and runs the 2025-11 initialize handshake for back-compat .
211210 */
212211export class Client extends Dispatcher < ClientContext > {
213212 private _ct ?: ClientTransport ;
@@ -274,11 +273,10 @@ export class Client extends Dispatcher<ClientContext> {
274273 }
275274
276275 /**
277- * Connects to a server. Accepts either a {@linkcode ClientTransport}
278- * (2026-06-native, request-shaped) or a legacy pipe {@linkcode Transport}
279- * (stdio, SSE, the v1 SHTTP class). Pipe transports are adapted via
280- * {@linkcode channelAsClientTransport} and the 2025-11 initialize handshake
281- * is performed.
276+ * Connects to a server. Accepts either a request-shaped {@linkcode ClientTransport}
277+ * or a legacy pipe {@linkcode Transport} (stdio, SSE, the v1 SHTTP class).
278+ * Pipe transports are adapted via {@linkcode channelAsClientTransport} and
279+ * the 2025-11 initialize handshake is performed.
282280 */
283281 async connect ( transport : Transport | ClientTransport , options ?: RequestOptions ) : Promise < void > {
284282 if ( isChannelTransport ( transport ) ) {
@@ -755,7 +753,7 @@ export class Client extends Dispatcher<ClientContext> {
755753 }
756754
757755 private async _discoverOrInitialize ( options : RequestOptions | undefined , setProtocolVersion : ( v : string ) => void ) : Promise < void > {
758- // 2026-06: try server/discover, fall back to initialize. Discover schema
756+ // Try server/discover (SEP-2575 stateless) , fall back to initialize. Discover schema
759757 // is not yet in spec types, so probe and accept the result loosely.
760758 try {
761759 const resp = await this . _ct ! . fetch (
@@ -770,7 +768,7 @@ export class Client extends Dispatcher<ClientContext> {
770768 protocolVersion ?: string ;
771769 } ;
772770 // Only accept discover if the result is shaped like a real discover response;
773- // pre-2026-06 servers may return an empty/echo result for unknown methods.
771+ // 2025-11 servers may return an empty/echo result for unknown methods.
774772 if ( r ?. serverInfo ) {
775773 this . _serverCapabilities = r . capabilities ;
776774 this . _serverVersion = r . serverInfo ;
0 commit comments