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
Method
test_timeout_tool_call_overrides_client_timeout
( self, fastmcp_server: FastMCP )
tests/client/client/test_timeout.py:27
Method
test_timeout_tool_call_overrides_client_timeout_even_if_lower
( self, fastmcp_server: FastMCP )
tests/client/client/test_timeout.py:37
Method
test_timeout_tool_call_overrides_client_timeout_if_lower
( self, sse_server: ASGIServer )
tests/client/test_sse.py:173
Method
test_timeout_with_task_mode
Tool with timeout and task mode can be configured together.
tests/tools/test_tool_timeout.py:134
Method
test_timeout_zero_times_out_immediately
Timeout of 0 times out immediately.
tests/tools/test_tool_timeout.py:122
Method
test_timing_middleware_concurrent_operations
Test timing middleware with concurrent operations.
tests/server/middleware/test_timing.py:260
Method
test_timing_middleware_custom_logger
Test timing middleware with custom logger configuration.
tests/server/middleware/test_timing.py:282
Method
test_timing_middleware_handles_failures
Test that timing middleware measures time even for failed operations.
tests/server/middleware/test_timing.py:216
Method
test_timing_middleware_measures_tool_execution
Test that timing middleware accurately measures tool execution times.
tests/server/middleware/test_timing.py:184
Method
test_title_becomes_valid_class_name
(self)
tests/utilities/json_schema_type/test_generated_classes.py:80
Method
test_title_class_names
(self, title: str, expected: str)
tests/utilities/json_schema_type/test_generated_classes.py:114
Method
test_title_from_field_default_is_kept
(self)
tests/tools/tool/test_title.py:155
Method
test_title_on_optional_parameter_is_kept
(self)
tests/tools/tool/test_title.py:163
Method
test_title_on_optional_parameter_is_kept_with_context
(self)
tests/tools/tool/test_title.py:177
Method
test_title_pruning_preserves_parameter_named_title
Test that a parameter named 'title' is not removed during title pruning. This is a critical edge case - we want to remove title metadata but
tests/utilities/test_json_schema.py:594
Method
test_title_pruning_preserves_title_property_when_type_property_exists
Regression test for #3576: properties dict containing both 'title' and 'type' as parameter names caused the heuristic to treat 'title' as sche
tests/utilities/test_json_schema.py:626
Method
test_title_pruning_with_nested_properties
Test that nested property structures are handled correctly.
tests/utilities/test_json_schema.py:756
Method
test_to_audio_content
Test conversion to AudioContent.
tests/utilities/test_types.py:351
Method
test_to_audio_content_error
Test error case in to_audio_content.
tests/utilities/test_types.py:373
Method
test_to_audio_content_with_override_mime_type
Test conversion to AudioContent with override MIME type.
tests/utilities/test_types.py:384
Method
test_to_data_uri
Test conversion to data URI.
tests/utilities/test_types.py:253
Method
test_to_image_content
Test conversion to ImageContent.
tests/utilities/test_types.py:213
Method
test_to_image_content_error
Test error case in to_image_content.
tests/utilities/test_types.py:235
Method
test_to_mcp_blob_contents
Binary content converts to BlobResourceContents with base64.
tests/resources/test_resources.py:184
Method
test_to_mcp_result
Converts to MCP ReadResourceResult with proper structure.
tests/resources/test_resources.py:247
Method
test_to_mcp_result_multiple_contents
Multiple contents all get same URI.
tests/resources/test_resources.py:261
Method
test_to_mcp_result_sets_iserror_and_preserves_content
(self)
tests/tools/tool/test_results.py:81
Method
test_to_mcp_text_contents
Text content converts to TextResourceContents.
tests/resources/test_resources.py:172
Method
test_to_resource_content_encodes_name
(self, name: str, expected_uri: str)
tests/utilities/test_types.py:524
Method
test_to_resource_content_error
Test error case in to_resource_content.
tests/utilities/test_types.py:542
Method
test_to_resource_content_with_data
Test conversion to ResourceContent with data.
tests/utilities/test_types.py:483
Method
test_to_resource_content_with_data_and_name_without_extension
Test data-backed File URI with a custom name that needs an extension.
tests/utilities/test_types.py:496
Method
test_to_resource_content_with_data_preserves_name_extension
Test data-backed File URI preserves a custom name with an extension.
tests/utilities/test_types.py:504
Method
test_to_resource_content_with_override_mime_type
Test conversion to ResourceContent with override MIME type.
tests/utilities/test_types.py:551
Method
test_to_resource_content_with_path
Test conversion to ResourceContent with path.
tests/utilities/test_types.py:467
Method
test_to_resource_content_with_text_data
Test conversion to ResourceContent with text data (TextResourceContents).
tests/utilities/test_types.py:531
Method
test_toggle_enabled
(self)
tests/server/providers/test_local_provider_resources.py:745
Method
test_toggle_enabled
(self)
tests/server/providers/test_local_provider_resources.py:903
Method
test_toggle_enabled
(self)
tests/server/providers/test_local_provider_prompts.py:329
Method
test_toggle_enabled
(self)
tests/server/providers/local_provider_tools/test_enabled.py:42
Method
test_token_accepted_with_client_id_audience
Azure AD v2 tokens use the bare client_id as aud — must be accepted.
tests/server/auth/providers/test_azure.py:224
Method
test_token_accepted_with_identifier_uri_audience
Azure AD v1 tokens use the identifier_uri as aud — must be accepted.
tests/server/auth/providers/test_azure.py:254
Method
test_token_auth_method_initialization
Test different token endpoint auth methods.
tests/server/auth/oauth_proxy/test_tokens.py:40
Method
test_token_auth_method_passed_to_client
Test that auth method is passed to AsyncOAuth2Client.
tests/server/auth/oauth_proxy/test_tokens.py:83
Method
test_token_claim_creates_dependency
Test that TokenClaim creates a Dependency instance.
tests/server/test_dependencies.py:939
Method
test_token_claim_excluded_from_tool_schema
Test that TokenClaim dependency is excluded from tool schema.
tests/server/test_dependencies.py:984
Method
test_token_claim_exported_from_all
Test that TokenClaim is exported from __all__.
tests/server/test_dependencies.py:1008
Method
test_token_claim_is_importable
Test that TokenClaim can be imported.
tests/server/test_dependencies.py:925
Method
test_token_claim_raises_without_token
Test that TokenClaim raises when no token is available.
tests/server/test_dependencies.py:957
Method
test_token_code_verifier_mismatch
Test token endpoint error - PKCE code verifier mismatch.
tests/server/test_auth_integration.py:501
Method
test_token_endpoint_auth_method_override
(self)
tests/client/auth/test_client_credentials.py:176
Method
test_token_endpoint_url_matches_advertised_metadata
A bare-authority base_url must not expect `aud` of `https://host//token`. CIMD is enabled by default, and a spec-following client binds its
tests/server/auth/oauth_proxy/test_oauth_proxy.py:631
Method
test_token_error_surfaces
(self)
tests/client/auth/test_client_credentials.py:268
Method
test_token_expired_auth_code
Test token endpoint error - authorization code has expired.
tests/server/test_auth_integration.py:423
Method
test_token_expired_refresh_token
Test token endpoint error - refresh token has expired.
tests/server/test_auth_integration.py:540
Method
test_token_expires_at_caps_ttl
(self)
tests/utilities/test_token_cache.py:143
Method
test_token_hashing
Test that tokens are hashed consistently.
tests/server/auth/providers/test_introspection.py:852
Method
test_token_introspection_overrides_cache
Test that cache overrides are passed to the verifier.
tests/server/auth/providers/test_propelauth.py:123
Method
test_token_introspection_overrides_http_client
Test that http_client override is passed to the verifier.
tests/server/auth/providers/test_propelauth.py:140
Method
test_token_introspection_overrides_ignores_disallowed_known_keys
Test that known IntrospectionTokenVerifier keys not in the allow list are ignored.
tests/server/auth/providers/test_propelauth.py:170
Method
test_token_introspection_overrides_ignores_unknown_keys
Test that unknown override keys are silently ignored.
tests/server/auth/providers/test_propelauth.py:154
Method
test_token_introspection_overrides_timeout
Test that timeout_seconds override is passed to the verifier.
tests/server/auth/providers/test_propelauth.py:110
Method
test_token_invalid_auth_code
Test token endpoint error - authorization code does not exist.
tests/server/test_auth_integration.py:397
Method
test_token_invalid_refresh_token
Test token endpoint error - refresh token does not exist.
tests/server/test_auth_integration.py:523
Method
test_token_invalid_scope
Test token endpoint error - invalid scope in refresh token request.
tests/server/test_auth_integration.py:590
Method
test_token_redirect_uri_mismatch
Test token endpoint error - redirect URI mismatch.
tests/server/test_auth_integration.py:479
Method
test_token_refresh_with_mock_provider
Test token refresh flow with mock provider.
tests/server/auth/oauth_proxy/test_e2e.py:79
Method
test_token_rejected_with_wrong_audience
Tokens for a different application must be rejected.
tests/server/auth/providers/test_azure.py:284
Method
test_token_round_trips_through_background_task
E2E: token set at submit time is available inside the worker.
tests/tasks/server/test_context_background_task.py:427
Method
test_token_storage_preserves_refresh_token
Refresh token should not be lost when access token would expire.
tests/client/auth/test_oauth_client.py:527
Method
test_token_storage_uses_long_ttl
Token storage should use a long TTL, not access token expiry. This is the ianw case: IdP returns expires_in=300 (5 min access token)
tests/client/auth/test_oauth_client.py:486
Method
test_token_validation_error
Test token endpoint error - missing client_id returns auth error.
tests/server/test_auth_integration.py:379
Method
test_token_verification_with_invalid_auth_fails
Test that the provider correctly rejects invalid tokens.
tests/server/auth/test_remote_auth_provider.py:422
Method
test_token_verification_with_valid_auth_succeeds
Test that requests with valid auth token succeed.
tests/server/auth/test_remote_auth_provider.py:392
Method
test_token_verifier_checks_client_id_not_aud
Cognito verifier should check client_id claim, not aud.
tests/server/auth/providers/test_aws.py:106
Method
test_token_verifier_initialization
Test token verifier initialization.
tests/server/auth/test_oidc_proxy.py:492
Method
test_token_verifier_is_bound_to_provider_client_id
Test DiscordProvider binds token verifier to the configured client ID.
tests/server/auth/providers/test_discord.py:88
Method
test_token_verifier_preserves_legacy_positional_required_scopes
Legacy positional super().__init__(base_url, required_scopes) should keep working.
tests/server/auth/test_auth_provider.py:30
Method
test_token_verifier_supports_audience_override
Audience param maps to client_id validation in Cognito verifier.
tests/server/auth/providers/test_aws.py:122
Method
test_token_with_bad_signature
( self, mcp_server_url: str, rsa_key_pair_2: RSAKeyPair )
tests/server/auth/test_jwt_provider_bearer.py:518
Method
test_token_with_insufficient_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:528
Method
test_token_with_only_extra_scopes_returns_401
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:880
Method
test_token_with_only_server_scopes_returns_403
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:863
Method
test_token_with_server_and_extra_scopes_applies_change
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:896
Method
test_token_with_server_scope_allowed
(self, rsa_key_pair: RSAKeyPair)
tests/contrib/test_component_manager.py:757
Method
test_token_with_sufficient_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:549
Method
test_token_without_expiration
Test token without expiration field.
tests/server/auth/providers/test_introspection.py:178
Method
test_token_without_scopes
Test token without scope field.
tests/server/auth/providers/test_introspection.py:197
Method
test_token_without_server_scope_returns_401
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:743
Function
test_tokens
Standard test tokens fixture.
tests/server/auth/test_oauth_mounting.py:23
Function
test_tokens
Standard test tokens fixture for all auth tests.
tests/server/auth/test_remote_auth_provider.py:11
Function
test_tool
(context: Context)
tests/client/test_elicitation.py:91
Function
test_tool
()
tests/contrib/test_component_manager.py:639
Function
test_tool
(progress: Progress = Progress())
tests/tasks/server/test_progress_dependency.py:24
Function
test_tool
(x: int)
tests/server/middleware/test_initialization_middleware.py:148
Method
test_tool
( unstructured: str | None = None, structured: dict[str, Any] | None = None,
tests/tools/tool/test_results.py:23
Method
test_tool
Test tool for tool management routes.
tests/contrib/test_component_manager.py:28
Method
test_tool
Test tool for auth testing.
tests/contrib/test_component_manager.py:216
Method
test_tool
()
tests/contrib/test_component_manager.py:422
Method
test_tool
()
tests/contrib/test_component_manager.py:501
← previous
next →
12,201–12,300 of 13,374, ranked by callers