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
RootModelreturns, such asRootModel[list[int]]andRootModel[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
- Recursive tool return type publishes an outputSchema with no root type, failing tools/list on 2025-11-25 sessions, maxisbey, opened 2026-08-19; closed as completed on 2026-08-24: "tools.0.outputSchema.type".
- Give recursive tool return types an object-rooted output schema, maxisbey, merged 2026-08-24 (closed).
- v2.1.0, released 2026-08-24.
- outputSchema with $ref at root violates MCP spec requirement for type: object, tp-woven, opened 2025-11-20; closed as completed on 2025-12-25.
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