Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
Function
test_refresh_interval_requires_finite_nonnegative_value
(interval: float)
tests/server/auth/test_jwks_refresh.py:151
Method
test_refresh_jwt_exp_aligned_when_upstream_omits_refresh_token
Bug 2: JWT exp must align with storage TTL when upstream omits refresh_token. Cognito does NOT return a refresh_token on refresh. Previously
tests/server/auth/oauth_proxy/test_tokens.py:801
Method
test_refresh_lock_cache_bounded
_get_refresh_lock never grows beyond _REFRESH_LOCK_CACHE_SIZE.
tests/server/auth/oauth_proxy/test_tokens.py:1936
Method
test_refresh_lock_lru_evicts_least_recently_used
Touching an entry promotes it; eviction removes the oldest untouched entry.
tests/server/auth/oauth_proxy/test_tokens.py:1945
Method
test_refresh_lock_same_token_returns_same_lock
Requesting the same token ID twice returns the same lock object.
tests/server/auth/oauth_proxy/test_tokens.py:1962
Function
test_refresh_rejects_nonpositive_expires_in_before_state_mutation
( jwt_verifier, expires_in )
tests/server/auth/oauth_proxy/test_nonpositive_expires_in.py:88
Method
test_refresh_token_is_rejected_after_rotation
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_single_use.py:178
Method
test_refs_in_array_items_converted
$refs inside array items must be converted from OpenAPI to JSON Schema format.
tests/utilities/openapi/test_transitive_references.py:281
Method
test_refs_in_composition_keywords_converted
$refs inside oneOf/anyOf/allOf must be converted from OpenAPI to JSON Schema format.
tests/utilities/openapi/test_transitive_references.py:322
Method
test_refs_in_nested_content_schemas
$refs in nested content schemas (the original bug location) must be converted.
tests/utilities/openapi/test_transitive_references.py:550
Method
test_refuses_a_different_event_loop_while_in_use
( self, stdio_script, keep_alive )
tests/client/test_stdio.py:547
Function
test_register_all_applies_tool_prefix_and_separator
()
tests/contrib/test_bulk_tool_caller.py:422
Method
test_register_all_does_not_evaluate_properties
(self)
tests/contrib/test_mcp_mixin.py:350
Method
test_register_all_no_prefix
Test register_all method registers all types without a prefix.
tests/contrib/test_mcp_mixin.py:170
Method
test_register_all_with_prefix_custom_separators
Test register_all method registers all types with a prefix and custom separators.
tests/contrib/test_mcp_mixin.py:231
Method
test_register_all_with_prefix_default_separators
Test register_all method registers all types with a prefix and default separators.
tests/contrib/test_mcp_mixin.py:198
Method
test_register_and_get_client
Test registering and retrieving a client.
tests/server/auth/test_oauth_proxy_storage.py:65
Method
test_register_client
Test client registration creates ProxyDCRClient.
tests/server/auth/oauth_proxy/test_client_registration.py:22
Method
test_register_client_allows_external_https_by_default
Default DCR registration accepts ordinary external HTTPS callbacks.
tests/server/auth/oauth_proxy/test_client_registration.py:39
Method
test_register_client_rejects_unsafe_redirect_scheme_by_default
Default DCR registration rejects active browser redirect schemes.
tests/server/auth/oauth_proxy/test_client_registration.py:53
Method
test_register_client_without_redirect_uris_defers_allowlist_validation
DCR clients may omit redirect_uris until the authorization request.
tests/server/auth/oauth_proxy/test_client_registration.py:66
Function
test_register_tools_applies_prefix_and_separator
()
tests/contrib/test_bulk_tool_caller.py:410
Method
test_register_with_docket_is_noop
Registering a forbidden base component is a no-op.
tests/tasks/server/test_custom_subclass_tasks.py:227
Function
test_registering_an_invalid_annotation_is_an_error
()
tests/experimental/events/test_param_headers.py:171
Function
test_registration_after_lifespan_start_rejected
Registering once the server is serving would skip the extension's lifespan, leaving it silently half-active — so it raises instead.
tests/server/test_extensions.py:475
Function
test_registration_debug_log_names_extension_provider_and_server
( caplog: pytest.LogCaptureFixture, )
tests/server/test_provider_extensions.py:267
Function
test_registration_during_extension_startup_rejected
()
tests/server/test_provider_extensions.py:339
Method
test_registration_is_stored_with_ttl
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_registration_ttl.py:45
Function
test_registration_rejects_sharing_a_bound_instance
()
tests/server/test_provider_extensions.py:403
Method
test_registry_can_be_overridden
(self, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_apps_dev_server.py:784
Method
test_regular_prompt_error_logs_at_error
PromptError with default log_level logs at ERROR.
tests/client/client/test_error_handling.py:476
Method
test_regular_resource_error_logs_at_error
ResourceError with default log_level logs at ERROR.
tests/client/client/test_error_handling.py:431
Method
test_regular_tool_error_logs_at_error
ToolError with default log_level logs at ERROR.
tests/client/client/test_error_handling.py:385
Method
test_reject_fragment
Test that {#fragment} is rejected.
tests/resources/test_resource_template_level3.py:190
Method
test_reject_label_expansion
Test that {.ext} label expansion is rejected.
tests/resources/test_resource_template_level3.py:222
Method
test_reject_mixed_path_and_unsupported
Test that templates mixing path params and unsupported operators are rejected.
tests/resources/test_resource_template_level3.py:266
Method
test_reject_path_segment
Test that {/segment} is rejected.
tests/resources/test_resource_template_level3.py:206
Method
test_reject_path_style
{;param} expands into the path, so it is rejected.
tests/resources/test_resource_template_level3.py:238
Method
test_reject_reserved_expansion
Test that {+path} reserved expansion is rejected.
tests/resources/test_resource_template_level3.py:174
Method
test_reject_set_expansion
Test that {a,b} set expansion is rejected.
tests/resources/test_resource_template_level3.py:286
Method
test_reject_set_expansion_with_path
Test that set expansion mixed with path params is rejected.
tests/resources/test_resource_template_level3.py:302
Function
test_rejected_batch_keeps_existing_contents
()
tests/apps/test_file_upload_retention.py:62
Method
test_rejected_conversion_leaves_cache_unchanged
(self)
tests/utilities/json_schema_type/test_generated_classes.py:592
Function
test_rejected_explicit_extension_can_be_registered_on_another_server
( failure: str, )
tests/server/test_provider_extensions.py:428
Method
test_rejects_absolute
(self, value: str)
tests/resources/test_resource_security.py:58
Method
test_rejects_bad_settings
(self)
tests/experimental/transforms/test_jev_search.py:392
Method
test_rejects_blank_issuer
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:181
Method
test_rejects_empty_role_list
A check with no roles would admit any authenticated caller.
tests/server/auth/test_authorization.py:164
Method
test_rejects_empty_tokens
(self, token)
tests/server/auth/providers/test_debug.py:19
Method
test_rejects_expired_token
Test that expired tokens are rejected.
tests/server/auth/test_cimd_validators.py:336
Method
test_rejects_incompatible_or_unsupported_algorithm
(self, algorithm: str)
tests/server/auth/oauth_proxy/test_identity_assertion.py:192
Method
test_rejects_invalid_script_path
(self, script: str)
tests/cli/test_install_cli_arguments.py:266
Method
test_rejects_iss_hand_specified_in_params
`iss` must come from the keyword-only `iss` argument, never from the `params` dict -- this keeps exactly one place a caller can set it
tests/server/auth/test_redirect_validation.py:218
Method
test_rejects_line_breaks
(self, argument: str)
tests/cli/test_install_cli_arguments.py:227
Method
test_rejects_loopback_origin_for_public_host
(self)
tests/server/http/test_http_auth_middleware.py:454
Function
test_rejects_lossy_or_invalid_frontmatter
(extra: str)
tests/skills/test_frontmatter.py:24
Method
test_rejects_missing_jti
Test that missing jti claim is rejected.
tests/server/auth/test_cimd_validators.py:252
Method
test_rejects_non_string_assertion_algorithm
A header whose alg is not a string is an invalid assertion, not a crash.
tests/server/auth/test_cimd_validators.py:448
Method
test_rejects_null_bytes
(self, value: str)
tests/resources/test_resource_security.py:68
Method
test_rejects_replayed_jti
Test that replayed JTI is detected and rejected.
tests/server/auth/test_cimd_validators.py:275
Method
test_rejects_same_host_different_origin
(self, origin: str)
tests/server/http/test_http_auth_middleware.py:506
Method
test_rejects_shell_metacharacters
(self, name: str)
tests/cli/test_install.py:639
Method
test_rejects_token_from_different_discord_application
Token must be bound to configured Discord client_id.
tests/server/auth/providers/test_discord.py:108
Method
test_rejects_token_with_wrong_audience
Tokens for a different application must be rejected.
tests/server/auth/providers/test_azure_scopes.py:496
Method
test_rejects_traversal
(self, value: str)
tests/resources/test_resource_security.py:45
Method
test_rejects_unknown_user_id_mode
(self)
tests/server/middleware/test_usage.py:536
Method
test_rejects_unlisted_host_or_origin
( self, protected_server: ASGIServer, headers: dict[str, str], expected_status
tests/server/http/test_sse_host_origin_protection.py:114
Method
test_rejects_unlisted_host_or_origin_for_open_session
( self, protected_server: ASGIServer, headers: dict[str, str], expected_status
tests/server/http/test_sse_host_origin_protection.py:142
Method
test_rejects_unsupported_assertion_algorithm
Symmetric and unsigned assertion algorithms are rejected up front.
tests/server/auth/test_cimd_validators.py:420
Method
test_rejects_wrong_audience
Test that wrong audience is rejected.
tests/server/auth/test_cimd_validators.py:206
Method
test_rejects_wrong_issuer
Test that wrong issuer is rejected.
tests/server/auth/test_cimd_validators.py:183
Method
test_rejects_wrong_subject
Test that wrong subject claim is rejected.
tests/server/auth/test_cimd_validators.py:229
Function
test_relative_config_path_survives_deployment_cwd
A relative config path must still resolve after deployment.cwd changes the cwd.
tests/cli/test_run_config.py:316
Method
test_relative_path_error
Test error on relative path.
tests/resources/test_file_resources.py:84
Method
test_relative_path_resolved
Relative paths should be resolved against cwd.
tests/cli/test_cimd_cli.py:53
Function
test_reload_also_validates_at_startup
(tmp_path: Path)
tests/skills/test_directory_provider.py:84
Method
test_reload_false_caches_at_init
With reload=False, components are cached at init.
tests/fs/test_provider.py:206
Method
test_reload_from_storage_after_refresh_failure
If refresh fails, re-read from storage in case another worker refreshed.
tests/server/auth/oauth_proxy/test_tokens.py:1887
Function
test_reload_keeps_the_last_valid_skills_when_a_folder_breaks
(tmp_path: Path)
tests/skills/test_directory_provider.py:222
Method
test_reload_mode
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:795
Function
test_reload_shows_edits_through_the_response_cache
(tmp_path: Path)
tests/skills/test_directory_provider.py:160
Method
test_reload_true_rescans
With reload=True, components are rescanned on each request.
tests/fs/test_provider.py:235
Method
test_reload_uses_stored_expiry_not_stale_expires_in
On reload, _initialize should use the stored absolute expiry rather than recomputing from the stale relative expires_in. This is the
tests/client/auth/test_oauth_client.py:605
Function
test_reloaded_refresh_token_is_not_sent_before_issuer_check
()
tests/client/auth/test_oauth_static_client_issuer.py:82
Method
test_remember_mode_cross_site_forces_prompt
Sec-Fetch-Site=cross-site must skip silent consent even with valid cookie. Blocks the AS-in-the-middle scenario: attacker redirects the victi
tests/server/auth/test_oauth_consent_flow.py:1296
Method
test_remember_mode_missing_sec_fetch_site_fails_closed
Missing Sec-Fetch-Site header must fall back to the explicit prompt. Legacy clients that don't send the header degrade to the safer behavior
tests/server/auth/test_oauth_consent_flow.py:1340
Method
test_remembered_denial_does_not_duplicate_iss_already_in_redirect_uri
RFC 9207 P2 regression: the *remembered/silent* denial path is a separate call site from the explicit deny above, and must independent
tests/server/auth/test_oauth_consent_flow.py:1067
Method
test_remembered_denial_redirects_with_issuer
Remembered consent denial redirects with RFC 9207 issuer.
tests/server/auth/test_oauth_consent_flow.py:1024
Method
test_remote_auth_explicit_challenge_scopes
( self, optional_scope_remote_provider: RemoteAuthProvider, challenge_scopes: list[str
tests/server/auth/test_auth_provider.py:125
Function
test_remote_config_default_no_auth
()
tests/test_mcp_config.py:850
Function
test_remote_config_max_sse_event_size_passthrough
max_sse_event_size is forwarded from RemoteMCPServer to StreamableHttpTransport.
tests/test_mcp_config.py:603
Function
test_remote_config_sse_with_auth_token
()
tests/test_mcp_config.py:878
Function
test_remote_config_with_auth_token
()
tests/test_mcp_config.py:863
Function
test_remote_config_with_oauth_literal
()
tests/test_mcp_config.py:893
Method
test_remote_insufficient_scope_challenge_excludes_optional_catalog_scopes
( self, )
tests/server/auth/test_enhanced_error_responses.py:866
Function
test_remote_local_overrides_stdio_user
(claude_project)
tests/cli/test_claude_code_precedence.py:68
Method
test_remote_missing_auth_challenge_excludes_optional_catalog_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:851
Function
test_remote_provider_identity_tracks_its_configured_verifier
(kind: str)
tests/server/auth/test_auth_source_identities.py:479
Function
test_remote_provider_uses_configured_audience
(httpx_mock: HTTPXMock)
tests/server/auth/providers/test_introspection_audience.py:112
Function
test_remote_revoke_always_removes_the_local_credential
( tmp_path: Path, )
tests/cli/deploy/test_credentials.py:214
← previous
next →
13,701–13,800 of 16,725, ranked by callers