MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,098 in github.com/PrefectHQ/fastmcp

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
Methodtest_verify_token_whitelist_pattern
Test using verifier with a whitelist of allowed tokens.
tests/server/auth/test_debug_verifier.py:137
Methodtest_version_command_copy_functionality
Test that the version command copies to clipboard when --copy is used.
tests/cli/test_cli.py:82
Methodtest_version_command_execution
Test that version command executes properly.
tests/cli/test_cli.py:59
Methodtest_version_command_parsing
Test that the version command parses arguments correctly.
tests/cli/test_cli.py:65
Methodtest_version_command_with_copy_flag
Test that the version command parses --copy flag correctly.
tests/cli/test_cli.py:73
Methodtest_version_filter_applied_before_catalog
A VersionFilter added before the CatalogTransform restricts what the catalog sees.
tests/server/transforms/test_catalog.py:183
Methodtest_version_filter_filters_out_high_mounted_version
VersionFilter hides mounted components outside the range.
tests/server/versioning/test_filtering.py:537
Methodtest_version_gte_filters_low_versions
VersionFilter(version_gte='2.0') hides v1, shows v2 and v3.
tests/server/versioning/test_filtering.py:50
Methodtest_version_lt_filters_high_versions
VersionFilter(version_lt='3.0') hides v3+, shows v1 and v2.
tests/server/versioning/test_filtering.py:16
Methodtest_version_metadata_injected
Highest-version tool has meta.fastmcp.versions listing all available.
tests/server/transforms/test_catalog.py:148
Methodtest_version_range
VersionFilter(version_gte='2.0', version_lt='3.0') shows only v2.x.
tests/server/versioning/test_filtering.py:88
Functiontest_version_scoped_removal_keeps_surviving_version
Evicting on remove_tool must not go further than the removed version.
tests/server/test_mcp_param_schema_cache.py:213
Methodtest_version_sort_key_is_total_ordering_tuple
(self)
tests/server/versioning/test_versioning.py:136
Methodtest_version_spec_serialization
Test that VersionSpec is serialized/deserialized correctly.
tests/server/test_session_visibility.py:204
Methodtest_version_with_at_symbol_rejected
Version strings containing '@' should be rejected.
tests/server/versioning/test_calls.py:80
Methodtest_versioned_prompt_via_provider
FileSystemProvider should preserve prompt version.
tests/fs/test_provider.py:746
Methodtest_versioned_resource_via_provider
FileSystemProvider should preserve resource version.
tests/fs/test_provider.py:723
Functiontest_versioned_template_completion_checks_the_listed_version
Completion authorizes the version clients list, not the first one registered.
tests/server/test_completions.py:468
Methodtest_versioned_tool_via_provider
FileSystemProvider should preserve tool version in list_tools output.
tests/fs/test_provider.py:700
Methodtest_versions_of_one_tool_are_a_single_target
Versions are listed individually and share an identity, but they also share a name that resolves to the highest version on its own. On
tests/server/providers/test_prefab_roundtrip.py:457
Methodtest_very_deeply_nested_schema_stops_with_value_error
(self)
tests/utilities/json_schema_type/test_generated_classes.py:525
← previousnext →15,501–15,600 of 16,098, ranked by callers