Rewrite docs/client.md as a code-heavy, prose-light how-to guide#1551
Open
jonathanhefner wants to merge 2 commits intomodelcontextprotocol:mainfrom
Open
Rewrite docs/client.md as a code-heavy, prose-light how-to guide#1551jonathanhefner wants to merge 2 commits intomodelcontextprotocol:mainfrom
docs/client.md as a code-heavy, prose-light how-to guide#1551jonathanhefner wants to merge 2 commits intomodelcontextprotocol:mainfrom
Conversation
|
@modelcontextprotocol/client
@modelcontextprotocol/server
@modelcontextprotocol/express
@modelcontextprotocol/hono
@modelcontextprotocol/node
commit: |
Restructure the document: action-oriented H1, Imports section, section-opener concept links to the MCP overview docs (not the specification), inline example-file references instead of `> [!NOTE]` callouts, and a trailing "See also" section with cross-links plus an "Additional examples" table. New sections: Imports, Disconnecting (`terminateSession()` + `close()`), Subscribing to resource changes (`subscribeResource`/`unsubscribeResource`), Roots (`roots/list` handler, `sendRootsListChanged()`), Error handling (tool errors vs protocol errors, connection lifecycle callbacks, timeouts), and `setLoggingLevel()` folded into Notifications. All new code examples are type-checked regions in `clientGuide.examples.ts` and synced via `pnpm sync:snippets`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Expand the client guide with four new topics and their companion `.examples.ts` snippets: - Server instructions: retrieving `getInstructions()` and folding it into a system prompt - Pagination: `listTools()`, `listResources()`, and `listPrompts()` examples now loop on `nextCursor` to collect all pages - Structured tool output: `structuredContent` for machine-readable results alongside LLM-facing `content` - Progress tracking: `onprogress`, `resetTimeoutOnProgress`, and `maxTotalTimeout` options for long-running tool calls Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4181fcc to
747c838
Compare
felixweinberger
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restructure the document: action-oriented H1, Imports section, section-opener concept links to the MCP overview docs (not the specification), inline example-file references instead of
> [!NOTE]callouts, and a trailing "See also" section with cross-links plus an "Additional examples" table.New sections: Imports, Disconnecting (
terminateSession()+close()), Subscribing to resource changes (subscribeResource/unsubscribeResource), Roots (roots/listhandler,sendRootsListChanged()), Error handling (tool errors vs protocol errors, connection lifecycle callbacks, timeouts), andsetLoggingLevel()folded into Notifications.All new code examples are type-checked regions in
clientGuide.examples.tsand synced viapnpm sync:snippets.