Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Function
test_ref_to_pattern_properties_target_keeps_the_ref
()
tests/server/providers/openapi/test_body_ref_siblings.py:298
Function
test_ref_to_string_with_all_of_keeps_referenced_constraints
()
tests/server/providers/openapi/test_body_ref_siblings.py:243
Function
test_ref_with_discriminator_advertises_subtype_fields
()
tests/server/providers/openapi/test_body_ref_siblings.py:221
Function
test_ref_with_discriminator_sends_subtype_fields
()
tests/server/providers/openapi/test_body_ref_siblings.py:232
Function
test_ref_with_sibling_properties_advertises_both_fields
()
tests/server/providers/openapi/test_body_ref_siblings.py:60
Function
test_ref_with_sibling_properties_merges_required
()
tests/server/providers/openapi/test_body_ref_siblings.py:84
Function
test_ref_with_sibling_properties_sends_both_fields
()
tests/server/providers/openapi/test_body_ref_siblings.py:72
Function
test_ref_without_siblings_exposes_referenced_fields
()
tests/server/providers/openapi/test_body_ref_siblings.py:180
Function
test_refcount_survives_nested_holds
Two holds (sibling extensions): the wrap stays until the last release.
tests/tasks/server/test_wire_production.py:85
Function
test_reference_inside_sibling_property_is_resolved
()
tests/server/providers/openapi/test_body_ref_siblings.py:124
Method
test_referer_does_not_replace_the_origin_check
(self)
tests/cli/test_apps_dev_server.py:437
Method
test_refill
Test token refill over time.
tests/server/middleware/test_rate_limiting.py:64
Method
test_refresh_body
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:149
Method
test_refresh_exchange_decouples_access_token
Re-issued access tokens on refresh also honor the configured lifetime.
tests/server/auth/oauth_proxy/test_tokens.py:1058
Method
test_refresh_expires_in_zero_issues_refresh_token
refresh_expires_in=0 should fall back to the configured default. Keycloak returns refresh_expires_in=0 for offline tokens (offline_access sco
tests/server/auth/oauth_proxy/test_tokens.py:1280
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:679
Method
test_refresh_lock_cache_bounded
_get_refresh_lock never grows beyond _REFRESH_LOCK_CACHE_SIZE.
tests/server/auth/oauth_proxy/test_tokens.py:1674
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:1683
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:1700
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_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_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:61
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
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_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
Function
test_registration_rejects_sharing_a_bound_instance
()
tests/server/test_provider_extensions.py:403
Method
test_regular_prompt_error_logs_at_error
PromptError with default log_level logs at ERROR.
tests/client/client/test_error_handling.py:398
Method
test_regular_resource_error_logs_at_error
ResourceError with default log_level logs at ERROR.
tests/client/client/test_error_handling.py:353
Method
test_regular_tool_error_logs_at_error
ToolError with default log_level logs at ERROR.
tests/client/client/test_error_handling.py:307
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:180
Method
test_rejects_empty_role_list
A check with no roles would admit any authenticated caller.
tests/server/auth/test_authorization.py:147
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:335
Method
test_rejects_incompatible_or_unsupported_algorithm
(self, algorithm: str)
tests/server/auth/oauth_proxy/test_identity_assertion.py:191
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:181
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:345
Method
test_rejects_missing_jti
Test that missing jti claim is rejected.
tests/server/auth/test_cimd_validators.py:251
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:274
Method
test_rejects_same_host_different_origin
(self, origin: str)
tests/server/http/test_http_auth_middleware.py:397
Method
test_rejects_shell_metacharacters
(self, name: str)
tests/cli/test_install.py:494
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_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_wrong_audience
Test that wrong audience is rejected.
tests/server/auth/test_cimd_validators.py:205
Method
test_rejects_wrong_issuer
Test that wrong issuer is rejected.
tests/server/auth/test_cimd_validators.py:182
Method
test_rejects_wrong_subject
Test that wrong subject claim is rejected.
tests/server/auth/test_cimd_validators.py:228
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
Method
test_reload_false_caches_at_init
With reload=False, components are cached at init.
tests/fs/test_provider.py:197
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:1625
Method
test_reload_mode
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:681
Method
test_reload_true_rescans
With reload=True, components are rescanned on each request.
tests/fs/test_provider.py:226
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:580
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
Function
test_remote_config_default_no_auth
()
tests/test_mcp_config.py:814
Function
test_remote_config_sse_with_auth_token
()
tests/test_mcp_config.py:842
Function
test_remote_config_with_auth_token
()
tests/test_mcp_config.py:827
Function
test_remote_config_with_oauth_literal
()
tests/test_mcp_config.py:857
Method
test_remote_insufficient_scope_challenge_excludes_optional_catalog_scopes
( self, )
tests/server/auth/test_enhanced_error_responses.py:765
Method
test_remote_missing_auth_challenge_excludes_optional_catalog_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:750
Function
test_remote_revoke_always_removes_the_local_credential
( tmp_path: Path, )
tests/cli/deploy/test_credentials.py:214
Method
test_remote_server
(self, tmp_path: Path)
tests/cli/test_discovery.py:167
Method
test_remote_server_resolves_to_http_transport
(self, tmp_path: Path)
tests/cli/test_discovery.py:665
Method
test_remote_type_becomes_transport
(self)
tests/cli/test_discovery.py:248
Method
test_remote_with_transport_unchanged
(self)
tests/cli/test_discovery.py:254
Method
test_remove_nonexistent_tool_raises
Test that removing a nonexistent tool raises KeyError.
tests/server/providers/test_local_provider.py:76
Method
test_remove_prompt
Test removing a prompt from LocalProvider.
tests/server/providers/test_local_provider.py:139
Method
test_remove_prompt_via_local_provider
(self)
tests/server/test_server.py:151
Method
test_remove_resource
Test removing a resource from LocalProvider.
tests/server/providers/test_local_provider.py:93
Method
test_remove_resource_via_local_provider
(self)
tests/server/test_server.py:140
Method
test_remove_template
Test removing a resource template from LocalProvider.
tests/server/providers/test_local_provider.py:115
Method
test_remove_tool
Test removing a tool from LocalProvider.
tests/server/providers/test_local_provider.py:62
Method
test_remove_tool_via_local_provider
(self)
tests/server/test_server.py:128
Method
test_removed_fastmcp_method_is_gone
(self, method_name)
tests/test_upgrade_from_v3.py:283
Method
test_removed_kwarg_error_includes_migration_hint
( self, kwarg, value, expected_message )
tests/deprecated/test_settings.py:46
Method
test_removed_kwarg_raises_type_error
(self, kwarg, value, expected_message)
tests/deprecated/test_settings.py:34
Method
test_removed_module_raises_module_not_found
(self, module_path)
tests/test_upgrade_from_v3.py:242
Method
test_removed_name_is_gone
(self, module_path, name)
tests/test_upgrade_from_v3.py:265
← previous
next →
10,901–11,000 of 13,374, ranked by callers