fastmcp/tests
Chris Guidry ba283ddb4c
Support CallArgument and Depends bindings from uncalled-for 0.4.0 (#4802)
* Support CallArgument and Depends bindings from uncalled-for 0.4.0

uncalled-for 0.4.0 adds explicit argument references: CallArgument()
lets a dependency factory read an argument of the function it serves,
and Depends(factory, **bindings) supplies factory arguments at the
declaration site (https://github.com/chrisguidry/uncalled-for/pull/12).
FastMCP's resolver now opens a frame_scope() around dependency
resolution, with the sanitized user arguments as the frame's provided
values. A CallArgument can reference a tool call's public parameters,
but a caller-supplied value for a dependency parameter name is still
stripped before resolution. CallArgument and CycleError are re-exported
from fastmcp.dependencies, and the dependency-injection docs cover both
features.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Raise the pydocket floor to 0.24.0 outside Windows

pydocket 0.24.0 resolves TaskArgument and CallArgument through
uncalled-for 0.4.0's call-scoped frames. Windows keeps the 0.20.0
floor: the burner-redis<0.1.7 pin there transitively caps pydocket to
<0.20.2, and burner-redis has shipped no fixed release yet.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Bump the pydocket floor to 0.24.1 for reliable worker shutdown

docket 0.24.1 fixes a lost cancellation in worker shutdown on Python
3.10 and 3.11 (chrisguidry/docket#456): asyncio.wait_for swallowed a
cancellation delivered in the same event-loop tick that its inner future
completed, so cancelling run_forever during our lifespan teardown left
the worker running and hung the test session. That is what timed out the
Python 3.10 and lowest-direct jobs here. The floor stays platform-split;
Windows keeps >=0.20.0 under the burner-redis pin.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Drop the Windows burner-redis pin and unify the pydocket floor at 0.24.1

The pin blamed the wrong package. The Windows "interpreter crash" that
motivated it (#4618) was pydocket 0.23.1 losing an external cancellation
during worker teardown; pytest-timeout's hard kill of the hung xdist
worker discarded its stdout and looked like a native fault. Capping
burner-redis also dragged pydocket below 0.20.2, so the two variables
were never separated. The repro matrix on prefectlabs/burner-redis#7
shows the July environment failing as resolved, passing with only
pydocket rolled back, and passing with pydocket 0.24.1 alongside
burner-redis 0.1.7 on Windows. pydocket 0.24.1 carries the fix
(chrisguidry/docket#456), so every platform now shares one floor.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: nate nowack <thrast36@gmail.com>
2026-08-13 22:19:17 -05:00
..
apps Late-bind app tool names so UIs survive composition (#4682) 2026-07-28 10:54:19 -04:00
cli Add Prefect Horizon authentication client and local state (#4785) 2026-08-10 17:06:42 -04:00
client Forward proxy server metadata across protocol eras (#4776) 2026-08-06 19:09:05 -04:00
conformance Move to the stable MCP Python SDK 2.0.0 (#4655) 2026-07-28 16:31:49 -04:00
contrib Speed up the unit test suite, and fix the task-notification race it surfaced (#4550) 2026-07-19 18:52:04 -04:00
deprecated Remove 3.x-era compatibility shims (#4661) 2026-07-27 14:59:43 -04:00
docs Split the SDK upgrade guides by SDK version (#4684) 2026-07-28 10:47:39 -04:00
experimental Fix CodeMode tool error propagation (#4704) 2026-08-02 09:41:36 -04:00
fixtures test: vendor ext-tasks draft schema as fixture 2026-07-21 20:19:28 -04:00
fs fix(fs): isolate same-named package imports across providers (#4361) 2026-06-24 10:57:01 -04:00
integration_tests Merge remote-tracking branch 'origin/main' into feature/client-auto-default 2026-07-20 12:02:38 -04:00
prompts Preserve string-compatible prompt arguments (#4730) 2026-08-02 14:56:05 -04:00
resources Move to the stable MCP Python SDK 2.0.0 (#4655) 2026-07-28 16:31:49 -04:00
scripts Exempt maintainers from MRE auto-close (#4220) 2026-05-23 09:02:44 -04:00
server Support CallArgument and Depends bindings from uncalled-for 0.4.0 (#4802) 2026-08-13 22:19:17 -05:00
tasks Fix partial hint resolution on Python 3.14 (#4796) 2026-08-11 12:14:34 -05:00
telemetry feat: Add telemetry interop mode for FastMCP (#4046) 2026-07-27 16:05:29 -04:00
tools Delegate typed tool output serialization to Pydantic (#4771) 2026-08-06 19:59:19 -04:00
utilities fix(openapi): extract parameter-level example and examples (#4793) 2026-08-13 12:03:56 -04:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Move to the stable MCP Python SDK 2.0.0 (#4655) 2026-07-28 16:31:49 -04:00
test_apps.py Audit mode="legacy" pins in server tests and top-level stragglers 2026-07-20 16:00:27 -04:00
test_apps_prefab.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_compat.py Avoid loading MCP and CLI stacks during lightweight imports (#4763) 2026-08-05 10:56:13 -04:00
test_exceptions.py Pass the MCP conformance suite's draft and pending scenarios 2026-07-26 15:00:08 -04:00
test_fastmcp_app.py Late-bind app tool names so UIs survive composition (#4682) 2026-07-28 10:54:19 -04:00
test_json_schema_generation.py fix: resolve Pyright "Module is not callable" on @tool, @resource, @prompt decorators (#3540) 2026-03-17 18:11:42 -04:00
test_mcp_config.py Fix static analysis with latest ty (#4739) 2026-08-03 10:53:23 -05:00
test_no_legacy_httpx.py Preserve legacy httpx compatibility without importing it (#4766) 2026-08-05 18:09:16 -04:00
test_settings.py Move task subsystem to fastmcp-tasks package, disconnect SEP-1686 wire from core 2026-07-21 21:51:45 -04:00
test_upgrade_from_v3.py Move to the stable MCP Python SDK 2.0.0 (#4655) 2026-07-28 16:31:49 -04:00