fastmcp/tests/cli
Jeremiah Lowin 19c5c507cc
Address review feedback on SEP-2663 tasks
- Client task support is opt-in via importing fastmcp_tasks (drop the core
  auto-load of companion packages); a plain Client never advertises tasks.
- A worker restores the submitting caller's auth token and headers from the
  task snapshot into the standard ambient context, so get_access_token() /
  get_http_headers() work in a distributed worker with no new core hooks.
- worker_cli validates the loaded extension's resolved backend, not env defaults,
  so a constructor-configured Redis worker starts.
- Thread the per-call read timeout through task polling; bound ToolTask.wait by
  its deadline; set_elicitation_callback rebuilds internal extensions so a
  later-set handler answers in-task input.
- README imports TaskConfig from fastmcp.utilities.tasks.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 19:14:16 -04:00
..
__init__.py Add tests 2025-07-06 20:50:31 -04:00
test_cimd_cli.py Add CIMD (Client ID Metadata Document) support for OAuth (#2871) 2026-02-06 13:44:52 -05:00
test_cli.py Update ty ignore comments for 0.0.25 compatibility (#3614) 2026-03-24 20:26:26 -04:00
test_client_commands.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_config.py Update classes to inherit from FastMCPBaseModel instead of BaseModel (#2739) 2025-12-26 08:33:23 -05:00
test_cursor.py Validate workspace path is a directory in cursor install (#3426) (#3435) 2026-03-07 11:40:33 -05:00
test_discovery.py Add fastmcp discover and name-based server resolution (#3055) 2026-02-01 21:27:22 -05:00
test_fastmcp_remote.py feat(remote): add --verify flag for TLS certificate verification (#4369) 2026-06-24 12:09:22 -04:00
test_generate_cli.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_goose.py feat: add fastmcp install goose command (#3040) 2026-01-31 10:53:24 -05:00
test_install.py fix: validate server names in install commands (#3522) 2026-03-15 14:54:24 -04:00
test_mcp_server_config_integration.py Update ty ignore comments for 0.0.25 compatibility (#3614) 2026-03-24 20:26:26 -04:00
test_mcp_server_config_schema.py Hotfix: restore --transport streamable http at CLI (#1743) 2025-09-03 17:24:22 -04:00
test_project_prepare.py Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
test_run.py Migrate to MCP Python SDK v2 (#4437) 2026-07-06 17:36:45 -04:00
test_run_config.py Add log level support for stdio and HTTP transports (#1840) 2025-09-19 13:46:30 -04:00
test_server_args.py Unify discovery API: deduplicate at protocol layer only (#2919) 2026-01-18 21:01:53 -05:00
test_shared.py Reject empty env var keys (#4410) 2026-06-29 09:42:06 -04:00
test_tasks.py Address review feedback on SEP-2663 tasks 2026-07-22 19:14:16 -04:00
test_with_argv.py Consolidate server loading logic into FileSystemSource (#1614) 2025-08-24 20:50:25 -04:00