Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Function
test_hashed_lookup_checks_authorization_of_the_same_tool_as_the_listed_name
( build: Callable[[list[str]], FastMCP], listed_name: str, allowed: bool )
tests/server/test_hashed_tool_dispatch.py:494
Method
test_hashed_name_auth_blocks_unauthorized
Auth checks run on the hashed-name dispatch path too.
tests/test_fastmcp_app.py:527
Method
test_hashed_name_call_is_denied_by_backend_component_auth
(self)
tests/server/auth/test_authorization.py:1724
Method
test_hashed_name_call_with_insufficient_scope_is_denied
(self)
tests/server/auth/test_authorization.py:1710
Method
test_hashed_name_call_with_sufficient_scope_executes_tool
(self)
tests/server/auth/test_authorization.py:1697
Function
test_hashed_name_falls_back_past_a_disabled_highest_version
()
tests/server/test_hashed_tool_dispatch.py:324
Method
test_hashed_name_from_result_is_callable
The hashed name that appears in structured_content actually resolves when called back — the full round-trip works.
tests/server/providers/test_prefab_roundtrip.py:95
Function
test_hashed_name_is_unknown_when_listed_name_is_unknown
( build: Callable[[list[str]], FastMCP], )
tests/server/test_hashed_tool_dispatch.py:171
Function
test_hashed_name_resolves_renamed_tools
( build: Callable[[list[str]], FastMCP], )
tests/server/test_hashed_tool_dispatch.py:232
Function
test_hashed_name_resolves_tools_renamed_with_replaced_meta
( meta: dict[str, str] | None, on_provider: bool )
tests/server/test_hashed_tool_dispatch.py:521
Function
test_hashed_name_respects_a_version_filter
()
tests/server/test_hashed_tool_dispatch.py:336
Method
test_hashed_name_survives_namespace_mount
The hash identifies a tool independently of its name. A FastMCPApp mounted under a Namespace transform still has its backend tools rea
tests/test_fastmcp_app.py:493
Function
test_header_array_serialization
()
tests/server/providers/openapi/test_header_path_serialization.py:74
Function
test_header_nested_array_flattens_one_level
()
tests/server/providers/openapi/test_header_path_serialization.py:208
Function
test_header_object_serialization
(explode: bool | None, expected: str)
tests/server/providers/openapi/test_header_path_serialization.py:97
Function
test_header_scalar_serialization
(value: Any, expected: str)
tests/server/providers/openapi/test_header_path_serialization.py:59
Method
test_headers
(self, transport_cls: type)
tests/cli/test_generate_cli_remote.py:65
Function
test_hello_prompt_custom
Test hello prompt with custom name
examples/testing_demo/tests/test_server.py:87
Function
test_hello_prompt_default
Test hello prompt with default parameter
examples/testing_demo/tests/test_server.py:81
Method
test_helper_emits_by_default
( self, helper: str, helpers, trace_exporter: InMemorySpanExporter )
tests/telemetry/test_interop.py:142
Method
test_helper_emits_nothing
( self, helper: str, value: str, helpers, mode, trace_exporter
tests/telemetry/test_interop.py:119
Method
test_helper_emits_nothing_under_suppress
( self, helper: str, helpers, trace_exporter: InMemorySpanExporter )
tests/telemetry/test_interop.py:133
Method
test_heterogeneous_accepts_boolean
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:63
Method
test_heterogeneous_accepts_null
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:67
Method
test_heterogeneous_accepts_number
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:59
Method
test_heterogeneous_accepts_string
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:55
Method
test_heterogeneous_rejects_array
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:71
Function
test_hidden_arg_with_constant_default
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:198
Function
test_hidden_arg_without_default_uses_parent_default
Test that hidden argument without default uses parent's default.
tests/tools/tool_transform/test_tool_transform.py:207
Function
test_hidden_folders_are_not_walked
(tmp_path: Path)
tests/skills/test_directory_provider.py:90
Function
test_hidden_param_prunes_defs
()
tests/tools/tool_transform/test_tool_transform.py:279
Function
test_hidden_parent_resource_hides_mounted_folder_file
(tmp_path: Path)
tests/skills/test_composition.py:144
Function
test_hidden_rename_does_not_leak_factory_into_visible_sibling
A hidden parameter renamed to a visible sibling's name must not override that sibling's schema default with its factory value.
tests/tools/tool_transform/test_args.py:274
Function
test_hide_required_param_with_user_default_works
Test that hiding a required parameter works when user provides a default.
tests/tools/tool_transform/test_tool_transform.py:259
Function
test_hide_required_param_without_default_raises_error
Test that hiding a required parameter without providing default raises error.
tests/tools/tool_transform/test_tool_transform.py:241
Method
test_hides_passwords
(self, url: str, expected: str)
tests/cli/test_tasks.py:222
Method
test_hinted_list_tools_served_from_cache
(self)
tests/server/test_cache_hints.py:148
Method
test_hinted_read_resource_carries_cacheable_fields
The server sets the wire fields the SDK client cache reads on a `resources/read` result, so a cache-capable client can reuse it.
tests/server/test_cache_hints.py:206
Function
test_hold_after_inventory_prevents_nomination
(triage, monkeypatch)
tests/test_public_triage.py:142
Function
test_holds_drafts_bots_and_maintainers_are_not_leads
(triage, monkeypatch, change)
tests/test_public_triage.py:133
Function
test_hook_installed
()
tests/server/test_mcp_param_schema_cache.py:36
Method
test_hooks_fire_once_per_round_across_a_continuation
The fires-once invariant holds across a continuation — the one place root dispatch and MRTR genuinely meet. Each round is its own complete
tests/server/middleware/test_message_visibility.py:400
Method
test_horizon_account_commands_are_top_level
(self, name: str)
tests/cli/test_cli.py:41
Method
test_host_header_set
Verify Host header is set to original hostname.
tests/server/auth/test_ssrf_protection.py:309
Method
test_host_kwarg_raises_type_error
(self)
tests/deprecated/test_deprecated.py:8
Method
test_host_mismatch_blocked
Test that host mismatches are blocked even with wildcards.
tests/server/auth/test_redirect_validation.py:491
Method
test_host_names_are_case_insensitive
(self, host: str)
tests/cli/test_apps_dev_server.py:282
Method
test_host_origin_protection_defaults_to_auto
( self, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_apps_dev_server.py:703
Method
test_host_pages_disallow_framing
(self)
tests/cli/test_apps_dev_server.py:595
Method
test_html_error_includes_server_branding
Test that HTML error page includes server branding from FastMCP instance.
tests/server/auth/test_enhanced_error_responses.py:634
Method
test_html_preferred_when_both_accepted
Test that HTML is preferred when both text/html and application/json are accepted.
tests/server/auth/test_enhanced_error_responses.py:983
Function
test_http_429_returns_rate_limit_message
()
tests/server/providers/openapi/test_http_errors.py:95
Method
test_http_app_enforces_required_scopes_on_granted_scopes
( self, provider: WorkOSProvider, httpx_mock: HTTPXMock, granted_scope: str,
tests/server/auth/providers/test_workos.py:540
Function
test_http_app_sets_mcp_server_state
()
tests/server/test_app_state.py:5
Function
test_http_app_sse_sets_mcp_server_state
()
tests/server/test_app_state.py:11
Function
test_http_app_timeout_overrides_setting
()
tests/server/http/test_session_idle_timeout.py:103
Function
test_http_app_with_sse_transport
Test that http_app with SSE transport works.
tests/deprecated/test_deprecated.py:19
Method
test_http_client_reaches_the_app
(self)
tests/utilities/test_asgi_transport.py:224
Method
test_http_client_resolves_relative_urls_against_origin
( self, transport: Literal["http", "sse"] )
tests/utilities/test_asgi_transport.py:234
Function
test_http_error_details_are_preserved_for_resources
(component: str)
tests/server/providers/openapi/test_http_errors.py:138
Function
test_http_error_is_logged_without_traceback
( status: int, reason: str, caplog: pytest.LogCaptureFixture )
tests/server/providers/openapi/test_http_errors.py:75
Method
test_http_error_returns_none
Test that HTTP errors return None.
tests/server/auth/providers/test_introspection.py:257
Method
test_http_errors_are_not_cached
Test that HTTP errors are not cached (transient failures).
tests/server/auth/providers/test_introspection.py:791
Function
test_http_headers
Test getting HTTP headers from the server.
tests/client/test_sse.py:79
Function
test_http_headers
Test getting HTTP headers from the server.
tests/client/test_streamable_http.py:173
Function
test_http_headers_prompt_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:112
Function
test_http_headers_prompt_sse
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:122
Function
test_http_headers_resource_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:77
Function
test_http_headers_resource_sse
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:87
Function
test_http_headers_tool_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:97
Function
test_http_headers_tool_sse
(sse_server: ASGIServer)
tests/server/http/test_http_dependencies.py:105
Function
test_http_host_origin_protection_defaults_to_false
()
tests/test_settings.py:7
Function
test_http_host_origin_protection_env_var
(value, expected, monkeypatch)
tests/test_settings.py:19
Method
test_http_redirect_uri_without_host_rejected
http(s) redirect_uris must still name a host.
tests/server/auth/test_cimd.py:129
Method
test_http_ref_not_fetched
(self)
tests/utilities/test_json_schema.py:1381
Method
test_http_rejected
HTTP URLs should be rejected (HTTPS required).
tests/server/auth/test_ssrf_protection.py:140
Function
test_http_session_idle_timeout_can_be_disabled
()
tests/test_settings.py:36
Function
test_http_session_idle_timeout_defaults_to_auto
()
tests/test_settings.py:25
Function
test_http_session_idle_timeout_env_var
(value, monkeypatch)
tests/test_settings.py:30
Function
test_http_session_idle_timeout_env_var_none_disables
(monkeypatch)
tests/test_settings.py:40
Function
test_http_session_idle_timeout_rejects_invalid_values
(value)
tests/test_settings.py:46
Method
test_http_target_gets_oauth_by_default
(self)
tests/cli/test_client_commands.py:691
Method
test_http_transport_binds_oauth
(self)
tests/client/auth/test_oauth_cimd.py:140
Method
test_http_transport_oauth_string_still_works
auth="oauth" should still create a new OAuth instance.
tests/client/auth/test_oauth_cimd.py:158
Method
test_http_url
(self)
tests/cli/test_client_commands.py:385
Method
test_http_url
(self)
tests/cli/test_client_commands.py:536
Method
test_http_url_normalized
Gemini uses ``httpUrl`` — verify it becomes ``url``.
tests/cli/test_discovery.py:510
Function
test_http_urls_are_allowed
()
tests/cli/test_fastmcp_remote.py:84
Function
test_http_user_lifespan_fires_once_across_sessions
The session manager must drive the user lifespan exactly once for the server process, even when several independent HTTP client sessions connect
tests/server/http/test_lifespan_once_per_process.py:42
Method
test_http_without_back_channel
( self, server: tuple[FastMCP, PingMiddleware], caplog: pytest.LogCaptureFixture,
tests/server/middleware/test_ping.py:302
Method
test_https_proxy_preferred_over_all_proxy
When both are set, HTTPS_PROXY takes priority.
tests/server/auth/test_ssrf_protection.py:741
Method
test_https_proxy_used_explicitly
HTTPS_PROXY is passed to httpx2 explicitly with trust_env disabled, and a single request goes to the original hostname URL — not an IP literal
tests/server/auth/test_ssrf_protection.py:687
Method
test_https_url
(self)
tests/cli/test_client_commands.py:391
Method
test_https_url
(self)
tests/cli/test_client_commands.py:539
Method
test_httpx_preserves_auth_on_same_origin_redirect
httpx preserves Authorization headers when redirecting to the same origin.
tests/client/transports/test_no_redirect.py:58
Method
test_httpx_strips_auth_on_cross_origin_redirect
httpx strips Authorization headers when redirecting to a different origin.
tests/client/transports/test_no_redirect.py:22
Method
test_huge_maximum_constrains_nothing
(self, schema, value)
tests/utilities/json_schema_type/test_constraints.py:334
Method
test_huge_minimum_still_rejects
(self, schema, value)
tests/utilities/json_schema_type/test_constraints.py:344
Function
test_human_coauthors_survive_agent_filter_without_an_issue
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:100
Method
test_hyphenated_exemption_matches_normalized_param
`{git-ref}` extracts as `git_ref`; an exemption written with the URI-template (hyphen) spelling must still match it.
tests/resources/test_resource_security.py:104
← previous
next →
10,201–10,300 of 15,974, ranked by callers