Skip to content

Add new sections and inline code snippets to docs/client.md#1526

Merged
jonathanhefner merged 3 commits intomodelcontextprotocol:mainfrom
jonathanhefner:revise-docs-client-md
Feb 13, 2026
Merged

Add new sections and inline code snippets to docs/client.md#1526
jonathanhefner merged 3 commits intomodelcontextprotocol:mainfrom
jonathanhefner:revise-docs-client-md

Conversation

@jonathanhefner
Copy link
Member

@jonathanhefner jonathanhefner commented Feb 12, 2026

New doc sections: Connecting to a server (3 transports), Authentication (client credentials, private key JWT, full OAuth), Using server features (tools, resources, prompts, completions), Notifications (listChanged first, manual handlers second), Handling server-initiated requests (capabilities, sampling, elicitation), Advanced patterns (middleware, resumption tokens), and a More client features reference table.

New companion file examples/client/src/clientGuide.examples.ts provides the snippet source with 16 regions covering: connect_streamableHttp, connect_stdio, connect_sseFallback, auth_clientCredentials, auth_privateKeyJwt, callTool_basic, readResource_basic, getPrompt_basic, complete_basic, listChanged_basic, notificationHandler_basic, capabilities_declaration, sampling_handler, elicitation_handler, middleware_basic, and resumptionToken_basic.


I still want to improve this document more in the future, but I think this is in a mergeable state.

@changeset-bot
Copy link

changeset-bot bot commented Feb 12, 2026

⚠️ No Changeset found

Latest commit: 275c77e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 12, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/client@1526

@modelcontextprotocol/server

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server@1526

@modelcontextprotocol/express

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/express@1526

@modelcontextprotocol/hono

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/hono@1526

@modelcontextprotocol/node

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/node@1526

commit: 275c77e

jonathanhefner and others added 2 commits February 13, 2026 11:16
New doc sections: Connecting to a server (3 transports), Authentication
(client credentials, private key JWT, full OAuth), Using server features
(tools, resources, prompts, completions), Notifications (`listChanged`
first, manual handlers second), Handling server-initiated requests
(capabilities, sampling, elicitation), Advanced patterns (middleware,
resumption tokens), and a More client features reference table.

New companion file `examples/client/src/clientGuide.examples.ts`
provides the snippet source with 16 regions covering:
`connect_streamableHttp`, `connect_stdio`, `connect_sseFallback`,
`auth_clientCredentials`, `auth_privateKeyJwt`, `callTool_basic`,
`readResource_basic`, `getPrompt_basic`, `complete_basic`,
`listChanged_basic`, `notificationHandler_basic`,
`capabilities_declaration`, `sampling_handler`, `elicitation_handler`,
`middleware_basic`, and `resumptionToken_basic`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a top-level scope-setting link and per-section spec links for Tools,
Resources, Prompts, Sampling, Elicitation, and Authorization.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jonathanhefner jonathanhefner marked this pull request as ready for review February 13, 2026 17:18
@jonathanhefner jonathanhefner requested a review from a team as a code owner February 13, 2026 17:18
@jonathanhefner jonathanhefner enabled auto-merge (squash) February 13, 2026 17:23
@jonathanhefner jonathanhefner merged commit 288eaf8 into modelcontextprotocol:main Feb 13, 2026
11 checks passed
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