fastmcp/tests
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
..
cli Fix: URL-encode server name in Cursor deeplinks (#2369) 2025-11-04 11:26:57 -05:00
client Update FastMCP for MCP SDK 1.23.1 auth changes 2025-12-03 11:50:08 -05:00
contrib Add jmespath_tools contrib module for filtering tool responses 2025-12-03 14:58:44 -06:00
deprecated Switch to new OpenAPI parser as default (#2513) 2025-12-01 20:29:18 -05:00
experimental Switch to new OpenAPI parser as default (#2513) 2025-12-01 20:29:18 -05:00
integration_tests Fix typos and formatting 2025-11-15 12:21:15 -05:00
prompts Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
resources Fix query-only resource templates not matching URIs without query strings (#2323) 2025-11-01 11:27:37 -04:00
server Update tests for client_secret=None behavior 2025-12-03 15:48:47 -05:00
tools Fix type errors in oauth_proxy and test_auth_integration 2025-11-15 12:21:15 -05:00
utilities Switch to new OpenAPI parser as default (#2513) 2025-12-01 20:29:18 -05:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Fix Windows test timeouts from SQLite locking (#2368) 2025-11-04 10:58:49 -05:00
test_examples.py Cleanup content conversion 2025-09-06 17:32:33 -05:00
test_mcp_config.py Bump ty to ==0.0.1a25 (#2350) 2025-11-02 20:02:45 -05:00