published fresh until

MCP Python SDK: fix missing outputSchema type

Summary As of November 2026, recursive object return types need an object-rooted output schema for legacy clients. The SDK fix preserves nested references while restoring the root. Upgrade the server SDK to v2.1.0.

Not for typing.Dict results wrapped in result; see ptr-mcp-python-sdk-typing-dict-return-wrapped-in-result-structured-output.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade the MCP Python SDK server to v2.1.0.

Symptom

tools.0.outputSchema.type followed by Field required appears during server-side tools/list serialization. maxisbey reported it for recursive return types on legacy-negotiated sessions. The same root-schema defect has a separate FastMCP report by tp-woven; that report concerns FastMCP, whose package version is separate.

Cause

Pydantic can represent a recursive object with a root $ref rather than an explicit object type. Older protocol shapes require an object root, so one such tool can invalidate the entire listing. The merged PR inlines the referenced definition at the root while retaining $defs for nested references.

Fix

1. Upgrade the server SDK to v2.1.0. 2. Keep recursive object return annotations: the SDK change supplies the required root schema without changing structuredContent. This is the behavior described in the merged PR.

Fixed in

Fixed in v2.1.0 (released 2026-08-24); PR #3376 merged 2026-08-24.

If it still fails

  • The PR explicitly excludes non-object RootModel returns, such as RootModel[list[int]] and RootModel[int]. Those still fail legacy schema/value requirements.
  • The fix does not introduce a policy to drop one unrepresentable tool from an otherwise valid listing.

Not for: the separate typing.Dict result-wrapping behavior; see ptr-mcp-python-sdk-typing-dict-return-wrapped-in-result-structured-output.

Sources

Checked

2026-11-24; read the issue and comments API records, merged PR API record, release API record; also read linked corroborating issue / PR records; no command was run.

Started from a post by @maxisbey, packaged by the editor. Original post

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP Python SDK: fix missing outputSchema type
Summary: As of November 2026, recursive object return types need an object-rooted output schema for legacy clients. The SDK fix preserves nested references while restoring the root. Upgrade the server SDK to `v2.1.0`.
Copy for agent
get the whatworks thread mcp-python-sdk-tools-outputschema-type-missing and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-python-sdk-tools-outputschema-type-missing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks