Repository navigation
fix: name root self-references after the generated root class - #5671
Conversation
This comment has been minimized.
This comment has been minimized.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6a2dee5658
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # Handle self-reference | ||
| if ref == "#": | ||
| return ForwardRef(_sanitize_name(schema.get("title", "Root"))) | ||
| return ForwardRef(_conversion.get().root_class_name) |
There was a problem hiding this comment.
Disambiguate root refs from identically named nested classes
When a nested object has the same sanitized title as the root (or as the explicit name= override), this ForwardRef resolves in the nested class's namespace to the nested class rather than the document root. For a "$ref": "#" reached through anyOf, items, or the Pydantic-model path, validation then enforces the nested object's fields, so it can accept inputs that violate the root schema and reject valid root instances. Use an unambiguous root identity (or unique generated names) instead of the potentially duplicated class name.
Useful? React with 👍 / 👎.
| _Conversion( | ||
| root_hash=root_hash, | ||
| root_size=root_size, | ||
| root_class_name=_sanitize_name(name or schema.get("title", "Root")), |
There was a problem hiding this comment.
Include the root class name in nested cache keys
When the same schema is converted with two different name= overrides and a nested generated object contains a generic root reference, this value changes but the nested class cache key does not: _create_dataclass and _create_pydantic_model key it by the schema/root hashes and its own name, while the schema-derived root hash omits the override. The second conversion therefore reuses (for example) a cached ForwardRef('First') while building Second, leaving TypeAdapter(Second) not fully defined or binding nested values to the first class if that name is available. Include root_class_name in generated-class cache keys.
Useful? React with 👍 / 👎.
Rename a nested class that would share the root's generated name, so pydantic binds "$ref": "#" to the root class instead of capturing it in the nested class's own name. Also include the root class name in generated-class cache keys, so converting the same schema under two different name= overrides no longer reuses a nested class whose forward references name the first conversion's root.
|
Both findings confirmed and fixed in b1d79f5. P1 (same-name binding): confirmed — pydantic binds a class's own name to that class when resolving its annotations, so a nested class sharing the root's name captured every P2 (cache pollution): confirmed — nested classes bake the root class name into their forward references, but the cache key omitted it. The root class name is now part of generated-class cache keys. Covered by |
BrickerP
left a comment
There was a problem hiding this comment.
Read the diff at b1d79f5 against main and ran the module on its own (pydantic 2.x) with some probe schemas, comparing main against this head.
What's sound. Tracking root_class_name on _Conversion and returning ForwardRef(root_class_name) from the ref == "#" branch of _convert_schema fixes the bug at its source. The old code named the ref after the bare {"$ref": "#"} node, which never has a title, so the ref could not resolve. Building the name as name or title or "Root" matches how _create_dataclass/_create_pydantic_model name the root, so the name= override case works too. The second commit is also right. Pydantic binds a class's own name before the root, so a nested class with the root's name (_nested_class_name → Node_2) would capture # refs, and renaming it stops that. Adding root_class_name to the _classes cache key stops a First forward ref from being reused while building Second. I confirmed that these now work where they failed on main: $defs recursion back to the root (Tree → Branch → #), root "my node" with nested "my-node" (both sanitize to my_node), and an untitled root with an untitled nested object that refs #. That last one used to validate # against the nested shape; now it validates against the root shape.
Residuals (the first two are new in this PR):
- Regression: untitled
type: ["object", "null"]root.{"type": ["object","null"], "properties": {"name": {...}, "next": {"anyOf": [{"$ref": "#"}, {"type": "null"}]}}}validates onmain(classRoot). On this branchTypeAdapterraises "not fully defined" onOptional[Root_2]. The cause is the type-list branch of_convert_schema, which builds the object class fromtype_schema = dict(schema). That copy fails theschema is not schemasidentity check in_nested_class_name, so the root class itself gets renamedRoot_2while#still points toRoot. The titled form was already broken onmainand still is (Node_2). An explicit root flag, or treating a copy that differs only intypeas the root, would fix both. - Regression: non-string
titlenow crashes every conversion._convert_normalizednow calls_sanitize_name(name or schema.get("title", "Root"))up front for every schema, including scalar and dict-only roots that never create a class.{"type": "string", "title": null},{"type": "string", "title": 5}and{"type": "object", "title": 5}all converted onmain. Here they raiseTypeError: expected string or bytes-like objectfromre.sub. These schemas are malformed, but they can arrive from untrusted servers. Computing the name lazily, or only usingtitlewhenisinstance(title, str), avoids the crash. - Pre-existing, same bug class, not covered: the shortcut in
_build_dataclass(elif prop_schema.get("$ref") == "#": field_type = ForwardRef(sanitized_name)) uses the current class's name. On the root that matches, but a nested dataclass with a direct"root": {"$ref": "#"}property points the ref at itself. With rootDoc(requiredvalue) and nestedChild(requiredtag),{"child": {"root": {"tag": "x"}}}is accepted and a valid root shape is rejected. Using_conversion.get().root_class_namethere fixed both cases for me. Theref == "#"early return at the top of_build_dataclassprobably needs the same change. - Pre-existing: an untitled root with
propertiesbut notypegoes through_create_dataclass(schema, schema.get("title", "<unknown>"), ...). The class is namedfield_unknownwhile#points toRoot, so it's still "not fully defined". The titled typeless form is fixed by this PR. - CI:
static_analysisis red becausety checkflags the new tests (test_advanced.py:290,:291,:349,:355): thechild.__args__[0] if hasattr(child, "__args__") else childunwrap on the result ofget_dataclass_field(...).type. A small typed helper or acastwould make it pass. - Nit: the
_2suffix isn't checked against other names. A nested object really titledNode_2next to a renamed one gives two classes with the same__name__. That's harmless for#resolution but confusing in error messages and generated schemas.
The approach is right. I'd fix the first two regressions and the ty failure before merge, and ideally route the _build_dataclass direct-property shortcut through root_class_name in the same PR, since it's the same bug.
- convert the root schema itself (not a copy) for the object member of a root type list, so the generated class keeps the name that "$ref": "#" resolves to; untitled ["object", "null"] roots no longer build Root_2 against refs to Root, and the titled form now resolves where main also failed - only treat a string title as a class-name source in _convert_normalized, so malformed titles (null, numbers) no longer crash conversions that previously succeeded - route _build_dataclass's direct "#" shortcuts through root_class_name so a direct root reference on a nested class no longer points at the nested class itself - add an unwrap_optional test helper so ty check passes on the tests
|
Thanks @BrickerP — everything you flagged is addressed in 953953f, including the same-bug
The two pre-existing items (untitled root with
|
|
@zzstoatzz — quick coordination question on this one. #5779 now carries this PR's root-reference binding and tests, with BlueX888 credited as co-author. Would you prefer that I close #5671 in #5779's favor, or keep the focused fix here and land it first? Happy to close it once you confirm. Two facts that may matter for sequencing:
Also, #5779's body says |
BrickerP
left a comment
There was a problem hiding this comment.
APPROVE
Re-reviewed at 953953f. The follow-up commit clears the residuals I flagged at b1d79f5:
- type-list roots now convert the root schema itself for the
objectmember, so untitled["object","null"]keeps the name"$ref": "#"resolves to (and the titled form that was broken on main now works too) - non-string
titlevalues are ignored for class naming instead of crashing in_sanitize_name _build_dataclass's direct"#"shortcuts go throughroot_class_nameunwrap_optionalunblocksty checkon the new tests
The _2 suffix collision and typeless untitled roots remain edge cases outside this fix's scope. Good to merge from my side.
(cherry picked from commit 2c3a2de)
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [fastmcp](https://github.com/PrefectHQ/fastmcp) | `>=4.1,<4.2` → `>=4.2,<4.3` |  |  |
---
### Release Notes
<details>
<summary>PrefectHQ/fastmcp (fastmcp)</summary>
### [`v4.2.2`](https://github.com/PrefectHQ/fastmcp/releases/tag/v4.2.2): : Tea for Two (Too)
[Compare Source](https://github.com/PrefectHQ/fastmcp/compare/v4.2.1...v4.2.2)
FastMCP 4.2.2 fixes skills discovery for tool-only clients. Adding a server transform such as `ResourcesAsTools` made `skills/list` come back empty even though the `skill://` files stayed readable; skills are now listed whenever their files are actually served.
Thanks to our 2 contributors, including 1 first-time contributor.
<!-- Release notes generated using configuration in .github/release.yml at main -->
#### What's Changed
##### Fixes 🐞
- Keep skills discovery on with tool-only server transforms by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​anchapin](https://github.com/anchapin) in [#​6548](https://github.com/PrefectHQ/fastmcp/pull/6548)
##### Docs 📚
- docs: rename v4.2.1 to 4, 2, 1... Liftoff by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6540](https://github.com/PrefectHQ/fastmcp/pull/6540)
##### Other Changes 🦾
- Run Arize Phoenix's MCP tests in the downstream smoke by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6542](https://github.com/PrefectHQ/fastmcp/pull/6542)
#### New Contributors
- [@​anchapin](https://github.com/anchapin) made their first contribution in [#​6548](https://github.com/PrefectHQ/fastmcp/pull/6548)
**Full Changelog**: <https://github.com/PrefectHQ/fastmcp/compare/v4.2.1...v4.2.2>
### [`v4.2.1`](https://github.com/PrefectHQ/fastmcp/releases/tag/v4.2.1): : 4, 2, 1... Liftoff
[Compare Source](https://github.com/PrefectHQ/fastmcp/compare/v4.2.0...v4.2.1)
FastMCP 4.2.1 is a security and correctness patch on top of 4.2.0. It tightens OAuth and token handling: JWTs aren't accepted before their `nbf`, provider `required_scopes` survive a custom verifier, pre-registered OAuth clients can be pinned to their issuer, and consent, metadata forwarding and upstream claims in the OAuth proxy are hardened. It also raises the `opentelemetry-api` floor past a traceparent ReDoS. If you install with pip and also have `opentelemetry-sdk`, upgrade it alongside FastMCP (`pip install -U fastmcp opentelemetry-sdk`). In `require_authorization_consent="remember"` mode, users are asked for consent once more per client after upgrading.
Thanks to our 5 contributors, including 2 first-time contributors.
#### What's Changed
##### Security 🔒
- Reject JWTs whose nbf is in the future by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​ratomirjovanovic](https://github.com/ratomirjovanovic) in [#​6512](https://github.com/PrefectHQ/fastmcp/pull/6512)
- Raise opentelemetry-api floor past traceparent ReDoS by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6513](https://github.com/PrefectHQ/fastmcp/pull/6513)
- Remember OAuth consent per redirect URI and scope set by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6530](https://github.com/PrefectHQ/fastmcp/pull/6530)
- Cache forwarded authorization server metadata in remote auth providers by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6531](https://github.com/PrefectHQ/fastmcp/pull/6531)
- Refresh upstream_claims when the OAuth proxy transparently refreshes by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6532](https://github.com/PrefectHQ/fastmcp/pull/6532)
- Normalize literal-query placeholder names in URI templates by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6533](https://github.com/PrefectHQ/fastmcp/pull/6533)
- Quote tool names in generated SKILL.md invocations by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6534](https://github.com/PrefectHQ/fastmcp/pull/6534)
- Keep provider required_scopes when a custom token_verifier is passed by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6535](https://github.com/PrefectHQ/fastmcp/pull/6535)
- Add issuer binding to OAuth pre-registered clients by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6536](https://github.com/PrefectHQ/fastmcp/pull/6536)
##### Fixes 🐞
- Keep middleware edits to a returned CallToolResult by [@​Max17190](https://github.com/Max17190) in [#​6520](https://github.com/PrefectHQ/fastmcp/pull/6520)
- fix(resources): coerce template parameters from resolved hints by [@​67-luck](https://github.com/67-luck) in [#​6471](https://github.com/PrefectHQ/fastmcp/pull/6471)
##### Enhancements ✨
- Allow py-key-value-aio 0.5.x by [@​strawgate](https://github.com/strawgate) in [#​6521](https://github.com/PrefectHQ/fastmcp/pull/6521)
##### Docs 📚
- Add 4.2 to the what's new page and match the 4.2.0 changelog to the release by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6493](https://github.com/PrefectHQ/fastmcp/pull/6493)
##### Other Changes 🦾
- Fix nightly upgrade checks: declare httpx, adopt ty 0.0.100 by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6517](https://github.com/PrefectHQ/fastmcp/pull/6517)
- Give triage's assess agent public facts about the people on an issue by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6486](https://github.com/PrefectHQ/fastmcp/pull/6486)
- Restore Marvin labeling and reopen disputed duplicates by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6495](https://github.com/PrefectHQ/fastmcp/pull/6495)
- chore(deps): Update dependency opentelemetry-api to v1.45.2 \[SECURITY] by [@​prefect-renovate](https://github.com/prefect-renovate)\[bot] in [#​6505](https://github.com/PrefectHQ/fastmcp/pull/6505)
- chore(deps): Update dependency dnspython to v2.9.2 \[SECURITY] by [@​prefect-renovate](https://github.com/prefect-renovate)\[bot] in [#​6506](https://github.com/PrefectHQ/fastmcp/pull/6506)
#### New Contributors
- [@​Max17190](https://github.com/Max17190) made their first contribution in [#​6520](https://github.com/PrefectHQ/fastmcp/pull/6520)
- [@​ratomirjovanovic](https://github.com/ratomirjovanovic) made their first contribution in [#​6512](https://github.com/PrefectHQ/fastmcp/pull/6512)
**Full Changelog**: <https://github.com/PrefectHQ/fastmcp/compare/v4.2.0...v4.2.1>
### [`v4.2.0`](https://github.com/PrefectHQ/fastmcp/releases/tag/v4.2.0): : Mad Skills
[Compare Source](https://github.com/PrefectHQ/fastmcp/compare/v4.1.8...v4.2.0)
FastMCP 4.2 serves agent skills from the server. A skill used to live in a folder on each machine, so every agent kept its own copy and an update meant asking everyone to reinstall. Now the server holds one copy next to the tools the skill describes, and a deploy updates every agent that reads it.
```python
from fastmcp import FastMCP, Skill
from fastmcp.skills.provider import SkillCatalogProvider
deploy = Skill.from_directory("skills/deploy")
mcp = FastMCP("Team Skills")
mcp.add_provider(SkillCatalogProvider([deploy]))
```
Any client can read a skill's files as ordinary resources. Clients that speak the experimental [Skills extension](https://modelcontextprotocol.io/seps/2640-skills-extension) also get `skills/list`, with a hashed manifest for each skill. Few hosts support it yet, so FastMCP's client fills in: `Client.read_skill()` checks every file's size and digest, and `to_directory()` installs a skill into an agent's local skills folder. Skills work with the rest of FastMCP: they're namespaced under mounts, pass through proxies, list across a `ClientGroup`, and respect `AuthMiddleware`. The [skills docs](https://gofastmcp.com/docs/servers/skills) cover the details.
Dependencies can now be declared in the annotation, as in `Annotated[dict, Depends(get_config)]`, so the parameter keeps its real type, and a dependency can own the tool argument it reads through `CallArgument`. The rest of the release is fixes across OpenAPI, proxies, auth, telemetry and tasks. Thirteen community PRs merged during the cycle were reverted before release and are not listed here.
##### Before upgrading
- Python 3.11 or newer is required.
- The 4.1 skills API is deprecated and will be removed in 4.3. The old providers in `fastmcp.server.providers.skills` and helpers in `fastmcp.utilities.skills` still work and warn with their replacement. The [skills docs](https://gofastmcp.com/docs/servers/skills) include a migration table.
- `Skill` is now the class you author with. The wire model that used that name is `MCPSkill`; the old import works until 4.3.
Thanks to our 120 contributors, including 46 first-time contributors.
<details>
<summary>Every change in this release</summary>
<!-- Release notes generated using configuration in .github/release.yml at main -->
##### Breaking Changes ⚠️
- Make Skill a storage-neutral object with folders as one loader by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6065](https://github.com/PrefectHQ/fastmcp/pull/6065)
- Require Python 3.11 by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6377](https://github.com/PrefectHQ/fastmcp/pull/6377)
##### Enhancements ✨
- Rename the resource-era list_skills helper to list_skill_summaries by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6051](https://github.com/PrefectHQ/fastmcp/pull/6051)
- Discover skills through mounted servers by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6067](https://github.com/PrefectHQ/fastmcp/pull/6067)
- Share Prefab renderer resources across equivalent tools by [@​jlowin](https://github.com/jlowin), [@​fprieto14](https://github.com/fprieto14), and [@​keremoktener](https://github.com/keremoktener) in [#​6077](https://github.com/PrefectHQ/fastmcp/pull/6077)
- Export Skill from fastmcp by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6071](https://github.com/PrefectHQ/fastmcp/pull/6071)
- Add skills discovery to ClientGroup by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6072](https://github.com/PrefectHQ/fastmcp/pull/6072)
- Add --skills to fastmcp list by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6073](https://github.com/PrefectHQ/fastmcp/pull/6073)
- Add Client.read_skill and tighten skills docs by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6087](https://github.com/PrefectHQ/fastmcp/pull/6087)
- Verify and export skills with resource-manifest fallback by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6086](https://github.com/PrefectHQ/fastmcp/pull/6086)
- Forward Skills discovery through proxies by [@​jakekaplan](https://github.com/jakekaplan) in [#​5788](https://github.com/PrefectHQ/fastmcp/pull/5788)
- Share strict skill snapshot projection by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6089](https://github.com/PrefectHQ/fastmcp/pull/6089)
- Use scoped local tests and leave full suites to CI by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6094](https://github.com/PrefectHQ/fastmcp/pull/6094)
- Share ClientGroup skill client lookup by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6101](https://github.com/PrefectHQ/fastmcp/pull/6101)
- Share filesystem skill supporting-file reads by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6102](https://github.com/PrefectHQ/fastmcp/pull/6102)
- Deliver concurrent triage reviews, draft fixes and mutation proposals by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6116](https://github.com/PrefectHQ/fastmcp/pull/6116)
- Post Marvin's dedupe and too-long comments from workflow steps by [@​gaker](https://github.com/gaker) in [#​6170](https://github.com/PrefectHQ/fastmcp/pull/6170)
- Remove the unused triage mutation batch by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6208](https://github.com/PrefectHQ/fastmcp/pull/6208)
- Restore the status site by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6216](https://github.com/PrefectHQ/fastmcp/pull/6216)
- Add agno, Agent Framework, and OpenAI Agents SDK to downstream smoke by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6222](https://github.com/PrefectHQ/fastmcp/pull/6222)
- Close external PRs until their author is assigned again by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6227](https://github.com/PrefectHQ/fastmcp/pull/6227)
- Let private triage sweeps run without the Sol reviewer by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6229](https://github.com/PrefectHQ/fastmcp/pull/6229)
- Add named model tiers to the agentic triage plans by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6228](https://github.com/PrefectHQ/fastmcp/pull/6228)
- Add reproducible public triage leads to backlog dashboard by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6293](https://github.com/PrefectHQ/fastmcp/pull/6293)
- Add a strict SkillsDirectoryProvider to fastmcp.skills.provider by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6278](https://github.com/PrefectHQ/fastmcp/pull/6278)
- Point experimental_skills at the new provider and drop alpha-only skills code by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6279](https://github.com/PrefectHQ/fastmcp/pull/6279)
- Deprecate the 4.1 skills API for removal in 4.3 by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6280](https://github.com/PrefectHQ/fastmcp/pull/6280)
- Add app restart to the smart home Fire TV example by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6356](https://github.com/PrefectHQ/fastmcp/pull/6356)
- Add a workflow that deploys agentic triage to Prefect Cloud by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6380](https://github.com/PrefectHQ/fastmcp/pull/6380)
- Support Annotated dependencies by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​Kludex](https://github.com/Kludex) in [#​6378](https://github.com/PrefectHQ/fastmcp/pull/6378)
- Post triage outcomes instead of run starts, and skip maintainer events by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6382](https://github.com/PrefectHQ/fastmcp/pull/6382)
- Support npm_config_registry override in fastmcp dev apps by [@​Abhi2939](https://github.com/Abhi2939) and [@​ezz3r](https://github.com/ezz3r) in [#​5969](https://github.com/PrefectHQ/fastmcp/pull/5969)
- Bump the conformance pin to 0.2.0-alpha.12 and check it weekly by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6424](https://github.com/PrefectHQ/fastmcp/pull/6424)
- Make background task execution TTL configurable by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​carterthayer](https://github.com/carterthayer) in [#​6428](https://github.com/PrefectHQ/fastmcp/pull/6428)
- Drop --isolated from the ty pre-commit hook by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6430](https://github.com/PrefectHQ/fastmcp/pull/6430)
- Set gen_ai.operation.name on tools/call spans by [@​zzstoatzz](https://github.com/zzstoatzz), [@​swantzter](https://github.com/swantzter), and [@​CaselIT](https://github.com/CaselIT) in [#​6429](https://github.com/PrefectHQ/fastmcp/pull/6429)
- Let a dependency's CallArgument own a tool argument by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​Kludex](https://github.com/Kludex) in [#​6438](https://github.com/PrefectHQ/fastmcp/pull/6438)
- Remove private dead code and type-check the companion packages by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6454](https://github.com/PrefectHQ/fastmcp/pull/6454)
- Add SkillManifestProvider to serve skills without loading their files by [@​jakekaplan](https://github.com/jakekaplan) in [#​6465](https://github.com/PrefectHQ/fastmcp/pull/6465)
##### Security 🔒
- Verify advertised skill frontmatter when reading content by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6090](https://github.com/PrefectHQ/fastmcp/pull/6090)
- Check skill limits before reading directory and remote files by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6092](https://github.com/PrefectHQ/fastmcp/pull/6092)
- fix: preserve \_list_query_params in FastMCPProviderResourceTemplate.wrap by [@​RS-ITACHI](https://github.com/RS-ITACHI) in [#​6130](https://github.com/PrefectHQ/fastmcp/pull/6130)
- Read composite action inputs from env and pin actions by digest by [@​gaker](https://github.com/gaker) in [#​6168](https://github.com/PrefectHQ/fastmcp/pull/6168)
- Scope the /marvin App token to the permissions it uses by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6206](https://github.com/PrefectHQ/fastmcp/pull/6206)
- Require patched Authlib in client and server extras by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​zhuweid](https://github.com/zhuweid) in [#​6337](https://github.com/PrefectHQ/fastmcp/pull/6337)
- Update example locks past the schema-parsing security fix by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6339](https://github.com/PrefectHQ/fastmcp/pull/6339)
- Redact passwords from the worker's backend URL by [@​jaeminbird](https://github.com/jaeminbird) and [@​mbishflavien](https://github.com/mbishflavien) in [#​6113](https://github.com/PrefectHQ/fastmcp/pull/6113)
- fix(auth): collapse a repeated `iss` in the client redirect by [@​shi-felix](https://github.com/shi-felix) and [@​alpaylan](https://github.com/alpaylan) in [#​6352](https://github.com/PrefectHQ/fastmcp/pull/6352)
- Normalize raw-string redirect URIs through AnyUrl before validation by [@​uhhgxg](https://github.com/uhhgxg) and [@​alpaylan](https://github.com/alpaylan) in [#​6315](https://github.com/PrefectHQ/fastmcp/pull/6315)
- fix(auth): include DNS in SSRF deadline by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5509](https://github.com/PrefectHQ/fastmcp/pull/5509)
- fix(transforms): enforce wall-clock timeout and external callback limit in MontySandboxProvider and CodeMode by [@​Pyhroff](https://github.com/Pyhroff) in [#​6063](https://github.com/PrefectHQ/fastmcp/pull/6063)
##### Fixes 🐞
- Make the version-check InvalidURL regression independent of proxy parsing by [@​HootRock](https://github.com/HootRock) in [#​6048](https://github.com/PrefectHQ/fastmcp/pull/6048)
- Build the Prefab renderer page on read, not on resources/list by [@​adam-zovos](https://github.com/adam-zovos) in [#​6039](https://github.com/PrefectHQ/fastmcp/pull/6039)
- Install mounted skills under their own name in sync_skills by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6078](https://github.com/PrefectHQ/fastmcp/pull/6078)
- Stage skill exports before replacing installed files by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6091](https://github.com/PrefectHQ/fastmcp/pull/6091)
- fix: Prefix backend hash addresses with double underscores by [@​jlowin](https://github.com/jlowin) and [@​BlueX888](https://github.com/BlueX888) in [#​6100](https://github.com/PrefectHQ/fastmcp/pull/6100)
- Rebind pre-4.2 Prefab backend addresses through 4.2 proxies by [@​jakekaplan](https://github.com/jakekaplan) in [#​6108](https://github.com/PrefectHQ/fastmcp/pull/6108)
- Isolate and bound triage verification by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6109](https://github.com/PrefectHQ/fastmcp/pull/6109)
- Improve OpenAPI upstream error details by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​mssaleh](https://github.com/mssaleh) in [#​6141](https://github.com/PrefectHQ/fastmcp/pull/6141)
- Compare JSON const and enum values by JSON equality by [@​prassu017](https://github.com/prassu017) and [@​alpaylan](https://github.com/alpaylan) in [#​6126](https://github.com/PrefectHQ/fastmcp/pull/6126)
- Bound Skills proxy backend pagination by [@​prassu017](https://github.com/prassu017) and [@​Yash-Tripath1](https://github.com/Yash-Tripath1) in [#​6104](https://github.com/PrefectHQ/fastmcp/pull/6104)
- fix: forward script arguments in FastMCPStdioTransport by [@​KashifManzer](https://github.com/KashifManzer) and [@​BlueX888](https://github.com/BlueX888) in [#​6119](https://github.com/PrefectHQ/fastmcp/pull/6119)
- Return invalid params for prompts/get with a missing required argument by [@​asasemahmed](https://github.com/asasemahmed) and [@​xubenqiang](https://github.com/xubenqiang) in [#​6027](https://github.com/PrefectHQ/fastmcp/pull/6027)
- Fix kept-alive stdio transports ignoring client timeouts by [@​HootRock](https://github.com/HootRock) in [#​6156](https://github.com/PrefectHQ/fastmcp/pull/6156)
- perf(schema): skip unnecessary reference sibling restoration by [@​andreivince](https://github.com/andreivince) in [#​6161](https://github.com/PrefectHQ/fastmcp/pull/6161)
- fix(cli): prefer Claude Code project servers by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5522](https://github.com/PrefectHQ/fastmcp/pull/5522)
- fix(cli): preserve JSON content block fields by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5530](https://github.com/PrefectHQ/fastmcp/pull/5530)
- Keep schema definitions when hydrating a wrapped tool result by [@​asasemahmed](https://github.com/asasemahmed) in [#​5927](https://github.com/PrefectHQ/fastmcp/pull/5927)
- Reject undeclared OpenAPI tool arguments under strict input validation by [@​prassu017](https://github.com/prassu017) and [@​mssaleh](https://github.com/mssaleh) in [#​6140](https://github.com/PrefectHQ/fastmcp/pull/6140)
- fix(resources): reverse hostless URIs through Namespace unchanged by [@​serhiizghama](https://github.com/serhiizghama) and [@​andreivince](https://github.com/andreivince) in [#​5230](https://github.com/PrefectHQ/fastmcp/pull/5230)
- fix(openapi): preserve timeouts so the server maps them to the actionable message by [@​BlueX888](https://github.com/BlueX888) in [#​5847](https://github.com/PrefectHQ/fastmcp/pull/5847)
- Keep posted review receipts on partial delivery and reject differing reviews by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6178](https://github.com/PrefectHQ/fastmcp/pull/6178)
- Drop client context holds left by finished tasks by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6205](https://github.com/PrefectHQ/fastmcp/pull/6205)
- Let clients with different timeouts share a kept-alive stdio session by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6223](https://github.com/PrefectHQ/fastmcp/pull/6223)
- fix(cli): preserve explicit null in generated tool commands by [@​likecake](https://github.com/likecake) in [#​6191](https://github.com/PrefectHQ/fastmcp/pull/6191)
- Honor empty tag inclusion filters in multi-server configs by [@​PennEwan](https://github.com/PennEwan) in [#​6200](https://github.com/PrefectHQ/fastmcp/pull/6200)
- fix(mcp-config): reuse one OAuth client per configured server by [@​kbkb628](https://github.com/kbkb628) and [@​whoskn](https://github.com/whoskn) in [#​6097](https://github.com/PrefectHQ/fastmcp/pull/6097)
- Fix and quiet the triage alerts from 2026-11-02 by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6235](https://github.com/PrefectHQ/fastmcp/pull/6235)
- fix(tasks): send task IDs in routing headers by [@​eli-yip](https://github.com/eli-yip) in [#​5810](https://github.com/PrefectHQ/fastmcp/pull/5810)
- fix(middleware): treat an empty methods allowlist as "log nothing" by [@​gdut4140](https://github.com/gdut4140) in [#​5727](https://github.com/PrefectHQ/fastmcp/pull/5727)
- Fix namespaced file resource reads while preserving URI normalization by [@​BlueLi66](https://github.com/BlueLi66) in [#​5716](https://github.com/PrefectHQ/fastmcp/pull/5716)
- fix(server): pass typed list request messages to list middleware hooks by [@​BlueX888](https://github.com/BlueX888) in [#​5732](https://github.com/PrefectHQ/fastmcp/pull/5732)
- Stop OpenAPI end-to-end tests from hitting the network by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6249](https://github.com/PrefectHQ/fastmcp/pull/6249)
- fix(auth): Preserve browser consent bindings across concurrent OAuth approvals by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5541](https://github.com/PrefectHQ/fastmcp/pull/5541)
- fix(openapi): serialize header and path parameters per the simple style by [@​Harsh23Kashyap](https://github.com/Harsh23Kashyap) in [#​5091](https://github.com/PrefectHQ/fastmcp/pull/5091)
- Fall back to method and path when an OpenAPI name slugs to nothing by [@​asasemahmed](https://github.com/asasemahmed) in [#​5699](https://github.com/PrefectHQ/fastmcp/pull/5699)
- Convert OpenAPI 3.0 boolean exclusive bounds to numeric bounds by [@​asasemahmed](https://github.com/asasemahmed) in [#​5697](https://github.com/PrefectHQ/fastmcp/pull/5697)
- Rewrite component refs under not, if/then/else and similar keywords by [@​asasemahmed](https://github.com/asasemahmed) in [#​5698](https://github.com/PrefectHQ/fastmcp/pull/5698)
- fix(openapi): keep media-type $defs beside component schemas by [@​BlueX888](https://github.com/BlueX888) in [#​5709](https://github.com/PrefectHQ/fastmcp/pull/5709)
- Omit readOnly properties from OpenAPI tool input schemas by [@​AarnavNoble](https://github.com/AarnavNoble) in [#​5753](https://github.com/PrefectHQ/fastmcp/pull/5753)
- fix: name root self-references after the generated root class by [@​BlueX888](https://github.com/BlueX888) in [#​5671](https://github.com/PrefectHQ/fastmcp/pull/5671)
- fix(proxy): keep stale list results out of cache by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5521](https://github.com/PrefectHQ/fastmcp/pull/5521)
- Match Claude Code project keys by path on Windows by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​yongpange](https://github.com/yongpange) in [#​6240](https://github.com/PrefectHQ/fastmcp/pull/6240)
- Stop preloading the server before launching the Inspector by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​mikamikasuki](https://github.com/mikamikasuki) in [#​6241](https://github.com/PrefectHQ/fastmcp/pull/6241)
- Cull expired OAuth state from the default OAuthProxy file store by [@​zzstoatzz](https://github.com/zzstoatzz), [@​nosmile99](https://github.com/nosmile99), and [@​mheidari98](https://github.com/mheidari98) in [#​6242](https://github.com/PrefectHQ/fastmcp/pull/6242)
- Reuse the stdio session after a cancelled startup by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​mikamikasuki](https://github.com/mikamikasuki) in [#​6243](https://github.com/PrefectHQ/fastmcp/pull/6243)
- Match Gemini function responses to tool-use IDs by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​mikamikasuki](https://github.com/mikamikasuki) in [#​6244](https://github.com/PrefectHQ/fastmcp/pull/6244)
- Replace parent type keywords when an ArgTransform changes the type by [@​zzstoatzz](https://github.com/zzstoatzz), [@​syf2211](https://github.com/syf2211), [@​HootRock](https://github.com/HootRock), and [@​chrikrah](https://github.com/chrikrah) in [#​6246](https://github.com/PrefectHQ/fastmcp/pull/6246)
- Expire idle per-client rate limiters by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​mikamikasuki](https://github.com/mikamikasuki) in [#​6247](https://github.com/PrefectHQ/fastmcp/pull/6247)
- Match resource templates that spell out a literal query by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​arieleven](https://github.com/arieleven) in [#​6248](https://github.com/PrefectHQ/fastmcp/pull/6248)
- fix(openapi): preserve explicit null in nullable JSON body properties by [@​mumu-bird](https://github.com/mumu-bird) in [#​5633](https://github.com/PrefectHQ/fastmcp/pull/5633)
- Keep OpenAPI refs that point into a component schema intact by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​AarnavNoble](https://github.com/AarnavNoble) in [#​6245](https://github.com/PrefectHQ/fastmcp/pull/6245)
- fix(telemetry): record mounted and nested server spans as INTERNAL by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​sonmaximum](https://github.com/sonmaximum) in [#​6252](https://github.com/PrefectHQ/fastmcp/pull/6252)
- fix(client): identify as fastmcp in clientInfo by default by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6254](https://github.com/PrefectHQ/fastmcp/pull/6254)
- fix(openapi): keep both values when a query object property matches another parameter by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​alpaylan](https://github.com/alpaylan) in [#​6256](https://github.com/PrefectHQ/fastmcp/pull/6256)
- fix(middleware): map exception subclasses in ErrorHandlingMiddleware by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​zurmag](https://github.com/zurmag) in [#​6257](https://github.com/PrefectHQ/fastmcp/pull/6257)
- fix(client): report a lost connection instead of 'Client is not connected' by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​alex-feel](https://github.com/alex-feel) in [#​6259](https://github.com/PrefectHQ/fastmcp/pull/6259)
- fix(client): keep ClientGroup tool routes after the group context exits by [@​zzstoatzz](https://github.com/zzstoatzz), [@​hntrl](https://github.com/hntrl), and [@​YingzuoLiu](https://github.com/YingzuoLiu) in [#​6268](https://github.com/PrefectHQ/fastmcp/pull/6268)
- Accept structured skill metadata and allowed-tools lists by [@​jakekaplan](https://github.com/jakekaplan) in [#​6292](https://github.com/PrefectHQ/fastmcp/pull/6292)
- Preserve 4.1 skills type checks and resource-only manifest migration by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6305](https://github.com/PrefectHQ/fastmcp/pull/6305)
- Fix generated CLIs for tools named app, console or Client by [@​andreivince](https://github.com/andreivince) in [#​6056](https://github.com/PrefectHQ/fastmcp/pull/6056)
- Disambiguate colliding parameter flags in generate-cli by [@​mohitdixit02](https://github.com/mohitdixit02) and [@​andreivince](https://github.com/andreivince) in [#​6311](https://github.com/PrefectHQ/fastmcp/pull/6311)
- fix: preserve CRLF descriptions in generated CLI parameter help by [@​chris00234](https://github.com/chris00234) in [#​6075](https://github.com/PrefectHQ/fastmcp/pull/6075)
- fix(agentic): repair baseline collection verification by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6313](https://github.com/PrefectHQ/fastmcp/pull/6313)
- Reject non-positive event retention limits by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5535](https://github.com/PrefectHQ/fastmcp/pull/5535)
- fix(search): rebuild the BM25 index when the tool name set changes by [@​shi-felix](https://github.com/shi-felix) in [#​6282](https://github.com/PrefectHQ/fastmcp/pull/6282)
- fix(tools): keep hidden parameter factories out of visible defaults by [@​shi-felix](https://github.com/shi-felix) in [#​6283](https://github.com/PrefectHQ/fastmcp/pull/6283)
- fix(auth): accept private-use scheme redirect URIs in CIMD documents by [@​ColePBryan](https://github.com/ColePBryan) in [#​6335](https://github.com/PrefectHQ/fastmcp/pull/6335)
- Report the stop reason from sampling handlers when no tools are offered by [@​AarnavNoble](https://github.com/AarnavNoble) in [#​6342](https://github.com/PrefectHQ/fastmcp/pull/6342)
- fix(auth): preserve empty authority on custom-scheme redirect URIs by [@​codesphere-u](https://github.com/codesphere-u) and [@​alpaylan](https://github.com/alpaylan) in [#​6347](https://github.com/PrefectHQ/fastmcp/pull/6347)
- Declare items.type on multi-select list shorthand elicitations by [@​zzstoatzz](https://github.com/zzstoatzz), [@​shi-felix](https://github.com/shi-felix), [@​Vivek1898](https://github.com/Vivek1898), and [@​alpaylan](https://github.com/alpaylan) in [#​6361](https://github.com/PrefectHQ/fastmcp/pull/6361)
- Mask prompt handler exceptions when mask_error_details=True by [@​pratyu2h](https://github.com/pratyu2h) and [@​maxmorrish](https://github.com/maxmorrish) in [#​6277](https://github.com/PrefectHQ/fastmcp/pull/6277)
- Send {} for required OpenAPI object bodies with no fields by [@​rome-xi](https://github.com/rome-xi) and [@​wang1299](https://github.com/wang1299) in [#​6340](https://github.com/PrefectHQ/fastmcp/pull/6340)
- fix(client): keep the response cache inert on legacy connections ([#​6298](https://github.com/PrefectHQ/fastmcp/issues/6298)) by [@​xunWhale](https://github.com/xunWhale) and [@​alpaylan](https://github.com/alpaylan) in [#​6321](https://github.com/PrefectHQ/fastmcp/pull/6321)
- Encode manifest paths in download_skill URIs by [@​zzstoatzz](https://github.com/zzstoatzz), [@​67-luck](https://github.com/67-luck), and [@​BlueX888](https://github.com/BlueX888) in [#​6376](https://github.com/PrefectHQ/fastmcp/pull/6376)
- Fix skill discovery for nested supporting files by [@​mahekara28](https://github.com/mahekara28) and [@​alpaylan](https://github.com/alpaylan) in [#​6310](https://github.com/PrefectHQ/fastmcp/pull/6310)
- fix: keep additionalProperties on object schemas without a type by [@​bfs2021](https://github.com/bfs2021) and [@​alpaylan](https://github.com/alpaylan) in [#​6127](https://github.com/PrefectHQ/fastmcp/pull/6127)
- Fix hydration of mutually recursive schema types by [@​zzstoatzz](https://github.com/zzstoatzz), [@​wozhenbang2004](https://github.com/wozhenbang2004), and [@​alpaylan](https://github.com/alpaylan) in [#​6394](https://github.com/PrefectHQ/fastmcp/pull/6394)
- Isolate filesystem component construction failures by [@​PennEwan](https://github.com/PennEwan) in [#​6210](https://github.com/PrefectHQ/fastmcp/pull/6210)
- fix(config): apply tool transforms before tag filters on single servers by [@​AP24110011695](https://github.com/AP24110011695) and [@​arjunprabhulal](https://github.com/arjunprabhulal) in [#​6214](https://github.com/PrefectHQ/fastmcp/pull/6214)
- fix(tools): isolate mutable defaults in transformed tool calls by [@​priy-anshugupta](https://github.com/priy-anshugupta) in [#​6184](https://github.com/PrefectHQ/fastmcp/pull/6184)
- fix(openapi): make resource templates for non-identifier path parameters readable by [@​AP24110011695](https://github.com/AP24110011695) and [@​alpaylan](https://github.com/alpaylan) in [#​6187](https://github.com/PrefectHQ/fastmcp/pull/6187)
- fix(json-schema): keep tools/list working when a root $ref resolves to a boolean schema by [@​AP24110011695](https://github.com/AP24110011695) and [@​alpaylan](https://github.com/alpaylan) in [#​6185](https://github.com/PrefectHQ/fastmcp/pull/6185)
- Document that a custom httpx_client_factory owns its timeout by [@​asasemahmed](https://github.com/asasemahmed) and [@​himanshuchawla0807-gif](https://github.com/himanshuchawla0807-gif) in [#​5923](https://github.com/PrefectHQ/fastmcp/pull/5923)
- Stop PingMiddleware erroring when the client has no back-channel by [@​asasemahmed](https://github.com/asasemahmed) in [#​5901](https://github.com/PrefectHQ/fastmcp/pull/5901)
- Store sessionless client log levels on the connection by [@​asasemahmed](https://github.com/asasemahmed) in [#​5899](https://github.com/PrefectHQ/fastmcp/pull/5899)
- Send the whole body when a body $ref with siblings cannot be flattened by [@​asasemahmed](https://github.com/asasemahmed) in [#​5893](https://github.com/PrefectHQ/fastmcp/pull/5893)
- Pass the transport to the fastmcp-remote proxy so it forwards server-initiated requests by [@​asasemahmed](https://github.com/asasemahmed) in [#​5885](https://github.com/PrefectHQ/fastmcp/pull/5885)
- fix(cli): forward path, stateless and log-level to SDK MCPServer servers by [@​BlueX888](https://github.com/BlueX888) in [#​5870](https://github.com/PrefectHQ/fastmcp/pull/5870)
- fix(client): preserve a caller-provided OAuth httpx client factory when verify is set by [@​BlueX888](https://github.com/BlueX888) in [#​5849](https://github.com/PrefectHQ/fastmcp/pull/5849)
- fix(prompts): resolve postponed annotations when rendering by [@​67-luck](https://github.com/67-luck) and [@​BlueX888](https://github.com/BlueX888) in [#​5803](https://github.com/PrefectHQ/fastmcp/pull/5803)
- fix(openapi): hydrate data for wrapped non-object responses with validate_output=False by [@​nosmile99](https://github.com/nosmile99) and [@​BlueX888](https://github.com/BlueX888) in [#​5784](https://github.com/PrefectHQ/fastmcp/pull/5784)
- Carry prompt argument titles through PromptArgument and proxies by [@​AarnavNoble](https://github.com/AarnavNoble) in [#​5749](https://github.com/PrefectHQ/fastmcp/pull/5749)
- Relay the client's sampling result unchanged through proxies by [@​AarnavNoble](https://github.com/AarnavNoble) in [#​5747](https://github.com/PrefectHQ/fastmcp/pull/5747)
- fix(tasks): let async-generator tools run as background tasks by [@​gdut4140](https://github.com/gdut4140) in [#​5730](https://github.com/PrefectHQ/fastmcp/pull/5730)
- Honor Code Mode search limits after BM25 ranking by [@​Winoren](https://github.com/Winoren) and [@​BlueX888](https://github.com/BlueX888) in [#​5715](https://github.com/PrefectHQ/fastmcp/pull/5715)
- Keep the client timeout from capping the HTTP read timeout by [@​asasemahmed](https://github.com/asasemahmed) in [#​5690](https://github.com/PrefectHQ/fastmcp/pull/5690)
- fix(auth): avoid rereading failed authorization forms by [@​pei711](https://github.com/pei711) and [@​JordanAfolabiLaw](https://github.com/JordanAfolabiLaw) in [#​5570](https://github.com/PrefectHQ/fastmcp/pull/5570)
- Fix unbounded Apps dev log retention by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5549](https://github.com/PrefectHQ/fastmcp/pull/5549)
- Bound error-stat cardinality in ErrorHandlingMiddleware by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5537](https://github.com/PrefectHQ/fastmcp/pull/5537)
- fix(auth): preserve GitHub sessions across transient verification failures by [@​sui-ni2](https://github.com/sui-ni2) and [@​benjohngf](https://github.com/benjohngf) in [#​4881](https://github.com/PrefectHQ/fastmcp/pull/4881)
- Expect the extended read timeout in the factory timeout test by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6395](https://github.com/PrefectHQ/fastmcp/pull/6395)
- Accept intake's contribution route in the triage review check by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6405](https://github.com/PrefectHQ/fastmcp/pull/6405)
- fix(auth): keep revocation ownership separate from user identity by [@​zzstoatzz](https://github.com/zzstoatzz), [@​BlueX888](https://github.com/BlueX888), and [@​67-luck](https://github.com/67-luck) in [#​6404](https://github.com/PrefectHQ/fastmcp/pull/6404)
- Authenticate and pin the schema download in the OpenAPI performance test by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6177](https://github.com/PrefectHQ/fastmcp/pull/6177)
- Use renamed argument names in transformed tool validation errors by [@​kartikmadan11](https://github.com/kartikmadan11) in [#​6158](https://github.com/PrefectHQ/fastmcp/pull/6158)
- Preserve invalid defaults for omitted JSON Schema fields by [@​totoyang](https://github.com/totoyang) and [@​alpaylan](https://github.com/alpaylan) in [#​6133](https://github.com/PrefectHQ/fastmcp/pull/6133)
- Validate positional array prefixes separately from their tails by [@​PennEwan](https://github.com/PennEwan) and [@​alpaylan](https://github.com/alpaylan) in [#​6146](https://github.com/PrefectHQ/fastmcp/pull/6146)
- Fix resource templates with multiple query expressions by [@​xiong-wei1](https://github.com/xiong-wei1) in [#​6061](https://github.com/PrefectHQ/fastmcp/pull/6061)
- fix(json-schema): decode RFC 6901 escapes when extracting $defs names by [@​AP24110011695](https://github.com/AP24110011695) and [@​RS-ITACHI](https://github.com/RS-ITACHI) in [#​6180](https://github.com/PrefectHQ/fastmcp/pull/6180)
- Drop backend serverInfo from proxied tool and prompt results by [@​asasemahmed](https://github.com/asasemahmed) in [#​5911](https://github.com/PrefectHQ/fastmcp/pull/5911)
- fix(telemetry): record exceptions once per span by [@​DMomplaisir](https://github.com/DMomplaisir) in [#​5861](https://github.com/PrefectHQ/fastmcp/pull/5861)
- fix(resources): honor Pydantic field aliases in resource templates by [@​anh-nguyenn](https://github.com/anh-nguyenn) and [@​BlueX888](https://github.com/BlueX888) in [#​6054](https://github.com/PrefectHQ/fastmcp/pull/6054)
- fix(auth): authorize hashed app-tool names and synthesized Prefab resources by [@​BlueX888](https://github.com/BlueX888) in [#​5841](https://github.com/PrefectHQ/fastmcp/pull/5841)
- fix(server): serialize structured prompt arguments before middleware by [@​67-luck](https://github.com/67-luck) and [@​BlueX888](https://github.com/BlueX888) in [#​5805](https://github.com/PrefectHQ/fastmcp/pull/5805)
- fix(client): stop validating version-pinned call_tool results against the highest version's schema by [@​gdut4140](https://github.com/gdut4140) in [#​5725](https://github.com/PrefectHQ/fastmcp/pull/5725)
- Preserve typed additional properties in hydrated tool results by [@​PrathmeshPawar2110](https://github.com/PrathmeshPawar2110), [@​yannvr](https://github.com/yannvr), [@​BlueX888](https://github.com/BlueX888), and [@​hulkbig](https://github.com/hulkbig) in [#​5779](https://github.com/PrefectHQ/fastmcp/pull/5779)
- fix(server): serve Mcp-Param validation from a wire-schema cache by [@​akushonkamen](https://github.com/akushonkamen) and [@​anormang1992](https://github.com/anormang1992) in [#​5666](https://github.com/PrefectHQ/fastmcp/pull/5666)
- Fix [#​5563](https://github.com/PrefectHQ/fastmcp/issues/5563): OTel: prefer `AccessToken.subject` over `client_id` for `enduser.id` by [@​nandanadileep](https://github.com/nandanadileep) and [@​omikader](https://github.com/omikader) in [#​5565](https://github.com/PrefectHQ/fastmcp/pull/5565)
- fix: decode URI fragments before schema reference hydration by [@​HuaTNA](https://github.com/HuaTNA) in [#​5561](https://github.com/PrefectHQ/fastmcp/pull/5561)
- Fix [#​5559](https://github.com/PrefectHQ/fastmcp/issues/5559): Configuration helpers still discard explicit port=0 by [@​nandanadileep](https://github.com/nandanadileep) and [@​dream-star-end](https://github.com/dream-star-end) in [#​5562](https://github.com/PrefectHQ/fastmcp/pull/5562)
- Preserve or explicitly reject images in sampling tool results by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5554](https://github.com/PrefectHQ/fastmcp/pull/5554)
- fix(client): close partial group connections on cancellation by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5519](https://github.com/PrefectHQ/fastmcp/pull/5519)
- fix(cli): resolve config paths beside fastmcp.json by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5511](https://github.com/PrefectHQ/fastmcp/pull/5511)
- fix(tools): reject non-finite floats at the JSON serialization boundary by [@​akushonkamen](https://github.com/akushonkamen) and [@​YogaSakti](https://github.com/YogaSakti) in [#​5665](https://github.com/PrefectHQ/fastmcp/pull/5665)
- Make the partial-construction stdio test fast and strict by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6433](https://github.com/PrefectHQ/fastmcp/pull/6433)
- test: isolate consent checks and preserve OpenAPI download budget by [@​Larry-Labs](https://github.com/Larry-Labs) in [#​5664](https://github.com/PrefectHQ/fastmcp/pull/5664)
- fix(client): validate accepted elicitation content by [@​mikamikasuki](https://github.com/mikamikasuki) in [#​5513](https://github.com/PrefectHQ/fastmcp/pull/5513)
- fix: `session: UserSession` on a resource or resource template fails at registration by [@​xixi-box](https://github.com/xixi-box) and [@​arjunprabhulal](https://github.com/arjunprabhulal) in [#​6198](https://github.com/PrefectHQ/fastmcp/pull/6198)
- fix(cli): parse JSON for non-string unions and accept null in call args by [@​Christian-Sidak](https://github.com/Christian-Sidak) and [@​BHAWESHBHASKAR](https://github.com/BHAWESHBHASKAR) in [#​6012](https://github.com/PrefectHQ/fastmcp/pull/6012)
- Forward URL-mode elicitation through the proxy by [@​Kushal9889](https://github.com/Kushal9889) in [#​5980](https://github.com/PrefectHQ/fastmcp/pull/5980)
- Let context list calls run outside a request by [@​asasemahmed](https://github.com/asasemahmed) in [#​5903](https://github.com/PrefectHQ/fastmcp/pull/5903)
- Keep ResourceLink content on prompt messages by [@​asasemahmed](https://github.com/asasemahmed) in [#​5897](https://github.com/PrefectHQ/fastmcp/pull/5897)
- Accept WorkOS tokens when required_scopes is set by [@​asasemahmed](https://github.com/asasemahmed) in [#​5881](https://github.com/PrefectHQ/fastmcp/pull/5881)
- fix(openapi): JSON-encode object form fields in urlencoded request bodies by [@​BlueX888](https://github.com/BlueX888) in [#​5851](https://github.com/PrefectHQ/fastmcp/pull/5851)
- Keep task config and execution on transformed tools by [@​Winoren](https://github.com/Winoren) and [@​BlueX888](https://github.com/BlueX888) in [#​5793](https://github.com/PrefectHQ/fastmcp/pull/5793)
- fix(proxy): relay non-object tool results across MCP versions by [@​Lpk124](https://github.com/Lpk124) and [@​maxime-gautre](https://github.com/maxime-gautre) in [#​5763](https://github.com/PrefectHQ/fastmcp/pull/5763)
- Fix [#​5706](https://github.com/PrefectHQ/fastmcp/issues/5706): Resource template with a level-3 operator such as {\&size} is listed but can never be read by [@​nandanadileep](https://github.com/nandanadileep) and [@​chrikrah](https://github.com/chrikrah) in [#​5711](https://github.com/PrefectHQ/fastmcp/pull/5711)
- fix(server): fall back to the highest authorized version on direct lookup by [@​gshklovs](https://github.com/gshklovs) and [@​CoralGarden52](https://github.com/CoralGarden52) in [#​5169](https://github.com/PrefectHQ/fastmcp/pull/5169)
- Resolve deferred defaults by alias and keep unverified GitHub scopes out of the cache by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6417](https://github.com/PrefectHQ/fastmcp/pull/6417)
- Drop unpinned ping from auth example clients by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​stephaneberle9](https://github.com/stephaneberle9) in [#​6418](https://github.com/PrefectHQ/fastmcp/pull/6418)
- Call a re-versioned tool by its transformed version by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​MayankTamakuwala](https://github.com/MayankTamakuwala) in [#​6419](https://github.com/PrefectHQ/fastmcp/pull/6419)
- Apply logging/setLevel to mounted servers over HTTP sessions by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​alpaylan](https://github.com/alpaylan) in [#​6421](https://github.com/PrefectHQ/fastmcp/pull/6421)
- Reconnect StdioTransport when reused on a different event loop by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​dsfaccini](https://github.com/dsfaccini) in [#​6425](https://github.com/PrefectHQ/fastmcp/pull/6425)
- Forward list-changed notifications through ProxyClient by [@​zzstoatzz](https://github.com/zzstoatzz), [@​chrikrah](https://github.com/chrikrah), and [@​ldlda](https://github.com/ldlda) in [#​6426](https://github.com/PrefectHQ/fastmcp/pull/6426)
- Report JSON-RPC error codes and request ids on telemetry spans by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6427](https://github.com/PrefectHQ/fastmcp/pull/6427)
- Stop the SSE endpoint sending a second response after its stream by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​JonZeolla](https://github.com/JonZeolla) in [#​6431](https://github.com/PrefectHQ/fastmcp/pull/6431)
- Bypass proxy env when fastmcp dev apps lists tools by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​AlyLanier](https://github.com/AlyLanier) in [#​6422](https://github.com/PrefectHQ/fastmcp/pull/6422)
- fix(context): allow background task logging without a session by [@​67-luck](https://github.com/67-luck) and [@​BlueX888](https://github.com/BlueX888) in [#​5806](https://github.com/PrefectHQ/fastmcp/pull/5806)
- fix(skills): follow empty pagination cursors when listing skills by [@​67-luck](https://github.com/67-luck) in [#​6473](https://github.com/PrefectHQ/fastmcp/pull/6473)
- Fix the CLI .js deprecation warning and a dead error-message link by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6453](https://github.com/PrefectHQ/fastmcp/pull/6453)
- Ignore stray ResourceWarnings in CLI OAuth warning checks by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6474](https://github.com/PrefectHQ/fastmcp/pull/6474)
- Accept a sync tool timeout that fires before its thread starts by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6475](https://github.com/PrefectHQ/fastmcp/pull/6475)
- Drop GC ResourceWarnings at the assertion in CLI OAuth warning checks by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6481](https://github.com/PrefectHQ/fastmcp/pull/6481)
##### Docs 📚
- Consolidate skills docs into one Skills over MCP page by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6049](https://github.com/PrefectHQ/fastmcp/pull/6049)
- Rewrite skills docs around Skill and SkillCatalogProvider by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6066](https://github.com/PrefectHQ/fastmcp/pull/6066)
- Tighten skills docs examples by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6070](https://github.com/PrefectHQ/fastmcp/pull/6070)
- Shorten the skills docs page by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6079](https://github.com/PrefectHQ/fastmcp/pull/6079)
- Badge the skills page as 4.2.0 by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6083](https://github.com/PrefectHQ/fastmcp/pull/6083)
- Consolidate skills examples around verified Skill values by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6093](https://github.com/PrefectHQ/fastmcp/pull/6093)
- docs: add v4.2.0a1 changelog entries by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6105](https://github.com/PrefectHQ/fastmcp/pull/6105)
- Add MCP tool annotations to get_file example by [@​gl1tchdust](https://github.com/gl1tchdust) in [#​5976](https://github.com/PrefectHQ/fastmcp/pull/5976)
- Fix dead links in current documentation by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​Wilson0511](https://github.com/Wilson0511) in [#​6142](https://github.com/PrefectHQ/fastmcp/pull/6142)
- docs: rename Horizon to FastMCP Gateway in current docs by [@​parkedwards](https://github.com/parkedwards) in [#​5653](https://github.com/PrefectHQ/fastmcp/pull/5653)
- Document strict-mode handling of undeclared OpenAPI arguments by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6169](https://github.com/PrefectHQ/fastmcp/pull/6169)
- docs: add v4.2.0a2 changelog entries by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6224](https://github.com/PrefectHQ/fastmcp/pull/6224)
- docs(settings): explain what FASTMCP_DEBUG actually does by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​ianw](https://github.com/ianw) in [#​6255](https://github.com/PrefectHQ/fastmcp/pull/6255)
- docs: pass referrers on outbound links, add organization schema and page descriptions by [@​madureira-gabriel](https://github.com/madureira-gabriel) in [#​6287](https://github.com/PrefectHQ/fastmcp/pull/6287)
- docs: add v4.2.0a3 changelog entries by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6306](https://github.com/PrefectHQ/fastmcp/pull/6306)
- docs: preserve docs routing metadata and release guidance by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6320](https://github.com/PrefectHQ/fastmcp/pull/6320)
- Correct how tools docs describe bytes return values by [@​DivyaNarahari97](https://github.com/DivyaNarahari97) in [#​6275](https://github.com/PrefectHQ/fastmcp/pull/6275)
- docs: add v4.2.0a4 changelog entries by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6388](https://github.com/PrefectHQ/fastmcp/pull/6388)
- docs: correct the server pages against main by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6406](https://github.com/PrefectHQ/fastmcp/pull/6406)
- docs: correct the client pages against main by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6407](https://github.com/PrefectHQ/fastmcp/pull/6407)
- docs: correct the apps pages against main by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6409](https://github.com/PrefectHQ/fastmcp/pull/6409)
- docs: correct getting started, CLI and deployment pages against main by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6410](https://github.com/PrefectHQ/fastmcp/pull/6410)
- docs: correct the integration pages against main by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6408](https://github.com/PrefectHQ/fastmcp/pull/6408)
- docs: label the current docs version v4 by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6411](https://github.com/PrefectHQ/fastmcp/pull/6411)
- docs: explain root_path for SSE behind a prefix-stripping proxy by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​KnittelK](https://github.com/KnittelK) in [#​6215](https://github.com/PrefectHQ/fastmcp/pull/6215)
- docs: keep the search shortcut hint off the button edge by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6413](https://github.com/PrefectHQ/fastmcp/pull/6413)
- docs: clarify tool errors and middleware transformations by [@​rasokiwayami](https://github.com/rasokiwayami) and [@​jeffsawatzky](https://github.com/jeffsawatzky) in [#​5566](https://github.com/PrefectHQ/fastmcp/pull/5566)
- docs: server-level component changes don't notify clients by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​Ngtvu1752](https://github.com/Ngtvu1752) in [#​6423](https://github.com/PrefectHQ/fastmcp/pull/6423)
- docs: badge 4.2.0 features and add the 4.1 → 4.2 upgrade guide by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6436](https://github.com/PrefectHQ/fastmcp/pull/6436)
- Pre-4.2 polish: stale docs, examples and docstrings by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6452](https://github.com/PrefectHQ/fastmcp/pull/6452)
- docs: add v4.2.0a5 changelog entries by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6469](https://github.com/PrefectHQ/fastmcp/pull/6469)
- Update docs logo to new FastMCP wordmark by [@​ninadewane](https://github.com/ninadewane) in [#​6462](https://github.com/PrefectHQ/fastmcp/pull/6462)
- docs: add v4.2.0 changelog entries by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6482](https://github.com/PrefectHQ/fastmcp/pull/6482)
##### Examples & Contrib 💡
- Register templated MCPMixin resources as resource templates by [@​asasemahmed](https://github.com/asasemahmed) in [#​5895](https://github.com/PrefectHQ/fastmcp/pull/5895)
- Keep structured content on bulk tool results by [@​asasemahmed](https://github.com/asasemahmed) in [#​5917](https://github.com/PrefectHQ/fastmcp/pull/5917)
##### Dependencies 📦
- build(deps): bump mcp from 1.28.1 to 1.30.0 in /examples/testing_demo in the uv group across 1 directory by [@​dependabot](https://github.com/dependabot)\[bot] in [#​5990](https://github.com/PrefectHQ/fastmcp/pull/5990)
##### Other Changes 🦾
- chore(deps): Update dependency ruff to v0.17.2 by [@​prefect-renovate](https://github.com/prefect-renovate)\[bot] in [#​6233](https://github.com/PrefectHQ/fastmcp/pull/6233)
- chore(deps): Pin dependencies by [@​prefect-renovate](https://github.com/prefect-renovate)\[bot] in [#​6064](https://github.com/PrefectHQ/fastmcp/pull/6064)
- Require patched joserfc by [@​zzstoatzz](https://github.com/zzstoatzz) in [#​6371](https://github.com/PrefectHQ/fastmcp/pull/6371)
- Keep colon-terminated prose lines in docstring tool descriptions by [@​zzstoatzz](https://github.com/zzstoatzz), [@​jlx1999s](https://github.com/jlx1999s), and [@​ptrailblazer89](https://github.com/ptrailblazer89) in [#​6372](https://github.com/PrefectHQ/fastmcp/pull/6372)
- chore(deps): Update dependency oauthlib to v4.0.1 \[SECURITY] by [@​prefect-renovate](https://github.com/prefect-renovate)\[bot] in [#​6367](https://github.com/PrefectHQ/fastmcp/pull/6367)
- chore(deps): Update dependency node to v26 by [@​prefect-renovate](https://github.com/prefect-renovate)\[bot] in [#​6234](https://github.com/PrefectHQ/fastmcp/pull/6234)
- chore(deps): Update dependency prefect to v3.9.1 by [@​prefect-renovate](https://github.com/prefect-renovate)\[bot] in [#​6232](https://github.com/PrefectHQ/fastmcp/pull/6232)
- Keep completion from suggesting values for hidden references by [@​zzstoatzz](https://github.com/zzstoatzz) and [@​pvliesdonk](https://github.com/pvliesdonk) in [#​6450](https://github.com/PrefectHQ/fastmcp/pull/6450)
</details>
<details>
<summary>New contributors</summary>
- [@​adam-zovos](https://github.com/adam-zovos) made their first contribution in [#​6039](https://github.com/PrefectHQ/fastmcp/pull/6039)
- [@​fprieto14](https://github.com/fprieto14) made their first contribution in [#​6077](https://github.com/PrefectHQ/fastmcp/pull/6077)
- [@​keremoktener](https://github.com/keremoktener) made their first contribution in [#​6077](https://github.com/PrefectHQ/fastmcp/pull/6077)
- [@​gl1tchdust](https://github.com/gl1tchdust) made their first contribution in [#​5976](https://github.com/PrefectHQ/fastmcp/pull/5976)
- [@​Yash-Tripath1](https://github.com/Yash-Tripath1) made their first contribution in [#​6104](https://github.com/PrefectHQ/fastmcp/pull/6104)
- [@​ianw](https://github.com/ianw) made their first contribution in [#​6255](https://github.com/PrefectHQ/fastmcp/pull/6255)
- [@​hntrl](https://github.com/hntrl) made their first contribution in [#​6268](https://github.com/PrefectHQ/fastmcp/pull/6268)
- [@​YingzuoLiu](https://github.com/YingzuoLiu) made their first contribution in [#​6268](https://github.com/PrefectHQ/fastmcp/pull/6268)
- [@​mohitdixit02](https://github.com/mohitdixit02) made their first contribution in [#​6311](https://github.com/PrefectHQ/fastmcp/pull/6311)
- [@​chris00234](https://github.com/chris00234) made their first contribution in [#​6075](https://github.com/PrefectHQ/fastmcp/pull/6075)
- [@​67-luck](https://github.com/67-luck) made their first contribution in [#​6376](https://github.com/PrefectHQ/fastmcp/pull/6376)
- [@​mahekara28](https://github.com/mahekara28) made their first contribution in [#​6310](https://github.com/PrefectHQ/fastmcp/pull/6310)
- [@​DMomplaisir](https://github.com/DMomplaisir) made their first contribution in [#​5861](https://github.com/PrefectHQ/fastmcp/pull/5861)
- [@​KnittelK](https://github.com/KnittelK) made their first contribution in [#​6215](https://github.com/PrefectHQ/fastmcp/pull/6215)
- [@​kartikmadan11](https://github.com/kartikmadan11) made their first contribution in [#​6158](https://github.com/PrefectHQ/fastmcp/pull/6158)
- [@​totoyang](https://github.com/totoyang) made their first contribution in [#​6133](https://github.com/PrefectHQ/fastmcp/pull/6133)
- [@​xiong-wei1](https://github.com/xiong-wei1) made their first contribution in [#​6061](https://github.com/PrefectHQ/fastmcp/pull/6061)
- [@​anh-nguyenn](https://github.com/anh-nguyenn) made their first contribution in [#​6054](https://github.com/PrefectHQ/fastmcp/pull/6054)
- [@​yannvr](https://github.com/yannvr) made their first contribution in [#​5779](https://github.com/PrefectHQ/fastmcp/pull/5779)
- [@​akushonkamen](https://github.com/akushonkamen) made their first contribution in [#​5666](https://github.com/PrefectHQ/fastmcp/pull/5666)
- [@​anormang1992](https://github.com/anormang1992) made their first contribution in [#​5666](https://github.com/PrefectHQ/fastmcp/pull/5666)
- [@​jeffsawatzky](https://github.com/jeffsawatzky) made their first contribution in [#​5566](https://github.com/PrefectHQ/fastmcp/pull/5566)
- [@​rasokiwayami](https://github.com/rasokiwayami) made their first contribution in [#​5566](https://github.com/PrefectHQ/fastmcp/pull/5566)
- [@​omikader](https://github.com/omikader) made their first contribution in [#​5565](https://github.com/PrefectHQ/fastmcp/pull/5565)
- [@​dream-star-end](https://github.com/dream-star-end) made their first contribution in [#​5562](https://github.com/PrefectHQ/fastmcp/pull/5562)
- [@​YogaSakti](https://github.com/YogaSakti) made their first contribution in [#​5665](https://github.com/PrefectHQ/fastmcp/pull/5665)
- [@​Pyhroff](https://github.com/Pyhroff) made their first contribution in [#​6063](https://github.com/PrefectHQ/fastmcp/pull/6063)
- [@​Larry-Labs](https://github.com/Larry-Labs) made their first contribution in [#​5664](https://github.com/PrefectHQ/fastmcp/pull/5664)
- [@​xixi-box](https://github.com/xixi-box) made their first contribution in [#​6198](https://github.com/PrefectHQ/fastmcp/pull/6198)
- [@​BHAWESHBHASKAR](https://github.com/BHAWESHBHASKAR) made their first contribution in [#​6012](https://github.com/PrefectHQ/fastmcp/pull/6012)
- [@​Christian-Sidak](https://github.com/Christian-Sidak) made their first contribution in [#​6012](https://github.com/PrefectHQ/fastmcp/pull/6012)
- [@​Kushal9889](https://github.com/Kushal9889) made their first contribution in [#​5980](https://github.com/PrefectHQ/fastmcp/pull/5980)
- [@​Abhi2939](https://github.com/Abhi2939) made their first contribution in [#​5969](https://github.com/PrefectHQ/fastmcp/pull/5969)
- [@​ezz3r](https://github.com/ezz3r) made their first contribution in [#​5969](https://github.com/PrefectHQ/fastmcp/pull/5969)
- [@​Lpk124](https://github.com/Lpk124) made their first contribution in [#​5763](https://github.com/PrefectHQ/fastmcp/pull/5763)
- [@​maxime-gautre](https://github.com/maxime-gautre) made their first contribution in [#​5763](https://github.com/PrefectHQ/fastmcp/pull/5763)
- [@​gshklovs](https://github.com/gshklovs) made their first contribution in [#&#…
Description
json_schema_to_typereturned a broken type for any recursive object schema that carries a roottitle: validating the result withTypeAdapterraisedPydanticUserError: ... is not fully defined. Untitled recursive schemas already worked; the titled form — the one most schema producers emit — did not.Why: a
{"$ref": "#"}reference resolves to the root schema, whose generated class is named after the roottitle(falling back toRoot). Theref == "#"branch in_convert_schema(fastmcp_slim/fastmcp/utilities/json_schema_type.py:766onmain) built the forward reference from the ref node instead. A bare{"$ref": "#"}node has notitle, so the forward reference was always namedRootwhile the class was named e.g.Node, and the reference never resolved. The mismatch hit every generic reference position (anyOf, arrayitems) and all fields of schemas that build a Pydantic model (properties+additionalProperties: true), which go through the generic handling rather than_build_dataclass's direct self-reference check.Changes:
_Conversionnow tracksroot_class_name, the sanitized name of the class generated for the root schema — the explicitnameoverride, else the roottitle, elseRoot— the same derivation_create_dataclass/_create_pydantic_modelalready use.ref == "#"branch returnsForwardRef(root_class_name), so every reference position targets the class that will actually be generated. This also fixes the case where an explicitname=override makes the class name differ from the roottitle.TestCircularReferencescover a titled root self-referenced viaanyOf, via arrayitems, via a direct property on a schema withadditionalProperties: true(the Pydantic-model branch), and with an explicitname=override.typelist is converted from the root schema itself, so["object", "null"]roots keep the root identity and name that"#"references resolve to; a non-string roottitleis ignored instead of crashing the conversion; and_build_dataclass's direct"#"shortcuts route throughroot_class_name, so a direct root reference on a nested class no longer points at the nested class itself.Testing:
mainwithPydanticUserError: ... is not fully definedand pass with this change:uv run pytest tests/utilities/json_schema_type/test_advanced.py -k self_reference→6 passed, 72 deselecteduv run pytest tests/utilities/json_schema_type/→419 passed, 1 skippeduv run pytest tests/utilities/ tests/client/test_elicitation.py tests/client/test_elicitation_enums.py→1313 passed, 1 skipped(elicitation builds its response type throughjson_schema_to_type_adapter)uv run prek run --all-files→ validate-pyproject, prettier, ruff check, ruff format, ty check, gitleaks, codespell all Passed (loq reports pre-existing, unenforced repo-wide size findings).Fixes #5669
Contribution type
Checklist
uv run prek run --all-filesand all checks pass