mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-09-02 04:23:20 +02:00
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> |
||
|---|---|---|
| .. | ||
| atproto_mcp | ||
| auth | ||
| fastmcp_config | ||
| fastmcp_config_demo | ||
| smart_home | ||
| complex_inputs.py | ||
| config_server.py | ||
| desktop.py | ||
| echo.py | ||
| get_file.py | ||
| in_memory_proxy_example.py | ||
| memory.fastmcp.json | ||
| memory.py | ||
| mount_example.fastmcp.json | ||
| mount_example.py | ||
| remove_nulls_middleware_example.py | ||
| sampling.py | ||
| sampling_fallback.py | ||
| screenshot.fastmcp.json | ||
| screenshot.py | ||
| serializer.py | ||
| simple_echo.py | ||
| tags_example.py | ||
| text_me.py | ||