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
Method
test_init_defaults
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:48
Method
test_init_defaults
Test that default values are applied correctly.
tests/server/auth/providers/test_azure.py:54
Method
test_init_defaults
Test that default values are applied correctly.
tests/server/auth/providers/test_github.py:45
Method
test_init_defaults
Test initialization with defaults.
tests/server/auth/providers/test_github.py:91
Method
test_init_defaults
Test that default values are applied correctly.
tests/server/auth/providers/test_workos.py:95
Method
test_init_defaults
Test that default values are applied correctly.
tests/server/auth/providers/test_aws.py:72
Method
test_init_does_not_require_api_client_id_anymore
API client ID is no longer required; audience is client_id.
tests/server/auth/providers/test_azure.py:182
Method
test_init_from_bytes
Bytes input is normalized to list[ResourceContent].
tests/resources/test_resources.py:205
Method
test_init_from_dict_auto_serializes
Dict input is auto-serialized to JSON text.
tests/resources/test_resources.py:212
Method
test_init_from_list_of_resource_content
List of ResourceContent is used directly.
tests/resources/test_resources.py:226
Method
test_init_from_mixed_list_raises_type_error
Mixed list items raise TypeError - all items must be ResourceContent.
tests/resources/test_resources.py:237
Method
test_init_from_oidc_discovery
(self, valid_oidc_configuration_dict)
tests/server/auth/providers/test_auth0_mcp.py:91
Method
test_init_from_single_resource_content_raises_type_error
Single ResourceContent raises TypeError - must be in a list.
tests/resources/test_resources.py:220
Method
test_init_from_string
String input is normalized to list[ResourceContent].
tests/resources/test_resources.py:198
Method
test_init_invalid_interval_negative
Test that negative interval raises ValueError.
tests/server/middleware/test_ping.py:35
Method
test_init_invalid_interval_zero
Test that zero interval raises ValueError.
tests/server/middleware/test_ping.py:30
Method
test_init_prefers_base_url_over_mcp_url
mcp_url should take precedence over base_url when both provided.
tests/server/auth/providers/test_scalekit.py:41
Method
test_init_preserves_all_legacy_positional_slots
(self, test_tokens)
tests/server/auth/test_remote_auth_provider.py:185
Method
test_init_preserves_legacy_positional_scopes_supported_slot
Legacy positional scopes_supported should not bind to resource_base_url.
tests/server/auth/test_remote_auth_provider.py:169
Method
test_init_preserves_meta
Meta is preserved on ResourceResult.
tests/resources/test_resources.py:242
Method
test_init_with_custom_audience_uses_jwt_verifier
When audience is provided, JWTVerifier is configured with JWKS and issuer.
tests/server/auth/providers/test_azure.py:197
Method
test_init_with_custom_scopes
Test initialization with custom required scopes.
tests/server/auth/providers/test_github.py:81
Method
test_init_with_custom_token_verifier
Test initialization with custom token verifier.
tests/server/auth/providers/test_keycloak.py:45
Method
test_init_with_explicit_params
Test ClerkProvider initialization with explicit parameters.
tests/server/auth/providers/test_clerk.py:37
Method
test_init_with_explicit_params
Test initialization with explicit parameters.
tests/server/auth/providers/test_auth0.py:37
Method
test_init_with_explicit_params
Test initialization with explicit parameters.
tests/server/auth/providers/test_oci.py:39
Method
test_init_with_explicit_params
Test DescopeProvider initialization with explicit parameters.
tests/server/auth/providers/test_descope.py:30
Method
test_init_with_explicit_params
Test SupabaseProvider initialization with explicit parameters.
tests/server/auth/providers/test_supabase.py:18
Method
test_init_with_explicit_params
Test GoogleProvider initialization with explicit parameters.
tests/server/auth/providers/test_google.py:27
Method
test_init_with_explicit_params
Test initialization with explicit parameters.
tests/server/auth/providers/test_keycloak.py:16
Method
test_init_with_explicit_params
Test DiscordProvider initialization with explicit parameters.
tests/server/auth/providers/test_discord.py:20
Method
test_init_with_explicit_params
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:33
Method
test_init_with_explicit_params
Test AzureProvider initialization with explicit parameters.
tests/server/auth/providers/test_azure.py:32
Method
test_init_with_explicit_params
Test initialization with explicit parameters.
tests/server/auth/providers/test_github.py:23
Method
test_init_with_explicit_params
Test ScalekitProvider initialization with explicit parameters.
tests/server/auth/providers/test_scalekit.py:17
Method
test_init_with_explicit_params
Test WorkOSProvider initialization with explicit parameters.
tests/server/auth/providers/test_workos.py:34
Method
test_init_with_explicit_params
Test initialization with explicit parameters.
tests/server/auth/providers/test_aws.py:40
Method
test_init_with_mcp_url_only
Allow legacy mcp_url parameter as base_url.
tests/server/auth/providers/test_scalekit.py:31
Method
test_init_with_only_required_params
Test PropelAuthProvider initialization with only required params.
tests/server/auth/providers/test_propelauth.py:24
Method
test_init_with_resource_base_url
Test that resource_base_url overrides the advertised protected resource.
tests/server/auth/providers/test_github.py:60
Method
test_init_with_string_scopes
Test initialization with scopes as comma-separated string.
tests/server/auth/providers/test_keycloak.py:35
Method
test_initial_exchange_decouples_access_token_from_upstream
A long FastMCP TTL applies even though upstream returns expires_in=3600.
tests/server/auth/oauth_proxy/test_tokens.py:1005
Method
test_initial_exchange_default_mirrors_upstream
With the param unset, the FastMCP access token mirrors upstream.
tests/server/auth/oauth_proxy/test_tokens.py:1168
Method
test_initial_exchange_jti_mapping_aligned_with_refresh_expiry
Bug 1: JTI mapping TTL must align with refresh_expires_in. Previously hardcoded to 30 days, which silently expired the mapping early
tests/server/auth/oauth_proxy/test_tokens.py:662
Method
test_initial_exchange_uses_fallback_when_upstream_silent
When upstream omits refresh_expires_in, fall back to configured value. Default is 1 year (was previously 30 days, ignoring user config).
tests/server/auth/oauth_proxy/test_tokens.py:733
Method
test_initialization
Test that a class inheriting MCPMixin can be initialized.
tests/contrib/test_mcp_mixin.py:27
Method
test_initialization
Test middleware initialization.
tests/server/middleware/test_caching.py:251
Method
test_initialization
Test verifier initialization.
tests/server/auth/providers/test_introspection.py:38
Method
test_initialization_defaults_to_client_secret_basic
Test that client_secret_basic is the default auth method.
tests/server/auth/providers/test_introspection.py:411
Method
test_initialization_rejects_both_key_and_uri
Test that both public_key and jwks_uri cannot be provided.
tests/server/auth/test_jwt_provider_bearer.py:95
Method
test_initialization_rejects_hs_algorithm_with_jwks_uri
Test that HMAC algorithms cannot be used with JWKS URI.
tests/server/auth/test_jwt_provider.py:320
Method
test_initialization_rejects_invalid_client_auth_method
Test that invalid client_auth_method values are rejected.
tests/server/auth/providers/test_introspection.py:421
Method
test_initialization_requires_client_id
Test that client_id is required.
tests/server/auth/providers/test_introspection.py:60
Method
test_initialization_requires_client_secret
Test that client_secret is required.
tests/server/auth/providers/test_introspection.py:68
Method
test_initialization_requires_introspection_url
Test that introspection_url is required.
tests/server/auth/providers/test_introspection.py:52
Method
test_initialization_requires_key_or_uri
Test that either public_key or jwks_uri is required.
tests/server/auth/test_jwt_provider_bearer.py:88
Method
test_initialization_with_all_params
Test component initialization with all parameters.
tests/utilities/test_components.py:69
Method
test_initialization_with_client_secret_post
Test verifier initialization with client_secret_post method.
tests/server/auth/providers/test_introspection.py:397
Method
test_initialization_with_different_symmetric_algorithms
Test JWTVerifier initialization with different HMAC algorithms.
tests/server/auth/test_jwt_provider.py:329
Method
test_initialization_with_jwks_uri
Test provider initialization with JWKS URI.
tests/server/auth/test_jwt_provider_bearer.py:77
Method
test_initialization_with_minimal_params
Test component initialization with minimal parameters.
tests/utilities/test_components.py:60
Method
test_initialization_with_public_key
Test provider initialization with public key.
tests/server/auth/test_jwt_provider_bearer.py:67
Method
test_initialization_with_symmetric_key
Test JWTVerifier initialization with symmetric key.
tests/server/auth/test_jwt_provider.py:305
Method
test_initialization_without_network_call
Test that provider initialization doesn't require network call to Keycloak. Since we use hard-coded Keycloak URL patterns, initialization suc
tests/integration_tests/auth/test_keycloak_provider_integration.py:170
Method
test_initialize
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:327
Function
test_initialize_called_once
Test that initialization is called once and sets initialize_result.
tests/client/client/test_client.py:366
Method
test_initialize_idempotent
Test that calling initialize() multiple times returns cached result.
tests/client/client/test_initialize.py:66
Method
test_initialize_persists_static_client_to_storage
Static client info should be persisted to token storage.
tests/client/auth/test_oauth_static_client.py:130
Method
test_initialize_property_after_auto_init
Test accessing initialize_result property after auto-initialization.
tests/client/client/test_initialize.py:103
Method
test_initialize_property_before_connect
Test that initialize_result property is None before connection.
tests/client/client/test_initialize.py:117
Method
test_initialize_raises_on_modern_era
A modern connection has no InitializeResult, so initialize() raises with a pointer to the era-neutral properties.
tests/client/client/test_mode_negotiation.py:309
Function
test_initialize_result_connected
Test that initialize_result returns the correct result when connected.
tests/client/client/test_client.py:375
Function
test_initialize_result_disconnected
Test that initialize_result is None when not connected.
tests/client/client/test_client.py:392
Method
test_initialize_sets_context_client_info
_initialize should inject static client info into the auth context.
tests/client/auth/test_oauth_static_client.py:114
Method
test_initialize_timeout_custom
Test custom timeout for initialize().
tests/client/client/test_initialize.py:94
Method
test_initialize_with_instructions
Test that server instructions are available via initialize_result.
tests/client/client/test_initialize.py:79
Method
test_initialize_without_static_creds_works
_initialize should not error when no static credentials are provided.
tests/client/auth/test_oauth_static_client.py:146
Function
test_injected_task_tool_runs_as_task
()
tests/tasks/server/test_task_middleware.py:46
Method
test_injected_tool_bypass_filtering
Test that injected tools bypass filtering.
tests/server/middleware/test_tool_injection.py:255
Method
test_injected_tool_does_not_conflict_with_base_tool
Test that injected tools with same name as base tools are called correctly.
tests/server/middleware/test_tool_injection.py:232
Method
test_injected_tool_error_handling
Test that errors in injected tools are properly handled.
tests/server/middleware/test_tool_injection.py:122
Method
test_injected_tool_metadata_preserved
Test that injected tool metadata is preserved.
tests/server/middleware/test_tool_injection.py:213
Method
test_injected_tool_on_mounted_server_follows_tool_auth
(self)
tests/server/middleware/test_tool_injection.py:415
Method
test_injected_tool_with_complex_return_type
Test injected tools with complex return types.
tests/server/middleware/test_tool_injection.py:182
Method
test_injected_tool_without_auth_is_available_to_any_token
(self)
tests/server/middleware/test_tool_injection.py:370
Method
test_injected_value_is_a_user_session_instance
The handler receives a `UserSession`, not a bare `Session` — so `isinstance(session, UserSession)` holds for code that keys off it.
tests/server/test_session_provider.py:162
Method
test_injects_bare_keys
(self, trace_exporter: InMemorySpanExporter)
tests/telemetry/test_module.py:73
Function
test_inlined_reference_instance_data_is_independent
(keyword: str)
tests/utilities/test_json_schema_expansion.py:86
Function
test_inmemory_progress_state
In-memory progress stores and returns state correctly.
tests/tasks/server/test_progress_dependency.py:105
Method
test_inner_deadline_preserves_timeout_error
(self)
tests/tools/test_tool_timeout.py:281
Method
test_inner_exit_keeps_the_outer_context
(self, server: FastMCP)
tests/client/client/test_client.py:1140
Method
test_inner_verifier_returns_none
When the inner verifier rejects the token, None is returned without aud checking.
tests/server/auth/providers/test_propelauth.py:240
Method
test_input_json_non_object_exits
(self)
tests/cli/test_client_commands.py:284
Method
test_input_json_only
(self)
tests/cli/test_client_commands.py:246
Function
test_input_required_result_capabilities
Asks only for the input methods this client declared it can answer.
tests/conformance/server.py:626
Function
test_input_required_result_elicitation
Asks the client one elicitation question, then greets the answer. A retry whose `inputResponses` omit the key is re-asked rather than errored
tests/conformance/server.py:465
Function
test_input_required_result_list_roots
Asks the client for its roots, then reports them back.
tests/conformance/server.py:508
Function
test_input_required_result_multi_round
Asks two dependent questions across three rounds.
tests/conformance/server.py:579
Function
test_input_required_result_multiple_inputs
Asks for elicitation, sampling, and roots in a single round.
tests/conformance/server.py:559
Function
test_input_required_result_prompt
A prompt that gathers its context by elicitation before rendering. `InputRequiredResult` is universal — it is a result type, not a tools/call
tests/conformance/server.py:870
← previous
next →
11,001–11,100 of 16,725, ranked by callers