fastmcp/tests/cli
Jeremiah Lowin 21dc2a038e
Apply transforms, enabled state, and auth to hashed tool lookups (#5415)
FastMCPApp UIs call backend tools by a hashed name (`<hash>_<local_name>`) that survives renames, namespaces and proxies. This change makes those calls resolve through the same public `get_tool` lookup as a call by name, at every layer of composition. Transforms, `get_tool` overrides, session transforms, enabled filtering (including the fallback past a disabled highest version), version filters and auth now behave identically for both kinds of call. A hashed name resolves to the tool it identifies.

Renames from namespaces, `ToolTransform` and `mount(tool_names=...)` still resolve. Tool search and code mode, which replace the tool listing but pass name lookups through, still reach app tools by hash. The apps architecture docs describe the lookup.

Co-authored-by: Bill Easton <williamseaston@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-10-04 10:26:55 -04:00
..
deploy Add Prefect Horizon account commands (#4786) 2026-08-17 20:11:19 -07:00
__init__.py Add tests 2025-07-06 20:50:31 -04:00
test_apps_dev_server.py Require a startup-URL session for the fastmcp dev apps preview (#5417) 2026-10-04 10:14:58 -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 Add Prefect Horizon account commands (#4786) 2026-08-17 20:11:19 -07: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_config_encoding.py cli: read MCP and fastmcp.json config files as utf-8 (#5345) 2026-10-02 00:47:25 -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 fix: preserve valid servers during CLI discovery (#4714) 2026-08-02 09:42:26 -04:00
test_fastmcp_remote.py Apply transforms, enabled state, and auth to hashed tool lookups (#5415) 2026-10-04 10:26:55 -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 Pass client CLI arguments literally to Windows .cmd wrappers (#5419) 2026-10-04 09:06:48 -04:00
test_install_cli_arguments.py Pass client CLI arguments literally to Windows .cmd wrappers (#5419) 2026-10-04 09:06:48 -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 fix(ci): satisfy latest ty control-flow checks (#4928) 2026-08-27 14:54:44 -05:00
test_run.py Require a startup-URL session for the fastmcp dev apps preview (#5417) 2026-10-04 10:14:58 -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