fastmcp/examples
Jeremiah Lowin bbf3050ba7
Improve ToolResult and structured output documentation (#2349)
- Restructured confusing sections: 'Object-like Results' → 'Dictionaries and Objects', 'Non-object Results' → 'Primitives and Collections', 'Complex Type Example' → 'Typed Models'
- Simplified CodeGroup examples to show Tool Definition + MCP Result instead of 3-4 confusing tabs
- Split Primitives/Collections into separate CodeGroups for clarity
- Renamed 'Full Control with ToolResult' → 'ToolResult and Metadata' for better TOC visibility
- Flattened ToolResult documentation with inline field descriptions instead of nested headings
- Added version badge for ToolResult meta field (2.13.1)
- Added clarification that ToolResult meta is separate from @mcp.tool meta
- Improved example server with realistic metadata (execution time, character/word counts)
- Fixed code formatting (multi-line objects, trailing commas)
2025-11-02 17:07:48 -05:00
..
atproto_mcp Add "High Value" Ruff Rules (#2255) 2025-10-26 10:20:31 -04:00
auth Fix Azure scope validation (#2269) 2025-10-26 11:41:22 -04:00
fastmcp_config Implement typed source system for FastMCP configuration (#1607) 2025-08-24 16:32:37 -04:00
fastmcp_config_demo Internal refactor: fastmcp config to mcp server config (#1672) 2025-08-29 21:37:39 -04:00
smart_home example: allow any str for bridge IP 2025-10-21 20:25:43 -05:00
complex_inputs.py Remove empty parens 2025-06-04 15:37:55 -04:00
config_server.py Remove empty parens 2025-06-04 15:37:55 -04:00
desktop.py Remove empty parens 2025-06-04 15:37:55 -04:00
echo.py Remove empty parens 2025-06-04 15:37:55 -04:00
get_file.py Add "High Value" Ruff Rules (#2255) 2025-10-26 10:20:31 -04:00
in_memory_proxy_example.py Add as_proxy improvements and tests 2025-05-17 12:23:48 -04:00
memory.fastmcp.json Update schema path (#1595) 2025-08-23 09:47:58 -04:00
memory.py Add "High Value" Ruff Rules (#2255) 2025-10-26 10:20:31 -04:00
mount_example.fastmcp.json Update schema path (#1595) 2025-08-23 09:47:58 -04:00
mount_example.py Internal refactor of MCP handlers (#2005) 2025-10-05 08:45:10 -04:00
sampling.py Remove empty parens 2025-06-04 15:37:55 -04:00
sampling_fallback.py Make openai depedency optional (#1701) 2025-09-02 15:13:37 -04:00
screenshot.fastmcp.json Update schema path (#1595) 2025-08-23 09:47:58 -04:00
screenshot.py Deprecate top-level import 2025-06-14 09:12:21 -04:00
serializer.py Internal refactor of MCP handlers (#2005) 2025-10-05 08:45:10 -04:00
simple_echo.py Remove empty parens 2025-06-04 15:37:55 -04:00
tags_example.py Add support for RouteMap tags, update docs 2025-05-22 21:59:16 -04:00
text_me.py Basic cleanup 2025-04-05 17:39:51 -04:00
tool_result_echo.py Improve ToolResult and structured output documentation (#2349) 2025-11-02 17:07:48 -05:00