fastmcp/tests/contrib
zzstoatzz 6e625282e3 Add jmespath_tools contrib module for filtering tool responses
Adds a @filterable decorator that enables JMESPath-based filtering and
projection of MCP tool results. This allows LLM clients to reduce response
sizes by extracting only the data they need.

Features:
- @filterable decorator adds a `jmespath` parameter to any tool
- ToolResult TypedDict for consistent {success, data, error} structure
- Lazy import of jmespath with helpful error message
- Works with both sync and async tool functions

Install with: pip install fastmcp[jmespath]

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 14:58:44 -06:00
..
__init__.py Updates based on PR Feedback 2025-04-16 23:30:09 -05:00
test_bulk_tool_caller.py optimize test suite (#1893) 2025-09-22 20:07:04 -04:00
test_component_manager.py Add comprehensive OAuth 2.1 authentication system with WorkOS integration (#1327) 2025-08-01 17:06:55 -04:00
test_jmespath_tools.py Add jmespath_tools contrib module for filtering tool responses 2025-12-03 14:58:44 -06:00
test_mcp_mixin.py feat: Add title, annotations and meta to mixin decorators 2025-10-10 14:23:02 +05:30