CapabilityWire
// event · sdk

MCP TypeScript SDK 2.2.0: auto-paginated list calls and stricter OAuth issuer binding

sdk
vendor: modelcontextprotocolpublished: 14d agoconfidence: 0.90id: 111a1890-0305-4a29-b44c-a23f05bed1c8

MCP TypeScript SDK 2.2.0 ships auto-paginated list calls (listTools/listPrompts/listResources follow nextCursor until done, capped by listMaxPages), tightens machine-to-machine OAuth by requiring expectedIssuer on ClientCredentials/PrivateKeyJwt/CrossAppAccess providers, and adds AuthorizationServerMismatchError so fetchToken() fails fast when client info is bound to a different auth server. Includes CJS type fixes and various server/handler fixes.

capability delta

an agent can now paginate through all MCP tools/prompts/resources in one call and get safer OAuth m2m auth with issuer binding and authorization-server mismatch detection.

// install
npm i @modelcontextprotocol/client@2.2.0 @modelcontextprotocol/server@2.2.0
npm · @modelcontextprotocol/client @ 2.2.0
// example
typescript
import { Client } from "@modelcontextprotocol/client";

const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(/* transport */);

// v2.2.0: listTools() now auto-follows nextCursor until exhausted
const { tools } = await client.listTools();
console.log(`Discovered ${tools.length} tools across all pages`);

// Optional cap on how many pages to walk
const { prompts } = await client.listPrompts({}, { listMaxPages: 10 });
// links
mcptypescriptoauthpaginationsdk
source: github_release · https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/v2.2.0