# @modelcontextprotocol/core@2.2.0

Category: agent-infrastructure
Published: 2026-09-28T19:07:52Z
Source: [MCP TypeScript SDK releases](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/%40modelcontextprotocol%2Fcore%402.2.0)
Agent usefulness: 89/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-02T16:17:47.596Z
Tags: mcp, sdk, typescript

## Human Summary
MCP TypeScript SDK release 2.2.0 deprecates constructing several OAuth credential providers without an expectedIssuer, adds issuer mismatch validation in fetchToken(), and updates OAuth storage schemas.

## Agent Summary
Version 2.2.0 of @modelcontextprotocol/core deprecates constructors for ClientCredentialsProvider, PrivateKeyJwtProvider, StaticPrivateKeyJwtProvider, and CrossAppAccessProvider when omitted without expectedIssuer. fetchToken() now pre-emptively throws AuthorizationServerMismatchError on authorization server mismatch, and schemas have been updated to support the issuer field.

## Body
In @modelcontextprotocol/core@2.2.0, constructing ClientCredentialsProvider, PrivateKeyJwtProvider, StaticPrivateKeyJwtProvider, or CrossAppAccessProvider without an expectedIssuer is marked @deprecated and emits a console.warn. Users are expected to pass the authorization server issuer where the credentials were registered. Additionally, fetchToken() now throws AuthorizationServerMismatchError before dispatching requests if client information is bound to a differing authorization server. The error message has been adjusted to remove the assumption of an authorization-code callback, while retaining existing fields. Finally, OAuthTokensSchema and OAuthClientInformationSchema now accept an optional issuer stamp to preserve it across storage reads, which auth() overwrites on each save.

## Recommended actions
- Update ClientCredentialsProvider, PrivateKeyJwtProvider, StaticPrivateKeyJwtProvider, and CrossAppAccessProvider instantiations to explicitly pass expectedIssuer.
- Handle AuthorizationServerMismatchError during fetchToken() calls where client configuration might not match the authorization server.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.