Skip to content

Sync the build-server and build-client tutorials with these examples #277

Open

Description

@a-akimov

Problem

Each tutorial page links to this repo as "the complete code for this tutorial". The pages are in modelcontextprotocol/modelcontextprotocol, at docs/docs/<revision>/develop/build-client.mdx and build-server.mdx, in both the 2026-07-28 and draft copies. This issue tracks, from this side, what's still out of sync. The changes themselves are PRs to the spec repo.

Much of the drift has already been fixed or is in review there (checked 2026-11-01):

What's left

Order of work

Acceptance criteria

  • Every code block in both pages compiles and runs against the current examples.
  • No page pins an SDK version older than the one this repo pins.
  • The server tutorial shows output schemas and structured content in every tab.

Activity

  1. added
    documentation
    on Nov 1, 2026
  2. self-assigned this
    on Nov 1, 2026
  3. KilianTheMagnificent commented on Nov 19, 2026

    @KilianTheMagnificent

    Fresh audit of the live 2026-07-28 tutorials (modelcontextprotocol/modelcontextprotocol@c5c0da7) against quickstart-resources@abb2533 after running the Python (uv) and TypeScript (node v26.13.1) examples verbatim (all lints, server smoke tests, and 237-check client tool-loop tests pass):

    Checklist updates since Nov 1:

    • modelcontextprotocol/modelcontextprotocol#3482 and #3479 both merged on 2026-11-06.
    • #269, #271, #272 (PR #296), #273, and #274 are now closed here (only #268 remains open). Because PR #296 wrapped get_alerts in {"alerts": [...]}, the array-rooted get_alerts note in this issue no longer matches the servers.

    Remaining Python / TypeScript drift vs live tutorials:

    • build-server: Neither Python nor TypeScript tabs show outputSchema/structuredContent or ToolAnnotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint). TS tab registers get_alerts/get_forecast (repo still uses get-alerts/get-forecast pending #268), imports zod rather than zod/v4, uses /alerts/active?area=... + shortForecast + { isError: true } (repo uses /alerts/active/area/... + detailedForecast + slice(0, 5) + throwing Error), and lists Node.js 20+ (repo requires >=24.0.0).
    • build-client: Live Python & TS tabs now use claude-haiku-5-5 (not claude-opus-5), while the examples use claude-sonnet-5. Both tabs still accept a single script path and spawn .py with bare python/python3 rather than <server_command> [args...] (breaking against uv-managed weather-server-python), omit SYSTEM_PROMPT, stop_reason handling, conversation history/clear, key-optional mode, and non-text/structuredContent tool_result handling, and list Node.js 20+ in the TS tab. No Go tab exists yet.

    AI assistance disclosure: An AI assistant was used to run the local verification commands, diff the live tutorial pages against abb2533, and draft this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions