Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
Method
test_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
Method
test_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
Method
test_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
Method
test_validate_output_true_preserves_extracted_schema
Default validate_output=True uses the real extracted schema.
tests/server/providers/openapi/test_openapi_features.py:1214
Method
test_validate_redirect_uri_exact_match
Test redirect_uri validation with exact match.
tests/server/auth/test_cimd.py:188
Method
test_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
Method
test_validate_redirect_uri_wildcard_match
Test redirect_uri validation with wildcard port.
tests/server/auth/test_cimd.py:197
Method
test_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
Method
test_validate_url_still_enforces_require_path
Proxy mode keeps the require_path check (CIMD).
tests/server/auth/test_ssrf_protection.py:657
Method
test_validate_url_still_rejects_http
Proxy mode keeps the HTTPS-only scheme check.
tests/server/auth/test_ssrf_protection.py:643
Method
test_validate_url_still_rejects_missing_host
Proxy mode keeps the host check.
tests/server/auth/test_ssrf_protection.py:650
Method
test_validates_short_form_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/providers/test_azure_scopes.py:428
Method
test_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
Method
test_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
Method
test_validation_alias_preserves_type_coercion
(self)
tests/resources/test_resource_template.py:1403
Function
test_validation_allows_enum_arrays
Test validation accepts arrays with enum items.
tests/client/test_elicitation_enums.py:440
Function
test_validation_allows_enum_arrays_with_anyof
Test validation accepts arrays with anyOf enum pattern (SEP-1330 compliant).
tests/client/test_elicitation_enums.py:454
Method
test_validation_error
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:199
Method
test_validation_error_for_invalid_data
Test that validation errors are raised for invalid data.
tests/utilities/test_components.py:178
Method
test_validation_error_logs_warning_without_traceback
(self, caplog)
tests/server/test_input_validation.py:605
Function
test_validation_error_propagates_from_dependency
ValidationError raised in a dependency should propagate unchanged.
tests/server/test_dependencies.py:733
Method
test_validation_errors_are_not_masked_when_enabled
(self)
tests/client/client/test_error_handling.py:81
Method
test_validation_logs_omit_client_data
( self, caplog, arguments, error_type )
tests/server/test_input_validation.py:655
Function
test_validation_rejects_non_enum_arrays
Test validation still rejects arrays of objects.
tests/client/test_elicitation_enums.py:473
Function
test_validation_rejects_primitive_arrays
Test validation rejects arrays of primitives without enum pattern.
tests/client/test_elicitation_enums.py:488
Method
test_value_containing_equals
(self)
tests/cli/test_client_commands.py:255
Method
test_values_coerce_and_defaults_apply
(self, config_reader)
tests/resources/test_resource_template_query_params.py:407
Method
test_values_coerce_like_real_annotations
(self, postponed_get_config)
tests/resources/test_resource_template_query_params.py:362
Method
test_various_auth_headers_stripped_on_cross_origin
Verify that different auth header formats are all stripped.
tests/client/transports/test_no_redirect.py:99
Method
test_various_invalid_boolean_values
Test that various invalid boolean strings raise ValueError.
tests/resources/test_resource_template_query_params.py:323
Method
test_various_type_conversions
Test type conversion for various data types.
tests/prompts/test_prompt.py:288
Function
test_vendor_presets_name_their_folder
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/skills/test_deprecated_paths.py:146
Method
test_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
Method
test_verifier_full_uris_unchanged
Full URIs should pass through normalization unchanged.
tests/server/auth/providers/test_google.py:239
Method
test_verifier_normalizes_required_scopes
GoogleTokenVerifier should normalize shorthands in required_scopes.
tests/server/auth/providers/test_google.py:227
Method
test_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
Method
test_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
Method
test_verifier_order_matters
Verifiers are tried in order; first match wins.
tests/server/auth/test_multi_auth.py:296
Method
test_verifier_used_by_fastmcp
Test that IntrospectionTokenVerifier can be used as FastMCP auth.
tests/server/auth/providers/test_introspection.py:958
Method
test_verifiers_only
(self)
tests/server/auth/test_multi_auth.py:91
Method
test_verifiers_only_no_server
MultiAuth with only verifiers (no server) works.
tests/server/auth/test_multi_auth.py:317
Function
test_verify_ca_bundle_path_passes_to_transport
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:223
Function
test_verify_defaults_to_none
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_fastmcp_remote.py:200
Method
test_verify_factory_still_enables_redirects
The verify factory should still create clients with follow_redirects=True.
tests/client/transports/test_no_redirect.py:178
Function
test_verify_false_disables_verification_on_transport
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:208
Method
test_verify_id_token_disabled_by_default
Default behavior: verify the access_token.
tests/server/auth/test_oidc_proxy_token.py:74
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Function
test_verify_passes_to_sse_transport
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_fastmcp_remote.py:235
Method
test_verify_propagates_to_preconstructed_oauth_instance
(self)
tests/client/transports/test_transports.py:206
Method
test_verify_token_accepts_permissions_as_required_scopes
( self, rsa_key_pair: RSAKeyPair )
tests/server/auth/providers/test_auth0_mcp.py:52
Method
test_verify_token_async_callable_exception
Test that exceptions in async validate callable are handled gracefully.
tests/server/auth/test_debug_verifier.py:125
Method
test_verify_token_async_callable_failure
Test token verification with custom async callable that fails.
tests/server/auth/test_debug_verifier.py:101
Method
test_verify_token_async_callable_success
Test token verification with custom async callable that passes.
tests/server/auth/test_debug_verifier.py:81
Method
test_verify_token_callable_exception
Test that exceptions in validate callable are handled gracefully.
tests/server/auth/test_debug_verifier.py:113
Method
test_verify_token_default_accepts_all
Test that default verifier accepts all non-empty tokens.
tests/server/auth/test_debug_verifier.py:33
Method
test_verify_token_delegates_to_verifier
Test that verify_token delegates to the token verifier.
tests/server/auth/test_remote_auth_provider.py:41
Method
test_verify_token_github_api_failure
Test token verification when GitHub API returns error.
tests/server/auth/providers/test_github.py:100
Method
test_verify_token_pattern_matching
Test using verifier with regex-like pattern matching.
tests/server/auth/test_debug_verifier.py:151
Method
test_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
Method
test_verify_token_rejects_empty
Test that empty tokens are rejected even with default verifier.
tests/server/auth/test_debug_verifier.py:46
Method
test_verify_token_rejects_malformed_tokens
Test that malformed tokens are rejected.
tests/server/auth/test_jwt_issuer.py:222
Method
test_verify_token_rejects_missing_permissions
( self, rsa_key_pair: RSAKeyPair )
tests/server/auth/providers/test_auth0_mcp.py:71
Method
test_verify_token_rejects_missing_required_scopes
( self, httpx_mock: HTTPXMock )
tests/server/auth/providers/test_workos.py:367
Method
test_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
Method
test_verify_token_returns_actual_token_scopes
( self, httpx_mock: HTTPXMock )
tests/server/auth/providers/test_workos.py:389
Method
test_verify_token_success
Test successful token verification.
tests/server/auth/providers/test_github.py:118
Method
test_verify_token_sync_callable_failure
Test token verification with custom sync callable that fails.
tests/server/auth/test_debug_verifier.py:73
Method
test_verify_token_sync_callable_success
Test token verification with custom sync callable that passes.
tests/server/auth/test_debug_verifier.py:56
Method
test_verify_token_validates_audience
Test that tokens for different audiences are rejected.
tests/server/auth/test_jwt_issuer.py:204
Method
test_verify_token_validates_expiration
Test that expired tokens are rejected.
tests/server/auth/test_jwt_issuer.py:163
Method
test_verify_token_validates_issuer
Test that tokens from different issuers are rejected.
tests/server/auth/test_jwt_issuer.py:186
Method
test_verify_token_validates_signature
Test that token verification fails with wrong signing key.
tests/server/auth/test_jwt_issuer.py:141
Method
test_verify_token_whitelist_pattern
Test using verifier with a whitelist of allowed tokens.
tests/server/auth/test_debug_verifier.py:137
Method
test_version_command_copy_functionality
Test that the version command copies to clipboard when --copy is used.
tests/cli/test_cli.py:82
Method
test_version_command_execution
Test that version command executes properly.
tests/cli/test_cli.py:59
Method
test_version_command_parsing
Test that the version command parses arguments correctly.
tests/cli/test_cli.py:65
Method
test_version_command_with_copy_flag
Test that the version command parses --copy flag correctly.
tests/cli/test_cli.py:73
Method
test_version_filter_applied_before_catalog
A VersionFilter added before the CatalogTransform restricts what the catalog sees.
tests/server/transforms/test_catalog.py:183
Method
test_version_filter_filters_out_high_mounted_version
VersionFilter hides mounted components outside the range.
tests/server/versioning/test_filtering.py:537
Method
test_version_gte_filters_low_versions
VersionFilter(version_gte='2.0') hides v1, shows v2 and v3.
tests/server/versioning/test_filtering.py:50
Method
test_version_lt_filters_high_versions
VersionFilter(version_lt='3.0') hides v3+, shows v1 and v2.
tests/server/versioning/test_filtering.py:16
Method
test_version_metadata_injected
Highest-version tool has meta.fastmcp.versions listing all available.
tests/server/transforms/test_catalog.py:148
Method
test_version_range
VersionFilter(version_gte='2.0', version_lt='3.0') shows only v2.x.
tests/server/versioning/test_filtering.py:88
Function
test_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
Method
test_version_sort_key_is_total_ordering_tuple
(self)
tests/server/versioning/test_versioning.py:136
Method
test_version_spec_serialization
Test that VersionSpec is serialized/deserialized correctly.
tests/server/test_session_visibility.py:204
Method
test_version_with_at_symbol_rejected
Version strings containing '@' should be rejected.
tests/server/versioning/test_calls.py:80
Method
test_versioned_prompt_via_provider
FileSystemProvider should preserve prompt version.
tests/fs/test_provider.py:746
Method
test_versioned_resource_via_provider
FileSystemProvider should preserve resource version.
tests/fs/test_provider.py:723
Function
test_versioned_template_completion_checks_the_listed_version
Completion authorizes the version clients list, not the first one registered.
tests/server/test_completions.py:468
Method
test_versioned_tool_via_provider
FileSystemProvider should preserve tool version in list_tools output.
tests/fs/test_provider.py:700
Method
test_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
Method
test_very_deeply_nested_schema_stops_with_value_error
(self)
tests/utilities/json_schema_type/test_generated_classes.py:525
← previous
next →
15,501–15,600 of 16,098, ranked by callers