fastmcp/docs/servers
Jeremiah Lowin edb9d5ab65
Refactor prompt behavior and add meta support (#2600)
* feat: add PromptResult as canonical internal type for prompts

Applies the same pattern as ResourceContent to prompts. PromptResult
wraps messages with description and meta. Public render() can return
either list[PromptMessage] or PromptResult (backwards compatible),
while private _render() always returns PromptResult.

* docs: fix incorrect PromptResult return type in example

* feat: add PromptResult canonical type with meta support

* fix: address PR #2600 review comments

Fixes test failures and code quality issues identified in PR review:

- Update 3 tests in test_server_interactions.py to access PromptResult.messages[0] instead of indexing directly
- Fix ProxyPromptManager to preserve meta field when converting GetPromptResult to PromptResult
- Fix ProxyPrompt.render() to return PromptResult instead of deprecated list[PromptMessage], preventing fastmcp tags from leaking into runtime meta
- Fix mask_error_details initialization to respect explicit False values
- Fix exception re-raising to preserve tracebacks (use bare raise instead of raise e)
- Update testing documentation to use pytest -n auto for parallel execution
2025-12-13 12:08:41 -05:00
..
auth Fix RFC 8414 path-aware authorization server metadata discovery (#2533) 2025-12-03 19:16:59 -05:00
composition.mdx 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
context.mdx [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
elicitation.mdx SEP-1330 enum schema support (#2549) 2025-12-09 12:22:30 -05:00
icons.mdx Fix version number in VersionBadge: change 2.14.0 to 2.13.0 (#2491) 2025-11-26 16:51:18 -05:00
logging.mdx Also push client messages (info/warn/debug) to server debug log (#2063) 2025-10-14 11:38:26 -07:00
middleware.mdx feat: handle error from the initialize middleware (#2531) 2025-12-10 15:51:51 -05:00
progress.mdx Update parameter capitalization 2025-06-28 15:06:16 -04:00
prompts.mdx Refactor prompt behavior and add meta support (#2600) 2025-12-13 12:08:41 -05:00
proxy.mdx 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
resources.mdx Refactor resource behavior and add meta support (#2598) 2025-12-13 11:45:38 -05:00
sampling.mdx Move sampling fallback handler docs to server section (#2163) 2025-10-21 10:02:11 -04:00
server.mdx 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
storage-backends.mdx Add maturity warnings for py-key-value backends 2025-10-29 21:43:31 +00:00
tasks.mdx docs: simplify Docket tip wording (#2599) 2025-12-11 21:08:37 -05:00
tools.mdx [Draft] Add documentation for read-only tool patterns (#2536) 2025-12-09 13:47:29 -05:00