fastmcp/tests/server
Jeremiah Lowin dec3c6d449 Fix task capabilities location (issue #2870)
Tasks belong in capabilities.tasks (first-class field) per SEP-1686,
not capabilities.experimental.tasks. This fixes VS Code Copilot 1.107+
integration which checks capabilities.tasks?.requests?.tools?.call.

Changes:
- Update get_task_capabilities() to return ServerTasksCapability types
- Override get_capabilities() in LowLevelServer to set tasks field
- Remove experimental_capabilities parameter usage
- Update test to verify correct location

Fixes #2870
2026-01-13 22:25:52 -05:00
..
auth Backport OAuth token storage TTL fix to release/2.x (#2798) 2026-01-06 17:46:58 -05:00
http Fix type errors for ty 0.0.1-alpha.31 upgrade (#2561) 2025-12-05 21:29:14 -05:00
middleware fix: check the cause of the tool error (#2674) 2025-12-23 18:00:25 -05:00
openapi Fix base_url fallback when url is not set (#2776) (#2782) 2025-12-30 17:51:57 -05:00
proxy SEP-1577: Sampling with tools (#2551) 2025-12-14 13:51:05 -05:00
sampling SEP-1577: Sampling with tools (#2551) 2025-12-14 13:51:05 -05:00
tasks Fix task capabilities location (issue #2870) 2026-01-13 22:25:52 -05:00
__init__.py restore 1.x code 2025-04-09 11:54:42 -04:00
test_app_state.py Update docs and test 2025-06-20 13:06:48 -04:00
test_auth_integration.py Update FastMCP for MCP SDK 1.23.1 auth changes 2025-12-03 11:50:08 -05:00
test_context.py SEP-1577: Sampling with tools (#2551) 2025-12-14 13:51:05 -05:00
test_dependencies.py Let FastMCPError propagate from dependencies 2025-12-23 18:00:40 -05:00
test_event_store.py SEP-1699: Add SSE polling support with EventStore (#2564) 2025-12-09 09:55:51 -05:00
test_file_server.py Internal refactor of MCP handlers (#2005) 2025-10-05 08:45:10 -04:00
test_icons.py Implement icon support (#2121) 2025-10-17 17:28:08 -04:00
test_import_server.py 2.14 deprecation removals (#2329) 2025-12-01 14:11:00 -05:00
test_input_validation.py Add Pydantic-compatible input validation (#2073) 2025-10-14 11:49:30 -07:00
test_log_level.py Add log level support for stdio and HTTP transports (#1840) 2025-09-19 13:46:30 -04:00
test_logging.py Fix test cleanup for uvicorn 0.39+ context isolation (#2696) 2025-12-23 18:40:20 -05:00
test_mount.py Add tool_names parameter to mount() for name overrides (#2619) 2025-12-14 20:56:42 -05:00
test_run_server.py Update tests for prompts 2025-06-04 16:37:41 -04:00
test_server.py Revert "Refactor resource behavior and add meta support (#2598)" (#2609) 2025-12-13 15:02:18 -05:00
test_server_docket.py Fix type errors for ty 0.0.1-alpha.31 upgrade (#2561) 2025-12-05 21:29:14 -05:00
test_server_interactions.py Revert "Refactor prompt behavior and add meta support (#2600)" (#2608) 2025-12-13 14:57:50 -05:00
test_server_lifespan.py Fix type errors for ty 0.0.1-alpha.31 upgrade (#2561) 2025-12-05 21:29:14 -05:00
test_streamable_http_no_redirect.py Improve redirect handling to address 307's (#1387) 2025-08-08 11:55:30 -04:00
test_tool_annotations.py Add TaskConfig for SEP-1686 execution modes 2025-12-06 21:01:11 -05:00
test_tool_transformation.py Internal refactor of MCP handlers (#2005) 2025-10-05 08:45:10 -04:00