fastmcp/tests/tools/tool
Qingsong Li 2dd1c319c6
Fix tool body validation errors at the MCP boundary (#5485)
Pydantic validation errors raised inside a tool body are now returned as tool error results instead of JSON-RPC -32602, so server-side failures no longer look like invalid client requests.

Co-authored-by: qingshungLI <201055554+qingshungLI@users.noreply.github.com>
Co-authored-by: Alastair Porter <19217+alastair@users.noreply.github.com>
2026-10-08 14:48:25 -04:00
..
__init__.py Consolidate test fixtures and refactor large test files (#2941) 2026-01-19 15:18:35 -05:00
test_argument_validation.py Fix tool body validation errors at the MCP boundary (#5485) 2026-10-08 14:48:25 -04:00
test_callable.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_content.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_output_schema.py fix: don't infer an output schema for unconstrained sequences (#4999) 2026-09-04 13:02:02 -05:00
test_results.py Delegate typed tool output serialization to Pydantic (#4771) 2026-08-06 19:59:19 -04:00
test_title.py tools: keep explicit Field(title=...) on parameters in the input schema (#5388) 2026-10-03 00:14:16 -07:00
test_tool.py fix(tools): take partial tool names and docstrings from the wrapped function (#5269) 2026-10-04 21:20:52 -04:00