MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

Methodtest_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
Functiontest_hold_after_inventory_prevents_nomination
(triage, monkeypatch)
tests/test_public_triage.py:142
Functiontest_holds_drafts_bots_and_maintainers_are_not_leads
(triage, monkeypatch, change)
tests/test_public_triage.py:133
Functiontest_hook_installed
()
tests/server/test_mcp_param_schema_cache.py:36
Methodtest_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
Methodtest_horizon_account_commands_are_top_level
(self, name: str)
tests/cli/test_cli.py:41
Methodtest_host_header_set
Verify Host header is set to original hostname.
tests/server/auth/test_ssrf_protection.py:329
Methodtest_host_kwarg_raises_type_error
(self)
tests/deprecated/test_deprecated.py:8
Methodtest_host_mismatch_blocked
Test that host mismatches are blocked even with wildcards.
tests/server/auth/test_redirect_validation.py:655
Methodtest_host_names_are_case_insensitive
(self, host: str)
tests/cli/test_apps_dev_server.py:282
Methodtest_host_origin_protection_defaults_to_auto
( self, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_apps_dev_server.py:703
Methodtest_host_pages_disallow_framing
(self)
tests/cli/test_apps_dev_server.py:595
Methodtest_html_error_includes_server_branding
Test that HTML error page includes server branding from FastMCP instance.
tests/server/auth/test_enhanced_error_responses.py:639
Methodtest_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:1011
Functiontest_http_429_returns_rate_limit_message
()
tests/server/providers/openapi/test_http_errors.py:95
Methodtest_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
Functiontest_http_app_sets_mcp_server_state
()
tests/server/test_app_state.py:5
Functiontest_http_app_sse_sets_mcp_server_state
()
tests/server/test_app_state.py:11
Functiontest_http_app_timeout_overrides_setting
()
tests/server/http/test_session_idle_timeout.py:103
Functiontest_http_app_with_sse_transport
Test that http_app with SSE transport works.
tests/deprecated/test_deprecated.py:19
Methodtest_http_client_reaches_the_app
(self)
tests/utilities/test_asgi_transport.py:224
Methodtest_http_client_resolves_relative_urls_against_origin
( self, transport: Literal["http", "sse"] )
tests/utilities/test_asgi_transport.py:234
Functiontest_http_error_details_are_preserved_for_resources
(component: str)
tests/server/providers/openapi/test_http_errors.py:138
Functiontest_http_error_is_logged_without_traceback
( status: int, reason: str, caplog: pytest.LogCaptureFixture )
tests/server/providers/openapi/test_http_errors.py:75
Methodtest_http_error_returns_none
Test that HTTP errors return None.
tests/server/auth/providers/test_introspection.py:257
Methodtest_http_errors_are_not_cached
Test that HTTP errors are not cached (transient failures).
tests/server/auth/providers/test_introspection.py:791
Functiontest_http_headers
Test getting HTTP headers from the server.
tests/client/test_sse.py:79
Functiontest_http_headers
Test getting HTTP headers from the server.
tests/client/test_streamable_http.py:173
Functiontest_http_headers_prompt_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:112
Functiontest_http_headers_prompt_sse
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:122
Functiontest_http_headers_resource_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:77
Functiontest_http_headers_resource_sse
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:87
Functiontest_http_headers_tool_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:97
Functiontest_http_headers_tool_sse
(sse_server: ASGIServer)
tests/server/http/test_http_dependencies.py:105
Functiontest_http_host_origin_protection_defaults_to_false
()
tests/test_settings.py:7
Functiontest_http_host_origin_protection_env_var
(value, expected, monkeypatch)
tests/test_settings.py:19
Methodtest_http_redirect_uri_without_host_rejected
http(s) redirect_uris must still name a host.
tests/server/auth/test_cimd.py:129
Methodtest_http_ref_not_fetched
(self)
tests/utilities/test_json_schema.py:1381
Methodtest_http_rejected
HTTP URLs should be rejected (HTTPS required).
tests/server/auth/test_ssrf_protection.py:140
Functiontest_http_session_idle_timeout_can_be_disabled
()
tests/test_settings.py:36
Functiontest_http_session_idle_timeout_defaults_to_auto
()
tests/test_settings.py:25
Functiontest_http_session_idle_timeout_env_var
(value, monkeypatch)
tests/test_settings.py:30
Functiontest_http_session_idle_timeout_env_var_none_disables
(monkeypatch)
tests/test_settings.py:40
Functiontest_http_session_idle_timeout_rejects_invalid_values
(value)
tests/test_settings.py:46
Methodtest_http_target_gets_oauth_by_default
(self)
tests/cli/test_client_commands.py:692
Methodtest_http_transport_binds_oauth
(self)
tests/client/auth/test_oauth_cimd.py:140
Methodtest_http_transport_oauth_string_still_works
auth="oauth" should still create a new OAuth instance.
tests/client/auth/test_oauth_cimd.py:158
Methodtest_http_url
(self)
tests/cli/test_client_commands.py:386
Methodtest_http_url
(self)
tests/cli/test_client_commands.py:537
Methodtest_http_url_normalized
Gemini uses ``httpUrl`` — verify it becomes ``url``.
tests/cli/test_discovery.py:510
Functiontest_http_urls_are_allowed
()
tests/cli/test_fastmcp_remote.py:84
Functiontest_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
Methodtest_http_without_back_channel
( self, server: tuple[FastMCP, PingMiddleware], caplog: pytest.LogCaptureFixture,
tests/server/middleware/test_ping.py:302
Methodtest_https_proxy_preferred_over_all_proxy
When both are set, HTTPS_PROXY takes priority.
tests/server/auth/test_ssrf_protection.py:761
Methodtest_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:707
Methodtest_https_url
(self)
tests/cli/test_client_commands.py:392
Methodtest_https_url
(self)
tests/cli/test_client_commands.py:540
Methodtest_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
Methodtest_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
Methodtest_huge_maximum_constrains_nothing
(self, schema, value)
tests/utilities/json_schema_type/test_constraints.py:334
Methodtest_huge_minimum_still_rejects
(self, schema, value)
tests/utilities/json_schema_type/test_constraints.py:344
Functiontest_human_coauthors_survive_agent_filter_without_an_issue
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:100
Methodtest_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
Methodtest_hyphenated_name
(self)
tests/cli/test_generate_cli.py:764
Methodtest_hyphenated_query_param_forwarded
(self)
tests/server/providers/proxy/test_proxy_server.py:831
Methodtest_hyphenated_query_param_not_double_encoded
(self)
tests/server/providers/proxy/test_proxy_server.py:852
Methodtest_hyphenated_template_end_to_end
Register and read a resource with hyphenated URI param names.
tests/resources/test_resource_template.py:1021
Methodtest_hyphens
(self)
tests/cli/test_generate_cli.py:97
Methodtest_icon_import
Test that Icon must be imported from mcp.types, not fastmcp.
tests/server/test_icons.py:357
Methodtest_icon_with_theme_round_trips
Test that an icon's theme survives a client round-trip.
tests/server/test_icons.py:333
Methodtest_icon_without_optional_fields
Test that icons work with only the src field.
tests/server/test_icons.py:316
Methodtest_icon_without_theme_is_none
Test that an icon with no theme specified round-trips as None.
tests/server/test_icons.py:343
Methodtest_icons_always_present_in_json
Test that icons and website_url fields are always present in JSON, even when None.
tests/utilities/test_inspect_icons.py:336
Methodtest_icons_in_fastmcp_v1
Test that icons are extracted from FastMCP 1.x servers.
tests/utilities/test_inspect_icons.py:260
Methodtest_icons_in_formatted_output
Test that icons appear in formatted JSON output.
tests/utilities/test_inspect_icons.py:300
Methodtest_id_is_none_without_a_public_id
(self)
tests/server/test_sessions.py:133
Methodtest_id_jag_marked_token_rejected_when_not_configured
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:934
Functiontest_id_jag_revocation_remains_local
( proxy: OAuthProxy, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_revocation.py:438
Methodtest_id_organizes_within_a_principal
(self)
tests/server/test_sessions.py:80
Methodtest_id_returns_the_public_id
(self)
tests/server/test_sessions.py:138
Functiontest_identical_discovery_configuration_is_cached
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:36
Functiontest_identical_overlapping_property_stays_flat
()
tests/server/providers/openapi/test_body_ref_siblings.py:112
Functiontest_identical_root_reuses_class
(model: bool)
tests/utilities/json_schema_type/test_caching.py:65
Methodtest_identical_schemas_reuse_class
(self)
tests/utilities/json_schema_type/test_advanced.py:919
Methodtest_identifies_as_fastmcp_by_default
(self, mode: str)
tests/client/client/test_initialize.py:138
Methodtest_identity_assertion_audience_is_issuer_identifier
SEP-990: an ID-JAG is bound to the server's advertised issuer. RFC 7523 §3 requires the `aud` to identify the authorization server, a
tests/server/auth/test_issuer_url_identity.py:205
Functiontest_identity_assertion_is_public_provider_parameter
(provider: type)
tests/server/auth/providers/test_identity_assertion_forwarding.py:35
Methodtest_identity_hash_survives_the_proxy
(self)
tests/server/providers/test_prefab_roundtrip.py:242
Functiontest_identity_policy_forwards_full_implementation
( frontend_mode: str, identity: Literal["proxy", "upstream"] )
tests/server/providers/proxy/test_server_metadata.py:213
Functiontest_idle_session_is_terminated_after_timeout
(use_http_app: bool)
tests/server/http/test_session_idle_timeout.py:159
Functiontest_idle_timeout_can_be_disabled
(use_http_app: bool)
tests/server/http/test_session_idle_timeout.py:66
Methodtest_idp_callback_rejects_missing_consent_cookie
IdP callback must reject requests without the consent binding cookie. This is the core confused deputy scenario: a different browser (the vic
tests/server/auth/test_oauth_consent_page.py:796
Methodtest_idp_callback_rejects_missing_consent_token_on_transaction
IdP callback must reject when transaction has no consent_token set.
tests/server/auth/test_oauth_consent_page.py:847
Methodtest_idp_callback_rejects_wrong_consent_cookie
IdP callback must reject requests with a tampered consent binding cookie.
tests/server/auth/test_oauth_consent_page.py:825
Functiontest_ignore_pattern_matches_remote_namespaced_name_for_hashed_calls
()
tests/cli/test_fastmcp_remote.py:301
Functiontest_ignore_tools_transform_filters_matching_names
()
tests/cli/test_fastmcp_remote.py:257
Methodtest_ignored_duplicate_prompt_does_not_disable_the_existing_one
(self)
tests/server/providers/test_local_provider.py:688
Methodtest_ignored_duplicate_prompt_returns_the_existing_prompt
(self)
tests/server/providers/test_local_provider.py:631
Methodtest_ignored_duplicate_resource_does_not_disable_the_existing_one
(self)
tests/server/providers/test_local_provider.py:674
Methodtest_ignored_duplicate_resource_returns_the_existing_resource
(self)
tests/server/providers/test_local_provider.py:622
← previousnext →10,801–10,900 of 16,725, ranked by callers