Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
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:329
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:655
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:639
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:1011
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:692
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:386
Method
test_http_url
(self)
tests/cli/test_client_commands.py:537
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:761
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:707
Method
test_https_url
(self)
tests/cli/test_client_commands.py:392
Method
test_https_url
(self)
tests/cli/test_client_commands.py:540
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
Method
test_hyphenated_name
(self)
tests/cli/test_generate_cli.py:764
Method
test_hyphenated_query_param_forwarded
(self)
tests/server/providers/proxy/test_proxy_server.py:831
Method
test_hyphenated_query_param_not_double_encoded
(self)
tests/server/providers/proxy/test_proxy_server.py:852
Method
test_hyphenated_template_end_to_end
Register and read a resource with hyphenated URI param names.
tests/resources/test_resource_template.py:1021
Method
test_hyphens
(self)
tests/cli/test_generate_cli.py:97
Method
test_icon_import
Test that Icon must be imported from mcp.types, not fastmcp.
tests/server/test_icons.py:357
Method
test_icon_with_theme_round_trips
Test that an icon's theme survives a client round-trip.
tests/server/test_icons.py:333
Method
test_icon_without_optional_fields
Test that icons work with only the src field.
tests/server/test_icons.py:316
Method
test_icon_without_theme_is_none
Test that an icon with no theme specified round-trips as None.
tests/server/test_icons.py:343
Method
test_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
Method
test_icons_in_fastmcp_v1
Test that icons are extracted from FastMCP 1.x servers.
tests/utilities/test_inspect_icons.py:260
Method
test_icons_in_formatted_output
Test that icons appear in formatted JSON output.
tests/utilities/test_inspect_icons.py:300
Method
test_id_is_none_without_a_public_id
(self)
tests/server/test_sessions.py:133
Method
test_id_jag_marked_token_rejected_when_not_configured
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:934
Function
test_id_jag_revocation_remains_local
( proxy: OAuthProxy, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_revocation.py:438
Method
test_id_organizes_within_a_principal
(self)
tests/server/test_sessions.py:80
Method
test_id_returns_the_public_id
(self)
tests/server/test_sessions.py:138
Function
test_identical_discovery_configuration_is_cached
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:36
Function
test_identical_overlapping_property_stays_flat
()
tests/server/providers/openapi/test_body_ref_siblings.py:112
Function
test_identical_root_reuses_class
(model: bool)
tests/utilities/json_schema_type/test_caching.py:65
Method
test_identical_schemas_reuse_class
(self)
tests/utilities/json_schema_type/test_advanced.py:919
Method
test_identifies_as_fastmcp_by_default
(self, mode: str)
tests/client/client/test_initialize.py:138
Method
test_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
Function
test_identity_assertion_is_public_provider_parameter
(provider: type)
tests/server/auth/providers/test_identity_assertion_forwarding.py:35
Method
test_identity_hash_survives_the_proxy
(self)
tests/server/providers/test_prefab_roundtrip.py:242
Function
test_identity_policy_forwards_full_implementation
( frontend_mode: str, identity: Literal["proxy", "upstream"] )
tests/server/providers/proxy/test_server_metadata.py:213
Function
test_idle_session_is_terminated_after_timeout
(use_http_app: bool)
tests/server/http/test_session_idle_timeout.py:159
Function
test_idle_timeout_can_be_disabled
(use_http_app: bool)
tests/server/http/test_session_idle_timeout.py:66
Method
test_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
Method
test_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
Method
test_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
Function
test_ignore_pattern_matches_remote_namespaced_name_for_hashed_calls
()
tests/cli/test_fastmcp_remote.py:301
Function
test_ignore_tools_transform_filters_matching_names
()
tests/cli/test_fastmcp_remote.py:257
Method
test_ignored_duplicate_prompt_does_not_disable_the_existing_one
(self)
tests/server/providers/test_local_provider.py:688
Method
test_ignored_duplicate_prompt_returns_the_existing_prompt
(self)
tests/server/providers/test_local_provider.py:631
Method
test_ignored_duplicate_resource_does_not_disable_the_existing_one
(self)
tests/server/providers/test_local_provider.py:674
Method
test_ignored_duplicate_resource_returns_the_existing_resource
(self)
tests/server/providers/test_local_provider.py:622
← previous
next →
10,801–10,900 of 16,725, ranked by callers