MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,224 in github.com/PrefectHQ/fastmcp

Methodtest_valid_scopes_passed_through
Test that valid_scopes is passed to OAuthProxy.
tests/server/auth/providers/test_clerk.py:168
Methodtest_valid_scopes_passed_through
Test that valid_scopes is passed to OAuthProxy.
tests/server/auth/providers/test_google.py:162
Methodtest_valid_scopes_passed_through
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:99
Methodtest_valid_scopes_passed_through
valid_scopes is forwarded to OAuthProxy and advertised via DCR.
tests/server/auth/providers/test_workos.py:145
Methodtest_valid_scopes_preserved_with_verify_id_token
verify_id_token restores required_scopes without clobbering valid_scopes.
tests/server/auth/test_oidc_proxy.py:1083
Methodtest_valid_scopes_widens_advertised_set
valid_scopes broadens the advertised/registerable set beyond required_scopes.
tests/server/auth/test_oidc_proxy.py:990
Methodtest_valid_scopes_with_custom_token_verifier
valid_scopes is allowed alongside a custom token_verifier (no error).
tests/server/auth/test_oidc_proxy.py:1047
Methodtest_valid_symmetric_token_validation
Test validation of a valid token signed with symmetric key.
tests/server/auth/test_jwt_provider.py:369
Methodtest_valid_token_basic
A valid token returns an AccessToken with user claims from userinfo.
tests/server/auth/providers/test_clerk.py:222
Methodtest_valid_token_openid_only
A token with only openid scope is accepted; client_id comes from 'sub'.
tests/server/auth/providers/test_google.py:265
Methodtest_valid_token_validation
Test validation of a valid token.
tests/server/auth/test_jwt_provider_bearer.py:106
Methodtest_valid_token_verification
Test successful token verification.
tests/server/auth/providers/test_introspection.py:116
Methodtest_valid_token_with_email_and_profile
A token with email+profile scope returns correct scopes and profile claims.
tests/server/auth/providers/test_google.py:291
Methodtest_valid_token_with_userinfo_scopes
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:123
Methodtest_valid_token_with_whoami_scopes
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:147
Methodtest_valid_tool_names_no_warnings
Valid tool names should not produce warnings.
tests/tools/tool/test_tool.py:603
Methodtest_valid_transport_values
Test that all valid transport values are accepted.
tests/cli/test_mcp_server_config_integration.py:276
Methodtest_valid_true_values
Test that all accepted truthy string values coerce to True.
tests/resources/test_resource_template_query_params.py:295
Methodtest_validate_mcp_config
Test creating a server from an MCPConfig file.
tests/cli/test_run.py:149
Methodtest_validate_output_false_allows_nonconforming_response
With validate_output=False, responses that don't match the spec succeed.
tests/server/providers/openapi/test_openapi_features.py:1307
Methodtest_validate_output_false_preserves_wrap_result_flag
validate_output=False preserves x-fastmcp-wrap-result for array responses.
tests/server/providers/openapi/test_openapi_features.py:1248
Methodtest_validate_output_false_uses_permissive_schema
validate_output=False replaces the schema with a permissive one.
tests/server/providers/openapi/test_openapi_features.py:1230
Methodtest_validate_output_false_wrapped_array_hydrates_data
validate_output=False still hydrates result.data for wrapped non-object responses. Regression test for https://github.com/PrefectHQ/fastmcp/i
tests/server/providers/openapi/test_openapi_features.py:1269
Methodtest_validate_output_false_wraps_non_dict_response
Non-dict responses are wrapped even when schema says object and validate_output=False.
tests/server/providers/openapi/test_openapi_features.py:1344
Methodtest_validate_output_true_preserves_extracted_schema
Default validate_output=True uses the real extracted schema.
tests/server/providers/openapi/test_openapi_features.py:1214
Methodtest_validate_redirect_uri_exact_match
Test redirect_uri validation with exact match.
tests/server/auth/test_cimd.py:188
Methodtest_validate_redirect_uri_loopback_no_port
RFC 8252 §7.3: loopback URI without port should match any port.
tests/server/auth/test_cimd.py:207
Methodtest_validate_redirect_uri_wildcard_match
Test redirect_uri validation with wildcard port.
tests/server/auth/test_cimd.py:197
Methodtest_validate_url_skips_resolution_and_blocklist
Proxy mode returns resolved_ips=[] without resolving or blocklisting, and carries the configured proxy URL for the fetch to use.
tests/server/auth/test_ssrf_protection.py:625
Methodtest_validate_url_still_enforces_require_path
Proxy mode keeps the require_path check (CIMD).
tests/server/auth/test_ssrf_protection.py:657
Methodtest_validate_url_still_rejects_http
Proxy mode keeps the HTTPS-only scheme check.
tests/server/auth/test_ssrf_protection.py:643
Methodtest_validate_url_still_rejects_missing_host
Proxy mode keeps the host check.
tests/server/auth/test_ssrf_protection.py:650
Methodtest_validates_short_form_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/providers/test_azure_scopes.py:428
Methodtest_validates_token_with_client_id_audience
Azure AD v2 tokens use the bare client_id GUID as audience.
tests/server/auth/providers/test_azure_scopes.py:449
Methodtest_validates_token_with_custom_identifier_uri_audience
Custom identifier_uri (e.g. Bicep deployments) accepted as audience.
tests/server/auth/providers/test_azure_scopes.py:472
Methodtest_validation_alias_preserves_type_coercion
(self)
tests/resources/test_resource_template.py:1403
Functiontest_validation_allows_enum_arrays
Test validation accepts arrays with enum items.
tests/client/test_elicitation_enums.py:440
Functiontest_validation_allows_enum_arrays_with_anyof
Test validation accepts arrays with anyOf enum pattern (SEP-1330 compliant).
tests/client/test_elicitation_enums.py:454
Methodtest_validation_error
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:199
Methodtest_validation_error_for_invalid_data
Test that validation errors are raised for invalid data.
tests/utilities/test_components.py:178
Methodtest_validation_error_logs_warning_without_traceback
(self, caplog)
tests/server/test_input_validation.py:605
Functiontest_validation_error_propagates_from_dependency
ValidationError raised in a dependency should propagate unchanged.
tests/server/test_dependencies.py:733
Methodtest_validation_errors_are_not_masked_when_enabled
(self)
tests/client/client/test_error_handling.py:81
Methodtest_validation_logs_omit_client_data
( self, caplog, arguments, error_type )
tests/server/test_input_validation.py:655
Functiontest_validation_rejects_non_enum_arrays
Test validation still rejects arrays of objects.
tests/client/test_elicitation_enums.py:473
Functiontest_validation_rejects_primitive_arrays
Test validation rejects arrays of primitives without enum pattern.
tests/client/test_elicitation_enums.py:488
Methodtest_value_containing_equals
(self)
tests/cli/test_client_commands.py:255
Methodtest_values_coerce_and_defaults_apply
(self, config_reader)
tests/resources/test_resource_template_query_params.py:407
Methodtest_values_coerce_like_real_annotations
(self, postponed_get_config)
tests/resources/test_resource_template_query_params.py:362
Methodtest_various_auth_headers_stripped_on_cross_origin
Verify that different auth header formats are all stripped.
tests/client/transports/test_no_redirect.py:99
Methodtest_various_invalid_boolean_values
Test that various invalid boolean strings raise ValueError.
tests/resources/test_resource_template_query_params.py:323
Methodtest_various_type_conversions
Test type conversion for various data types.
tests/prompts/test_prompt.py:288
Functiontest_vendor_presets_name_their_folder
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/skills/test_deprecated_paths.py:146
Methodtest_verifier_audience_pinned_to_client_id
The provider's token verifier only accepts tokens minted for its own client.
tests/server/auth/providers/test_google.py:43
Methodtest_verifier_full_uris_unchanged
Full URIs should pass through normalization unchanged.
tests/server/auth/providers/test_google.py:239
Methodtest_verifier_normalizes_required_scopes
GoogleTokenVerifier should normalize shorthands in required_scopes.
tests/server/auth/providers/test_google.py:227
Methodtest_verifier_only_challenge_omits_unserved_resource_metadata
( self, transport: Literal["http", "sse"], url_parameter: str, shape: str,
tests/server/http/test_http_auth_middleware.py:204
Methodtest_verifier_only_scope_translation_in_auth_challenges
A sole verifier translates challenge scopes for both 401 and 403.
tests/server/auth/test_multi_auth.py:624
Methodtest_verifier_order_matters
Verifiers are tried in order; first match wins.
tests/server/auth/test_multi_auth.py:296
Methodtest_verifier_used_by_fastmcp
Test that IntrospectionTokenVerifier can be used as FastMCP auth.
tests/server/auth/providers/test_introspection.py:958
Methodtest_verifiers_only
(self)
tests/server/auth/test_multi_auth.py:91
Methodtest_verifiers_only_no_server
MultiAuth with only verifiers (no server) works.
tests/server/auth/test_multi_auth.py:317
Functiontest_verify_ca_bundle_path_passes_to_transport
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:223
Functiontest_verify_defaults_to_none
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_fastmcp_remote.py:200
Methodtest_verify_factory_still_enables_redirects
The verify factory should still create clients with follow_redirects=True.
tests/client/transports/test_no_redirect.py:178
Functiontest_verify_false_disables_verification_on_transport
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:208
Methodtest_verify_id_token_disabled_by_default
Default behavior: verify the access_token.
tests/server/auth/test_oidc_proxy_token.py:74
Methodtest_verify_id_token_does_not_enforce_scopes_on_verifier
When verify_id_token is enabled, required_scopes should not be passed to the JWTVerifier since id_tokens don't carry scope claims.
tests/server/auth/test_oidc_proxy_token.py:296
Methodtest_verify_id_token_returns_id_token
When enabled, verify the id_token instead of access_token.
tests/server/auth/test_oidc_proxy_token.py:95
Methodtest_verify_id_token_returns_none_when_missing
When enabled but id_token is absent, return None.
tests/server/auth/test_oidc_proxy_token.py:117
Methodtest_verify_id_token_survives_refresh_without_id_token
id_token from original auth is preserved when refresh omits it.
tests/server/auth/test_oidc_proxy_token.py:172
Methodtest_verify_id_token_updated_when_refresh_includes_it
id_token is updated when refresh response includes a new one.
tests/server/auth/test_oidc_proxy_token.py:206
Methodtest_verify_id_token_uses_client_id_as_verifier_audience
When verify_id_token is enabled, the verifier audience should be client_id (matching id_token.aud), not the API audience parameter.
tests/server/auth/test_oidc_proxy_token.py:239
Methodtest_verify_id_token_without_audience_uses_client_id
When verify_id_token is enabled without an audience param, the verifier audience should still be client_id.
tests/server/auth/test_oidc_proxy_token.py:271
Methodtest_verify_id_token_works_with_custom_verifier
verify_id_token can be combined with a custom token_verifier.
tests/server/auth/test_oidc_proxy_token.py:141
Functiontest_verify_passes_to_sse_transport
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:235
Methodtest_verify_propagates_to_preconstructed_oauth_instance
(self)
tests/client/transports/test_transports.py:206
Methodtest_verify_token_accepts_permissions_as_required_scopes
( self, rsa_key_pair: RSAKeyPair )
tests/server/auth/providers/test_auth0_mcp.py:52
Methodtest_verify_token_async_callable_exception
Test that exceptions in async validate callable are handled gracefully.
tests/server/auth/test_debug_verifier.py:125
Methodtest_verify_token_async_callable_failure
Test token verification with custom async callable that fails.
tests/server/auth/test_debug_verifier.py:101
Methodtest_verify_token_async_callable_success
Test token verification with custom async callable that passes.
tests/server/auth/test_debug_verifier.py:81
Methodtest_verify_token_callable_exception
Test that exceptions in validate callable are handled gracefully.
tests/server/auth/test_debug_verifier.py:113
Methodtest_verify_token_default_accepts_all
Test that default verifier accepts all non-empty tokens.
tests/server/auth/test_debug_verifier.py:33
Methodtest_verify_token_delegates_to_verifier
Test that verify_token delegates to the token verifier.
tests/server/auth/test_remote_auth_provider.py:41
Methodtest_verify_token_github_api_failure
Test token verification when GitHub API returns error.
tests/server/auth/providers/test_github.py:100
Methodtest_verify_token_pattern_matching
Test using verifier with regex-like pattern matching.
tests/server/auth/test_debug_verifier.py:151
Methodtest_verify_token_rejects_access_token_as_refresh
Access tokens must not be accepted when expecting refresh tokens.
tests/server/auth/test_jwt_issuer.py:302
Methodtest_verify_token_rejects_empty
Test that empty tokens are rejected even with default verifier.
tests/server/auth/test_debug_verifier.py:46
Methodtest_verify_token_rejects_malformed_tokens
Test that malformed tokens are rejected.
tests/server/auth/test_jwt_issuer.py:222
Methodtest_verify_token_rejects_missing_permissions
( self, rsa_key_pair: RSAKeyPair )
tests/server/auth/providers/test_auth0_mcp.py:71
Methodtest_verify_token_rejects_missing_required_scopes
( self, httpx_mock: HTTPXMock )
tests/server/auth/providers/test_workos.py:367
Methodtest_verify_token_rejects_refresh_token_as_access
Refresh tokens must not be accepted when expecting access tokens.
tests/server/auth/test_jwt_issuer.py:290
Methodtest_verify_token_returns_actual_token_scopes
( self, httpx_mock: HTTPXMock )
tests/server/auth/providers/test_workos.py:389
Methodtest_verify_token_success
Test successful token verification.
tests/server/auth/providers/test_github.py:118
Methodtest_verify_token_sync_callable_failure
Test token verification with custom sync callable that fails.
tests/server/auth/test_debug_verifier.py:73
Methodtest_verify_token_sync_callable_success
Test token verification with custom sync callable that passes.
tests/server/auth/test_debug_verifier.py:56
Methodtest_verify_token_validates_audience
Test that tokens for different audiences are rejected.
tests/server/auth/test_jwt_issuer.py:204
Methodtest_verify_token_validates_expiration
Test that expired tokens are rejected.
tests/server/auth/test_jwt_issuer.py:163
Methodtest_verify_token_validates_issuer
Test that tokens from different issuers are rejected.
tests/server/auth/test_jwt_issuer.py:186
Methodtest_verify_token_validates_signature
Test that token verification fails with wrong signing key.
tests/server/auth/test_jwt_issuer.py:141
← previousnext →15,601–15,700 of 16,224, ranked by callers