MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

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:447
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:377
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:966
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:1059
Methodtest_b2c_custom_domain
from_b2c() uses custom_domain in place of {tenant}.b2clogin.com.
tests/server/auth/providers/test_azure.py:1244
Methodtest_b2c_custom_domain_with_scheme_normalized
from_b2c() strips scheme and trailing slash from custom_domain.
tests/server/auth/providers/test_azure.py:1262
Methodtest_b2c_custom_identifier_uri
from_b2c() respects an explicit identifier_uri override.
tests/server/auth/providers/test_azure.py:1281
Methodtest_b2c_custom_policy_name
from_b2c() accepts custom policy names (B2C_1A_*).
tests/server/auth/providers/test_azure.py:1329
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:1032
Methodtest_b2c_endpoints_derived_correctly
from_b2c() produces correct B2C authority and tenant path.
tests/server/auth/providers/test_azure.py:1165
Methodtest_b2c_explicit_token_issuer
from_b2c() forwards an explicit token_issuer to the verifier.
tests/server/auth/providers/test_azure.py:1224
Methodtest_b2c_identifier_uri_uses_https
from_b2c() sets identifier_uri with https:// scheme, not api://.
tests/server/auth/providers/test_azure.py:1189
Methodtest_b2c_issuer_disabled_by_default
from_b2c() disables issuer validation by default (token_issuer=None).
tests/server/auth/providers/test_azure.py:1208
Methodtest_b2c_obo_raises_not_implemented
from_b2c() providers must reject OBO calls with NotImplementedError.
tests/server/auth/providers/test_azure.py:1405
Methodtest_b2c_returns_azure_provider_instance
from_b2c() returns an AzureProvider, not a subclass.
tests/server/auth/providers/test_azure.py:1314
Methodtest_b2c_scope_prefix_uses_https
from_b2c() scopes are prefixed with the https:// identifier URI.
tests/server/auth/providers/test_azure.py:1298
Methodtest_b2c_token_accepted_with_any_issuer
B2C provider (issuer=None) accepts tokens from any issuer.
tests/server/auth/providers/test_azure.py:1345
Methodtest_b2c_token_rejected_with_wrong_audience
B2C provider still rejects tokens with wrong audience.
tests/server/auth/providers/test_azure.py:1375
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
Functiontest_backend_sees_only_front_capabilities
(backend: FastMCP, front_mode: str)
tests/server/providers/proxy/test_relayed_capabilities.py:153
Methodtest_backend_tool_callable_by_hash_through_a_proxy
(self)
tests/server/providers/test_prefab_roundtrip.py:251
Methodtest_backend_tool_callable_through_a_namespaced_proxy
(self)
tests/server/providers/test_prefab_roundtrip.py:260
Methodtest_backend_tool_callable_through_chained_proxies
(self)
tests/server/providers/test_prefab_roundtrip.py:274
Methodtest_backend_tool_hidden
(self)
tests/apps/test_form.py:91
Methodtest_backend_tool_listed_as_app_only
``store_files`` is listed but declares visibility=["app"], so the host keeps it out of the model's tool list.
tests/apps/test_file_upload.py:144
Methodtest_backend_tool_reachable_through_mounted_server
A FastMCPApp inside a mounted FastMCP server: the outer server's dispatcher walks through FastMCPProvider to find the backend tool by
tests/server/providers/test_prefab_roundtrip.py:151
Functiontest_backend_without_skills_has_an_empty_catalog
()
tests/server/providers/proxy/test_skills.py:123
Functiontest_background_context_logging_honors_server_log_level
( caplog: pytest.LogCaptureFixture, )
tests/server/test_context.py:717
Functiontest_background_context_logging_without_session
()
tests/server/test_context.py:702
Functiontest_background_task_can_read_snapshotted_request_headers
A background task worker reads the HTTP headers snapshotted at submission. There is no client task-submission API yet (Phase 4), so the task is d
tests/server/http/test_http_dependencies.py:238
Methodtest_background_task_detects_advertised_extension
The stored session preserves the client's advertised capabilities, so an advertised extension is detected even with no request context.
tests/tasks/server/test_context_background_task.py:260
Methodtest_background_task_honors_session_level
A background task has a stored session but no request context; the per-session minimum registered via logging/setLevel must still gate
tests/tasks/server/test_context_background_task.py:209
Methodtest_background_task_no_extensions_returns_false
When the client advertised no extensions, detection returns False.
tests/tasks/server/test_context_background_task.py:271
Functiontest_background_task_raises_on_error_by_default
(tool_task_server: FastMCP)
tests/tasks/client/test_client_tool_tasks.py:92
Functiontest_background_task_returns_error_when_not_raising
( tool_task_server: FastMCP, )
tests/tasks/client/test_client_tool_tasks.py:99
Functiontest_background_task_runs_the_injected_tool_when_its_name_is_shared
()
tests/tasks/server/test_task_middleware.py:61
Functiontest_background_task_runs_the_injected_tool_when_registered_tool_is_not_task_capable
()
tests/tasks/server/test_task_middleware.py:111
Functiontest_background_task_runs_the_injected_tool_when_signatures_differ
()
tests/tasks/server/test_task_middleware.py:86
← previousnext →8,101–8,200 of 16,725, ranked by callers