MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Functiontest_authentication_preserves_two_users_with_one_dcr_client
The bearer verifier must preserve user separation with revocation enabled.
tests/server/auth/oauth_proxy/test_revocation.py:128
Methodtest_authkit_domain_https_prefix_handling
Test that authkit_domain handles missing https:// prefix.
tests/server/auth/providers/test_workos.py:51
Methodtest_author_description_is_preserved_and_appended
(self)
tests/server/test_session_provider.py:554
Methodtest_authorization_code_body
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:133
Methodtest_authorization_code_stored_in_storage
Verify authorization codes are stored in AsyncKeyValue storage.
tests/server/auth/test_oauth_consent_flow.py:270
Methodtest_authorization_error_propagates
AuthorizationError from auth check should propagate with custom message.
tests/server/auth/test_authorization.py:337
Methodtest_authorization_error_stops_chain
AuthorizationError should stop the check chain and propagate.
tests/server/auth/test_authorization.py:357
Methodtest_authorization_get
Test the full authorization flow.
tests/server/test_auth_integration.py:761
Functiontest_authorization_header_disables_oauth_by_default
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:100
Methodtest_authorization_response_iss_matches_metadata_issuer
RFC 9207: the `iss` on a client-facing response matches the metadata.
tests/server/auth/test_issuer_url_identity.py:152
Methodtest_authorization_server_metadata_forwards_keycloak
Test that authorization server metadata is forwarded from Keycloak. Note: This test is skipped because mocking httpx2.AsyncClient conflicts w
tests/integration_tests/auth/test_keycloak_provider_integration.py:91
Methodtest_authorization_server_metadata_issuer_is_base_url
(self)
tests/server/auth/test_issuer_url_identity.py:237
Methodtest_authorization_server_metadata_issuer_is_issuer_url
(self)
tests/server/auth/test_issuer_url_identity.py:120
Methodtest_authorization_server_metadata_issuer_is_issuer_url
(self)
tests/server/auth/test_issuer_url_identity.py:264
Methodtest_authorization_servers_configuration
Test that authorization_servers contains the correct PropelAuth URL.
tests/server/auth/providers/test_propelauth.py:95
Methodtest_authorization_servers_configuration
Test that authorization servers are configured correctly.
tests/server/auth/providers/test_scalekit.py:117
Methodtest_authorization_servers_configured
Test that authorization servers list is configured correctly.
tests/server/auth/providers/test_supabase.py:81
Methodtest_authorization_servers_point_to_keycloak
Test that authorization_servers points directly to the Keycloak realm.
tests/server/auth/providers/test_keycloak.py:64
Methodtest_authorization_symbols_resolve_from_their_documented_paths
(self)
tests/test_upgrade_from_v3.py:172
Methodtest_authorize_accepts_exact_match_when_server_has_query_params
Test that exact query param match succeeds when server has query params.
tests/server/auth/oauth_proxy/test_config.py:295
Methodtest_authorize_accepts_matching_resource
Test that authorization accepts requests with matching resource.
tests/server/auth/oauth_proxy/test_config.py:114
Methodtest_authorize_accepts_no_resource
Test that authorization accepts requests without resource parameter.
tests/server/auth/oauth_proxy/test_config.py:167
Methodtest_authorize_accepts_resource_with_query_params
Test that authorization accepts resource URLs with query parameters. Per RFC 8707, clients may include query parameters in resource URLs.
tests/server/auth/oauth_proxy/test_config.py:191
Methodtest_authorize_appends_additional_scopes
authorize() should append additional_authorize_scopes to the authorization request.
tests/server/auth/providers/test_azure.py:384
Methodtest_authorize_creates_transaction
Test that authorize creates transaction and redirects to consent.
tests/server/auth/oauth_proxy/test_authorization.py:20
Functiontest_authorize_device_presents_challenge_before_opening_browser
()
tests/cli/deploy/test_authentication.py:119
Methodtest_authorize_does_not_widen_explicit_client_scopes
An explicit narrow scope request is never widened to the configured set.
tests/server/auth/oauth_proxy/test_authorization.py:95
Methodtest_authorize_filters_resource_and_stores_unprefixed_scopes
authorize() should drop resource parameter and store unprefixed scopes for MCP clients.
tests/server/auth/providers/test_azure.py:314
Methodtest_authorize_form_post
Test the authorization endpoint using POST with form-encoded data.
tests/server/test_auth_integration.py:718
Methodtest_authorize_invalid_client_id
Test authorization endpoint with invalid client_id. According to the OAuth2.0 spec, if client_id is invalid, the server should inform
tests/server/test_auth_integration_errors.py:299
Methodtest_authorize_invalid_redirect_uri
Test authorization endpoint with invalid redirect_uri. According to the OAuth2.0 spec, if redirect_uri is invalid or doesn't match, t
tests/server/test_auth_integration_errors.py:349
Methodtest_authorize_invalid_scope
Test authorization endpoint with invalid scope. Invalid scope should redirect with invalid_scope error.
tests/server/test_auth_integration_errors.py:508
Methodtest_authorize_missing_client_id
Test authorization endpoint with missing client_id. According to the OAuth2.0 spec, if client_id is missing, the server should inform
tests/server/test_auth_integration_errors.py:274
Methodtest_authorize_missing_pkce_challenge
Test authorization endpoint with missing PKCE code_challenge. Missing PKCE parameters should result in invalid_request error.
tests/server/test_auth_integration_errors.py:478
Methodtest_authorize_missing_redirect_uri
Test authorization endpoint with missing redirect_uri. If client has only one registered redirect_uri, it can be omitted.
tests/server/test_auth_integration_errors.py:324
Methodtest_authorize_missing_redirect_uri_multiple_registered
Test endpoint with missing redirect_uri with multiple registered URIs. If client has multiple registered redirect_uris, redirect_uri must be
tests/server/test_auth_integration_errors.py:388
Methodtest_authorize_missing_response_type
Test authorization endpoint with missing response_type. Missing required parameter should result in invalid_request error.
tests/server/test_auth_integration_errors.py:446
Methodtest_authorize_records_configured_scopes_when_client_omits_scope
A client that omits `scope` has the configured default recorded. The transaction is the single source of truth for what is being auth
tests/server/auth/oauth_proxy/test_authorization.py:61
Methodtest_authorize_redirects_to_consent_page
Verify authorize() redirects to /consent instead of upstream.
tests/server/auth/test_oauth_consent_flow.py:399
Methodtest_authorize_rejects_different_path_with_query_params
Test that query param normalization doesn't bypass path validation.
tests/server/auth/oauth_proxy/test_config.py:222
Methodtest_authorize_rejects_mismatched_resource
Test that authorization rejects requests with mismatched resource.
tests/server/auth/oauth_proxy/test_config.py:86
Methodtest_authorize_rejects_no_query_when_server_has_query_params
Test that missing query params are rejected when server requires them.
tests/server/auth/oauth_proxy/test_config.py:333
Methodtest_authorize_rejects_old_hardcoded_mcp_path
Test that old hardcoded /mcp path is rejected when server uses different path.
tests/server/auth/oauth_proxy/test_config.py:138
Methodtest_authorize_requires_exact_match_when_server_has_query_params
Test that when server URL has query params, exact match is required. If a server configures its resource URL with query params (e.g., for
tests/server/auth/oauth_proxy/test_config.py:250
Methodtest_authorize_triggers_cull
The OAuth write path reaps state left behind by a previous run.
tests/server/auth/test_oauth_proxy_storage.py:321
Methodtest_authorize_unsupported_response_type
Test authorization endpoint with unsupported response_type. According to the OAuth2.0 spec, for other errors like unsupported_response_type,
tests/server/test_auth_integration_errors.py:413
Methodtest_authorized_access
(self, mcp_server_url: str, bearer_token)
tests/server/auth/test_jwt_provider_bearer.py:522
Methodtest_authorized_disable_prompt
Test that authenticated requests to disable a prompt are allowed.
tests/contrib/test_component_manager.py:450
Methodtest_authorized_disable_resource
Test that authenticated requests to disable a resource are allowed.
tests/contrib/test_component_manager.py:387
Methodtest_authorized_disable_resource
(self)
tests/contrib/test_component_manager.py:619
Methodtest_authorized_disable_tool
Test that authenticated requests to disable a tool are allowed.
tests/contrib/test_component_manager.py:320
Methodtest_authorized_enable_prompt
Test that authenticated requests to enable a prompt are allowed.
tests/contrib/test_component_manager.py:412
Methodtest_authorized_enable_prompt
(self)
tests/contrib/test_component_manager.py:652
Methodtest_authorized_enable_resource
Test that authenticated requests to enable a resource are allowed.
tests/contrib/test_component_manager.py:348
Methodtest_authorized_enable_tool
Test that authenticated requests to enable a tool are allowed.
tests/contrib/test_component_manager.py:296
Methodtest_authorized_enable_tool
(self)
tests/contrib/test_component_manager.py:587
Methodtest_auto_allows_configured_origin_without_trusted_host_boundary
(self)
tests/server/http/test_http_auth_middleware.py:335
Methodtest_auto_allows_public_host_when_server_scope_is_ambiguous
(self)
tests/server/http/test_http_auth_middleware.py:295
Methodtest_auto_approve_sets_consent_binding_cookie
Auto-approve path (previously approved client in 'remember' mode) must also set the binding cookie.
tests/server/auth/test_oauth_consent_page.py:690
Methodtest_auto_call_tool
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:76
Methodtest_auto_configures_from_client_and_tenant
(self)
tests/server/auth/providers/test_azure_scopes.py:413
Methodtest_auto_falls_back_cleanly_when_discover_is_rejected
A server that rejects the server/discover probe with a JSON-RPC error (e.g. a non-FastMCP legacy server that doesn't implement discover) makes
tests/client/client/test_mode_negotiation.py:103
Methodtest_auto_initialize_default
Test that auto_initialize=True is the default and works automatically.
tests/client/client/test_initialize.py:28
Methodtest_auto_initialize_explicit_true
Test explicit auto_initialize=True.
tests/client/client/test_initialize.py:38
Methodtest_auto_initialize_false
Test that auto_initialize=False prevents automatic initialization.
tests/client/client/test_initialize.py:46
Functiontest_auto_negotiates_modern_via_discover
`mode='auto'` probes server/discover and adopts 2026-07-28, populating server_info/capabilities from the DiscoverResult.
tests/server/test_protocol_eras.py:179
Methodtest_auto_negotiates_modern_via_discover
auto probes server/discover and adopts the modern era in-memory.
tests/client/client/test_mode_negotiation.py:68
Methodtest_auto_reaches_modern_for_dual_era_server
FastMCP always serves both eras, so auto reaches modern here. The fallback denylist itself is exercised by the SDK's own ``negotiate_
tests/client/client/test_mode_negotiation.py:87
Methodtest_auto_rejects_same_origin_fallback_without_trusted_host_boundary
( self, )
tests/server/http/test_http_auth_middleware.py:323
Methodtest_auto_rejects_untrusted_host_before_session_initialization
(self)
tests/server/http/test_http_auth_middleware.py:345
Methodtest_auto_rejects_untrusted_host_when_server_scope_is_loopback
(self)
tests/server/http/test_http_auth_middleware.py:304
Methodtest_auto_rejects_untrusted_origin_before_session_initialization
(self)
tests/server/http/test_http_auth_middleware.py:366
Methodtest_auto_synthesizes_renderer_resource
Prefab tools synthesize shared renderer resources on demand.
tests/test_apps.py:714
Methodtest_auto_uses_legacy_on_legacy_only_transport
A `legacy_only` transport (e.g. SSE) negotiates the handshake under auto. SSE cannot serve the sessionless modern era, so a client with the d
tests/client/client/test_mode_negotiation.py:141
Methodtest_auto_wrapped_scalar_is_validated
(self)
tests/client/test_elicitation.py:838
Methodtest_autoapprove_cookie_skips_consent
Verify valid approval cookie auto-approves and redirects to upstream in 'remember' mode.
tests/server/auth/test_oauth_consent_flow.py:1167
Methodtest_automatic_resource_url_capture
Test that resource URL is automatically captured from MCP path. This test verifies PR #1682 functionality where the resource URL shou
tests/server/auth/test_auth_provider.py:301
Methodtest_automatic_resource_url_with_nested_path
Test automatic resource URL capture with deeply nested MCP path.
tests/server/auth/test_auth_provider.py:323
Methodtest_available_port_uses_uvicorn_host_family
( self, host: str, expected_family: socket.AddressFamily, monkeypatch: pytest.
tests/client/auth/test_oauth_client.py:364
Methodtest_aws_cognito_provider_defaults_to_bounded_timeout
AWSCognitoProvider exposes and defaults the discovery timeout.
tests/server/auth/test_oidc_proxy.py:952
Methodtest_azure_provider_threads_http_client
(self)
tests/server/auth/providers/test_http_client.py:348
Methodtest_azure_specific_scopes
Test handling of custom API scope formats.
tests/server/auth/providers/test_azure.py:155
Methodtest_b2c_accepts_an_explicit_prompt
The B2C opt-out is a default, not a restriction.
tests/server/auth/providers/test_azure.py:996
Methodtest_b2c_custom_domain
from_b2c() uses custom_domain in place of {tenant}.b2clogin.com.
tests/server/auth/providers/test_azure.py:1181
Methodtest_b2c_custom_domain_with_scheme_normalized
from_b2c() strips scheme and trailing slash from custom_domain.
tests/server/auth/providers/test_azure.py:1199
Methodtest_b2c_custom_identifier_uri
from_b2c() respects an explicit identifier_uri override.
tests/server/auth/providers/test_azure.py:1218
Methodtest_b2c_custom_policy_name
from_b2c() accepts custom policy names (B2C_1A_*).
tests/server/auth/providers/test_azure.py:1266
Methodtest_b2c_does_not_send_select_account
B2C user flows only support prompt=login, so send no prompt by default.
tests/server/auth/providers/test_azure.py:969
Methodtest_b2c_endpoints_derived_correctly
from_b2c() produces correct B2C authority and tenant path.
tests/server/auth/providers/test_azure.py:1102
Methodtest_b2c_explicit_token_issuer
from_b2c() forwards an explicit token_issuer to the verifier.
tests/server/auth/providers/test_azure.py:1161
Methodtest_b2c_identifier_uri_uses_https
from_b2c() sets identifier_uri with https:// scheme, not api://.
tests/server/auth/providers/test_azure.py:1126
Methodtest_b2c_issuer_disabled_by_default
from_b2c() disables issuer validation by default (token_issuer=None).
tests/server/auth/providers/test_azure.py:1145
Methodtest_b2c_obo_raises_not_implemented
from_b2c() providers must reject OBO calls with NotImplementedError.
tests/server/auth/providers/test_azure.py:1342
Methodtest_b2c_returns_azure_provider_instance
from_b2c() returns an AzureProvider, not a subclass.
tests/server/auth/providers/test_azure.py:1251
Methodtest_b2c_scope_prefix_uses_https
from_b2c() scopes are prefixed with the https:// identifier URI.
tests/server/auth/providers/test_azure.py:1235
Methodtest_b2c_token_accepted_with_any_issuer
B2C provider (issuer=None) accepts tokens from any issuer.
tests/server/auth/providers/test_azure.py:1282
Methodtest_b2c_token_rejected_with_wrong_audience
B2C provider still rejects tokens with wrong audience.
tests/server/auth/providers/test_azure.py:1312
Methodtest_backend_calls_verify_token_method
Test that BearerAuthBackend calls verify_token on the verifier.
tests/server/http/test_bearer_auth_backend.py:129
Methodtest_backend_handles_verify_token_none_result
Test that BearerAuthBackend handles None result from verify_token.
tests/server/http/test_bearer_auth_backend.py:157
Functiontest_backend_pagination_is_bounded
(monkeypatch: pytest.MonkeyPatch)
tests/server/providers/proxy/test_skills.py:184
← previousnext →7,601–7,700 of 15,974, ranked by callers