Skip to content

docs: clarify v1 and v2 tool schema shapes - #2640

Draft
uuzzrm wants to merge 1 commit into
modelcontextprotocol:mainfrom
uuzzrm:codex/docs-v1-zod-schema-guidance
Draft

docs: clarify v1 and v2 tool schema shapes#2640
uuzzrm wants to merge 1 commit into
modelcontextprotocol:mainfrom
uuzzrm:codex/docs-v1-zod-schema-guidance

Conversation

@uuzzrm

@uuzzrm uuzzrm commented Aug 11, 2026

Copy link
Copy Markdown

Summary

  • Document the v1 positional server.tool() raw-shape contract alongside the v2 registerTool() Standard Schema contract.
  • Add troubleshooting guidance for the empty inputSchema and the _def crash reported on older v1 releases.
  • Add a concise reminder to the troubleshooting checklist.

Fixes #2627

Validation

  • git diff --check
  • Attempted pnpm run docs:check; this checkout is missing the generated docs/api/typedoc-sidebar.json, and VitePress then reported dead links in the unchanged clients/machine-auth.md and index.md pages.
  • The pre-push hook also attempted the repository-wide pnpm checks, but the local dependency setup aborted while installing ignored build scripts; no source or lockfile changes are included in this PR.

This is a docs-only change with no runtime code changes.

@changeset-bot

changeset-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b75abb3

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

pkg-pr-new Bot commented Aug 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@2640

@modelcontextprotocol/codemod

npm i https://pkg.pr.new/@modelcontextprotocol/codemod@2640

@modelcontextprotocol/core

npm i https://pkg.pr.new/@modelcontextprotocol/core@2640

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@2640

@modelcontextprotocol/server-legacy

npm i https://pkg.pr.new/@modelcontextprotocol/server-legacy@2640

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@2640

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@2640

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@2640

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@2640

commit: b75abb3

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

Labels

None yet

Projects

None yet

1 participant