fastmcp/docs
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
..
.cursor/rules Clean up parameter documentation 2025-06-22 20:59:53 -04:00
assets Support custom server name, icons, and link in OAuth Proxy consent page (#2135) 2025-10-18 11:49:26 -04:00
clients Rewrite background tasks documentation (#2567) 2025-12-06 19:28:14 -05:00
community Update docs (#2094) 2025-10-14 16:38:21 -07:00
css Update VersionBadge to use Mintlify native Badge component (#2571) 2025-12-06 21:23:53 -05:00
deployment SEP-1699: Add SSE polling support with EventStore (#2564) 2025-12-09 09:55:51 -05:00
development Add v2.14.0 upgrade guide (#2565) 2025-12-06 11:40:42 -05:00
getting-started Pin Cyclopts to v4.0.0 + compliance note (#2354) 2025-11-03 18:37:12 -05:00
integrations Add supabase docs (#2030) 2025-12-04 18:25:57 -05:00
patterns docs: clarify pytest-asyncio dependency and asyncio mode configuration (#2399) 2025-11-15 10:34:29 -05:00
public/schemas/fastmcp.json chore: Update fastmcp.json schema (#1955) 2025-09-29 20:12:24 -04:00
python-sdk chore: Update SDK documentation (#2592) 2025-12-11 21:43:51 -05:00
servers Refactor prompt behavior and add meta support (#2600) 2025-12-13 12:08:41 -05:00
snippets Update VersionBadge to use Mintlify native Badge component (#2571) 2025-12-06 21:23:53 -05:00
tutorials Remove trailing slashes from MCP endpoint URLs in docs (#2277) 2025-10-27 10:36:47 -04:00
.ccignore Add comprehensive OAuth 2.1 authentication system with WorkOS integration (#1327) 2025-08-01 17:06:55 -04:00
changelog.mdx 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
docs.json chore: Update SDK documentation (#2517) 2025-12-09 21:07:20 -05:00
updates.mdx Stage 2.13.0 updates (#2252) 2025-10-25 08:52:21 -04:00