Skip to content

Commit 5771e45

Browse files
docs: note HTTP-transport-specific fields are not shimmed in RequestHandlerExtra JSDoc
1 parent d40b46f commit 5771e45

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/core/src/shared/protocol.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ export type ClientContext = BaseContext & LegacyContextFields;
310310
*
311311
* v1 name for the handler context. v2 also exposes the same data under
312312
* `ctx.mcpReq` / `ctx.http`; the flat fields remain available so existing
313-
* handlers compile and run unchanged. See {@linkcode BaseContext}.
313+
* handlers using them compile and run unchanged. HTTP-transport-specific fields
314+
* (`requestInfo`, `closeSSEStream`, `closeStandaloneSSEStream`) are not shimmed
315+
* and require migration to `ctx.http?.req` / `ctx.http?.closeSSE`. See {@linkcode BaseContext}.
314316
*/
315317
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- phantom params kept for v1 source compatibility
316318
export type RequestHandlerExtra<_Req = unknown, _Notif = unknown> = ServerContext;

0 commit comments

Comments
 (0)