Retire wording tied to pre-2.0 milestones (#3211)

This commit is contained in:
Max 2026-07-29 14:54:23 +01:00 • committed by GitHub
commit b31ddf37ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 28 deletions

View file

@ -433,9 +433,9 @@ class Server(Generic[LifespanResultT]):
# `OpenTelemetryMiddleware` ships on by default so every server emits a
# SERVER span per message; it is a no-op until an OTel exporter is
# installed. Drop it from this list to opt out.
# TODO(L54): provisional - signature and semantics change with the
# Context/middleware rework (covariant `Context[L]`, outbound seam) before
# v2 final.
# TODO(L54): provisional - signature and semantics may change in a 2.x
# minor release with the Context/middleware rework (covariant
# `Context[L]`, outbound seam).
self.middleware: list[ServerMiddleware[LifespanResultT]] = [OpenTelemetryMiddleware()]
# SEP-2133 extension settings advertised under `ServerCapabilities.extensions`
# (identifier -> settings). Higher layers (e.g. `MCPServer(extensions=...)`)

View file

@ -267,8 +267,8 @@ class MCPServer(Generic[LifespanResultT]):
The same list as the low-level `Server.middleware`: append an
`async (ctx, call_next)` callable to observe, refuse, or rewrite
messages before they reach a handler. Provisional - the signature is
expected to change before v2 is final; see the middleware guide.
messages before they reach a handler. Provisional - the signature may
change in a 2.x minor release; see the middleware guide.
"""
return self._lowlevel_server.middleware

View file

@ -250,7 +250,8 @@ class Dispatcher(Outbound, Protocol[TransportT_co]):
Implementations own correlation of outbound requests to inbound results, the
receive loop, per-request concurrency, and cancellation/progress wiring.
The lifecycle surface is provisional; `run()` may change before v2 stable.
The lifecycle surface is provisional; `run()` may change in a 2.x minor
release.
"""
async def run(