Skip to content

[P16] release: 0.13.0 - #355

Merged
jeanmatthieu merged 3 commits into
rel/1.0.0from
conformance/p16-version
Nov 25, 2026
Merged

jeanmatthieu merged 3 commits into
rel/1.0.0from
conformance/p16-version

Conversation

@jeanmatthieu

@jeanmatthieu jeanmatthieu commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
Part P16 of P0–P35, merged into rel/1.0.0 in order (previous: P15 (#356) · next: P17 (#354))
Branch conformance/p16-version
Base conformance/p15-interop (stacked: GitHub retargets this PR to rel/1.0.0 when the previous part merges)
Commits 7cfb3ee release: 0.13.0
6bed974 release: review fixes
d126644 release: third-pass review fixes
Size 15 files, +49 / -35

Summary

There is no 0.13.0 release: P22 (#349) retargets this text to 1.0.0, so this PR is a milestone of
the stack, not a release.

Names the release that carries the 2026-07-28 work: 0.13.0. The work breaks source
compatibility (docs/migration.md), and under the package's 0.x rules (VERSIONING.md) the
minor number plays the role of the major, so the version after 0.12 is 0.13.0. The
installation snippets depend on it with .upToNextMinor(from: "0.13.0"), and the migration
guide, roadmap, design notes and dependency policy name the version instead of "this major
version". The package manifest takes swift-docc-plugin by version instead of its main
branch. No library code changes.

Motivation

  • README.md and docs/quick_start.md told users to depend on branch: "main". A release
    needs a version they can pin, and VERSIONING.md asks for .upToNextMinor(from:) while the
    package is 0.x.
  • The documentation written in P10 ([P10] docs: go-sdk layout, feature guides, design notes and process docs #362) referred to "this major version" and "the previous
    release". Once released, the text should name the versions it compares: 0.12 (commit
    2a44bfd on main) and 0.13.0.
  • A release should not depend on a moving branch: Package.swift took swift-docc-plugin from
    branch: "main".

Changes

File Change
README.src.md, docs/src/quick_start.src.md .package(url: ..., .upToNextMinor(from: "0.13.0")); the quick start explains why upToNextMinor while 0.x
docs/src/migration.src.md The guide compares 0.12 (2a44bfd) and 0.13.0, and says why 0.13.0 is the major version
ROADMAP.md "Implemented in this major version" becomes "Implemented in 0.13.0"
design/design.md, design/auth.md, DEPENDENCY_POLICY.md "this major version" becomes "0.13.0"
README.md, docs/*.md Regenerated by scripts/weave.swift

Review fixes

Dependencies (Package.swift, Package.resolved, DEPENDENCY_POLICY.md)

  • swift-docc-plugin was required with branch: "main", which moves under everyone who builds
    the package. It is now from: "1.4.6", the revision already resolved (e977f65);
    Package.resolved records the version. DEPENDENCY_POLICY.md: the table row; the rule
    against branch: and revision: requirements now covers build tools too; the swift-crypto
    row lists DPoP proofs.

Migration guide (docs/src/migration.src.md)

  • The guide named a V0.12.x release line, which has no tag or branch. It now starts from
    commit 2a44bfd. docs/migration.md regenerated.

Diagram

flowchart LR
    A["0.12, main 2a44bfd"] --> B["P0 (#371) to P15 (#356): 2026-07-28, fixes, docs, interop"]
    B --> C["P16 (#355): name the version"]
    C --> D["tag 0.13.0 on main"]
Loading

Release notes for 0.13.0

Ordered as VERSIONING.md asks: breaking changes, features, fixes, dependency changes,
deprecations. docs/migration.md has the details, with before and after code.

Breaking changes

Source:

  • MCPError: new cases (resourceNotFound(uri:), headerMismatch,
    missingRequiredClientCapabilities, unsupportedProtocolVersion), data on errors, and a
    third associated value on serverError. -32000 and -32001 decode as serverError; -32602
    with data.uri decodes as resourceNotFound.
  • HTTPResponse: .data and .error have new associated values.
  • Client.Capabilities.experimental is [String: Value]? (was [String: String]?).
  • OAuthAuthorizationError has eight new cases; OAuthConfiguration.GrantType has .jwtBearer.
  • HTTPClientAuthorizer.authorizationHeader(for:) became
    authorizationHeaders(for:method:), applied after requestModifier.

Behavior:

  • Server serves 2026-07-28 requests by default; Client connects at 2026-07-28 by default
    (ProtocolMode.automatic), with a fallback to initialize. Version.supported lists
    2026-07-28.
  • Undecodable handler parameters fail with -32602 (was -32603).
  • Client handlers run outside the receive loop; responses follow earlier notifications.
  • .stateless(version) no longer retries with another version. .automatic falls back to
    initialize only on a JSON-RPC error, an HTTP 400/404/405 refusal or no answer within
    discoveryTimeout (10 s); other transport errors are thrown.
  • A server with an initializeHook refuses stateless requests (-32022) unless it also sets a
    statelessRequestHook.
  • Server.Configuration and Client.Configuration gained properties; a missing key decodes to
    its default, so saved JSON still decodes.
  • .none(clientID:) with a plain client ID is treated as pre-registered: no dynamic
    registration. Pass "" to register.
  • HTTP transports: JSON-RPC error bodies on non-2xx replies, new status codes, per-request SSE
    streams, a bounded replay store.
  • HTTPClientTransport: 64 connections per host by default; a POST response stream that ends
    early is resumed with its own Last-Event-ID at 2025-11-25 and fails its request at
    2026-07-28.

Features

  • The 2026-07-28 revision, alongside 2025-11-25 and earlier on the same Server and Client:
    server/discover, per-request _meta, resultType, cache hints, the stateless HTTP
    transport, standard and custom request headers (SEP-2243), subscriptions/listen
    (SEP-2575), multi round-trip requests with sealed request state (SEP-2322).
  • Authorization: issuer checks (SEP-2468), application_type (SEP-837), authorization server
    migration (SEP-2352), enterprise-managed authorization (SEP-990: RFC 8693 token exchange and
    the RFC 7523 jwt-bearer grant), workload identity federation (SEP-1933), DPoP-bound tokens
    (RFC 9449, SEP-1932) with any DPoPSigningKey, including Secure Enclave keys.
  • Documentation: feature guides in docs/ generated from compiled, tested snippets, design
    notes in design/, ROADMAP.md, VERSIONING.md, DEPENDENCY_POLICY.md, CONTRIBUTING.md,
    examples under Examples/.
  • Testing: the conformance runner with per-revision legs and a baseline ratchet; an interop
    matrix against the Go and Python SDKs (scripts/run-interop.sh).

Fixes

From the review of the stack, with tests:

  • Client: a non-2xx reply delivers only an error with the request's id; server-to-client
    requests run at most maxConcurrentServerRequests (4) at once, with 64 queued, duplicate ids
    refused; a response waits only for its own queued progress; input requests are bounded
    (maxInputRequests, 16) and their rounds end on cancelRequest and disconnect; one
    background listen stream, reopened with backoff.
  • Server: stateless requests honor strict and the initialize hook; stateless exchanges buffer
    at most 1024 messages and cancel the handler when the client goes away; Mcp-Param-*
    schemas are cached and checked fail-closed; listen streams send keep-alive comments and are
    capped (maxSubscriptionStreams, maxResourceSubscriptions), with an authorizer and
    targeted notify(_:to:); request state is single-use; the replay store is bounded per stream
    and in bytes (16 MiB).
  • OAuth: a transient metadata failure keeps the discovered state and never falls back to the
    MCP origin's endpoints; a refresh token goes only to the server that issued it; concurrent
    challenges run one at a time and InMemoryTokenStorage is thread-safe; jwt-bearer
    assertions go only to a configured authorization server, or have their aud checked;
    private IP literals are parsed with inet_pton; the Linux redirect guard applies to every
    OAuth request; DPoP nonces are read from every response for the origin of the request.
  • HTTP client: SSE retry is clamped and the GET stream backs off; cancelled and disconnected
    requests release their state.
  • Tooling: the conformance harness installs from a lockfile and every script step checks its
    status; the interop matrix pins the Python side by commit and hashes, and flags crashed cells.

Earlier fixes:

  • Request-related notifications and server-to-client requests go to the request's own SSE
    stream at 2025-11-25.
  • HTTPClientTransport: no deadlock of concurrent calls waiting for server-to-client requests;
    no request waiting forever after its response stream ends.
  • Client: no cancellation race after send; withBatch uses the same path as send.
  • Server: no replies with random ids to notifications or unreadable messages; stateless-only
    and sessionless servers handle initialize correctly.
  • OAuth: swift-crypto for PKCE and private_key_jwt (Linux), redirect and registration
    endpoint checks, a resource server's use_dpop_nonce retried once per request.

Dependency changes

  • New: swift-crypto ("3.0.0"..<"5.0.0"), for request state sealing, PKCE, private_key_jwt
    and DPoP on all platforms.
  • swift-docc-plugin: from: "1.4.6" (was branch: "main"). A build plugin; no product depends
    on it.

Deprecations

  • None.

API changes

None in this PR.

Behavior changes

None in this PR.

Conformance

Unchanged: tier score 100% for client and server at 2025-11-25 and 2026-07-28. Default leg
baseline: 25 server entries (the tasks extension, planned), 0 client entries.

Tests

No test changes. 860 swift-testing tests pass, plus XCTest.

Review notes

  • 0.13.0, not 1.0.0: a 1.0 release commits to the stability rules of VERSIONING.md, and this
    release has not been verified on Linux.
  • After the stack merges, tag 0.13.0 on main. The tag is what
    .upToNextMinor(from: "0.13.0") resolves to; until it exists, the installation snippet
    does not resolve.
  • The release notes above can serve as the description of the tag's release.

Verification

Every branch of the stack builds and passes swift test; on this branch, 853 swift-testing
tests plus XCTest. DocC builds with --warnings-as-errors. All conformance legs pass at their
baselines; the tier score is 100% for client and server at 2025-11-25 and 2026-07-28.
scripts/run-interop.sh --check (added in P17 (#354)) passes at the top of the stack.

export npm_config_registry=https://registry.npmjs.org
swift test
swift scripts/weave.swift --check
swift package generate-documentation --target MCP --warnings-as-errors
scripts/run-conformance.sh --requirements 2025-11-25 --bin-path $(swift build --show-bin-path)
scripts/run-conformance.sh --requirements 2026-07-28 --bin-path $(swift build --show-bin-path)
scripts/run-interop.sh

AI usage disclosure: the changes, the tests, the commit messages and this description were written with Claude Opus 5.5 and reviewed by the authors.

Names the release that carries the 2026-07-28 work: 0.13.0. The work
breaks source compatibility (`docs/migration.md`), and under the
package's 0.x rules (`VERSIONING.md`) the minor number plays the role of
the major, so the version after 0.12 is 0.13.0. The installation
snippets depend on it with `.upToNextMinor(from: "0.13.0")`, and the
migration guide, roadmap, design notes and dependency policy name the
version instead of "this major version". The package manifest takes
swift-docc-plugin by version instead of its `main` branch. No library
code changes.
- Lower the swift-docc-plugin floor from 1.4.6 to 1.4.0, the oldest
  release that works with current DocC (1.3.0 and earlier pass
  `--index`, which `docc convert` rejects); Package.resolved stays at
  1.4.6, and the dependency policy notes why 1.4.0 is the floor.
- State in the dependency policy that SwiftPM refuses a version-based
  requirement on a package whose manifest has branch- or
  revision-based dependencies, the binding reason for banning them.
- Record the originHash of the current Package.swift in
  Package.resolved. SwiftPM computes it as the SHA-256 of the root
  manifest, so lowering the swift-docc-plugin floor to 1.4.0 left the
  hash of the 1.4.6 manifest. `swift package resolve` does not rewrite
  the hash while the pins are unchanged, so the value is set to the
  checksum SwiftPM computes; the pins are unchanged.
- Say 0.13.0, not 1.x or 1.0.0, in the design overview, in the
  versioning note on the release that serves 2026-07-28, and in the
  migration guide's entry in the docs index.
@jeanmatthieu
jeanmatthieu requested a review from a team as a code owner November 25, 2026 11:22
Base automatically changed from conformance/p15-interop to rel/1.0.0 November 25, 2026 12:42

@canarik canarik left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jeanmatthieu

@jeanmatthieu
jeanmatthieu merged commit 3ee3744 into rel/1.0.0 Nov 25, 2026
@jeanmatthieu
jeanmatthieu deleted the conformance/p16-version branch November 25, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants