fastmcp/tests/server/transforms
Jeremiah Lowin baced6281c
Always emit a tool title, derived from name when unset (#4694)
* Always emit a tool title, derived from name when unset

Some MCP clients (e.g. ChatGPT) drop tools with no `title` instead of
falling back to `name` for display as the spec allows. Deriving a
default title in Tool.to_mcp_tool() fixes this for every tool built on
top of it, including the search-transform, code-mode, and session
proxy tools that never set one explicitly.

Fixes #4414

* Derive fallback title from the overridden name, document it

Addresses Codex review on #4694.

* Resolve title precedence from effective overrides

* Normalize mapping annotations before deriving the title
2026-07-28 17:30:20 -04:00
..
test_catalog.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_model_visibility_boundary.py Apply app visibility where no host can (#4692) 2026-07-28 16:12:38 -04:00
test_prompts_as_tools.py Add PromptsAsTools transform (#2946) 2026-01-19 18:19:53 -05:00
test_resources_as_tools.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_search.py Always emit a tool title, derived from name when unset (#4694) 2026-07-28 17:30:20 -04:00
test_visibility.py Align server component docs (#4260) 2026-07-19 14:23:36 -04:00