fastmcp/examples
marvin-context-protocol[bot] 0ebc8ca0f9 Add middleware example for removing nulls from structured content
This middleware demonstrates how to remove null values from tool call
structured content, which helps reduce token count in responses while
preserving data structure.

Includes:
- RemoveNullsMiddleware class with on_call_tool handler
- remove_nulls utility function for recursive null removal
- Complete example with demonstration tools
- Comprehensive test suite with 7 test cases

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: William Easton <strawgate@users.noreply.github.com>
2025-09-24 01:20:24 +00:00
..
atproto_mcp Implement typed source system for FastMCP configuration (#1607) 2025-08-24 16:32:37 -04:00
auth Fix OAuth resource URL handling and WWW-Authenticate header (#1706) 2025-09-02 15:14:05 -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 remove lockfile smart_home example (#1892) 2025-09-22 20:07:19 -04: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 Run pre-commit and fix typing issues 2025-06-16 07:12:41 +02: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 Update environment note (#1075) 2025-07-07 13:44:19 -04:00
mount_example.fastmcp.json Update schema path (#1595) 2025-08-23 09:47:58 -04:00
mount_example.py feat: introduce fastmcp.json configuration system (#1517) 2025-08-19 16:06:04 -04:00
remove_nulls_middleware_example.py Add middleware example for removing nulls from structured content 2025-09-24 01:20:24 +00: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 Remove empty parens 2025-06-04 15:41:28 -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