fastmcp/tests/server/tasks
Chris Guidry 4a6f8730f5 Prefix Docket function names to avoid collisions in multi-mount setups
When multiple servers with task-enabled tools are mounted into a parent,
their functions were all registered with Docket using `fn.__name__`. This
meant two mounted servers each having a function named `add` would both
register under `"add"`, with the second overwriting the first.

Now mounted functions use prefixed names matching their client-facing tool
names (e.g., `c1_add`, `c2_add`). Root server functions still use their
original names with no prefix.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-08 15:12:40 -05:00
..
__init__.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
conftest.py Remove enable_docket setting; Docket is now always on 2025-12-05 11:40:04 -05:00
test_progress_dependency.py Remove enable_docket setting; Docket is now always on 2025-12-05 11:40:04 -05:00
test_server_tasks_parameter.py Add TaskConfig for SEP-1686 execution modes 2025-12-06 21:01:11 -05:00
test_sync_function_task_disabled.py Add TaskConfig for SEP-1686 execution modes 2025-12-06 21:01:11 -05:00
test_task_capabilities.py Remove enable_docket setting; Docket is now always on 2025-12-05 11:40:04 -05:00
test_task_config_modes.py Add TaskConfig for SEP-1686 execution modes 2025-12-06 21:01:11 -05:00
test_task_dependencies.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_metadata.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_methods.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_mount.py Prefix Docket function names to avoid collisions in multi-mount setups 2025-12-08 15:12:40 -05:00
test_task_prompts.py Add TaskConfig for SEP-1686 execution modes 2025-12-06 21:01:11 -05:00
test_task_protocol.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_proxy.py Proxy tasks forbidden, mount tasks working 2025-12-08 11:44:28 -05:00
test_task_resources.py Add TaskConfig for SEP-1686 execution modes 2025-12-06 21:01:11 -05:00
test_task_return_types.py [SEP-1686] Raise ValueError when sync functions have task=True (#2554) 2025-12-05 11:31:28 -05:00
test_task_security.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_status_notifications.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_tools.py Add TaskConfig for SEP-1686 execution modes 2025-12-06 21:01:11 -05:00
test_task_ttl.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00