You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep Stateless as a non-obsolete convenience property
Retain the bool as shorthand for the Stateless and Stateful session modes,
while SessionMode remains available for selecting hybrid behavior. Remove the
MCP9008 diagnostic and related obsolete documentation.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/concepts/stateless/stateless.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ The `SessionMode` property is the single most important setting for forward-proo
43
43
44
44
<!-- mlc-disable-next-line -->
45
45
> [!NOTE]
46
-
> The older `bool`<xref:ModelContextProtocol.AspNetCore.HttpServerTransportOptions.Stateless> property is obsolete ([`MCP9008`](xref:list-of-diagnostics#obsolete-apis)) because it cannot express hybrid mode. It remains a compatibility proxy over `SessionMode`: assigning `true` selects `Stateless` and assigning `false` selects `Stateful`, while reading it returns `true` only for `Stateless`. Both properties update the same underlying value, so the last assignment wins.
46
+
> The `bool`<xref:ModelContextProtocol.AspNetCore.HttpServerTransportOptions.Stateless> property remains a convenient shorthand for the two most common modes: assigning `true` selects `Stateless` and assigning `false` selects `Stateful`, while reading it returns `true` only for `Stateless`. Use `SessionMode` when you need `StatefulForInitializeClients`. Both properties update the same underlying value, so the last assignment wins.
Copy file name to clipboardExpand all lines: docs/list-of-diagnostics.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,4 +46,3 @@ When APIs are marked as obsolete, a diagnostic is emitted to warn users that the
46
46
|`MCP9005`| In place | The Roots, Sampling, and Logging features are deprecated as of specification version 2026-07-28 and may be removed in a future version. See [SEP-2577](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2577) for more information. |
47
47
|`MCP9006`| In place | The stateful Streamable HTTP configuration knobs on <xref:ModelContextProtocol.AspNetCore.HttpServerTransportOptions> — `EventStreamStore`, `SessionMigrationHandler`, `PerSessionExecutionContext`, `IdleTimeout`, and `MaxIdleSessionCount` — only apply when the request is served with a session. Starting with the `2026-07-28` protocol revision, Streamable HTTP no longer supports sessions, and the SDK now defaults `SessionMode` to `HttpServerSessionMode.Stateless`. These knobs remain available for back-compat with the legacy stateful Streamable HTTP transport but new code should target the stateless path. |
48
48
|`MCP9007`| In place |`AuthorizationRedirectDelegate` and `ClientOAuthOptions.AuthorizationRedirectDelegate` are retained for source and binary compatibility but cannot provide the authorization-response state or RFC 9207 issuer. State and issuer validation are skipped when these APIs are used. Use `ClientOAuthOptions.AuthorizationCallbackHandler` for response-bound, issuer-aware authorization flows. |
49
-
|`MCP9008`| In place |<xref:ModelContextProtocol.AspNetCore.HttpServerTransportOptions.Stateless> is a two-value flag that cannot express <xref:ModelContextProtocol.AspNetCore.HttpServerSessionMode.StatefulForInitializeClients>. Use <xref:ModelContextProtocol.AspNetCore.HttpServerTransportOptions.SessionMode> instead. `Stateless` remains a compatibility proxy over `SessionMode`: `true` maps to `Stateless` and `false` maps to `Stateful`. See [Stateless and stateful mode](xref:stateless#hybrid-mode-sessions-for-initialize-clients-only) for details. |
publicconststringAuthorizationRedirectDelegate_Message="AuthorizationRedirectDelegate cannot provide the RFC 9207 issuer and is retained for compatibility only. Use AuthorizationCallbackHandler instead.";
publicconststringStatelessProperty_Message="HttpServerTransportOptions.Stateless cannot express the hybrid session mode. Use HttpServerTransportOptions.SessionMode instead.";
0 commit comments