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_future_nbf_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:558
Method
test_gaierror_repro_succeeds_through_proxy
Reproduces issue #4292: on a host with no external DNS at all (every getaddrinfo() call raises gaierror), the OAuth/JWKS fetch still succeeds
tests/server/auth/test_ssrf_protection.py:843
Function
test_gate_label_is_gated
()
tests/test_triage_floor_feed.py:28
Function
test_gateway_construction_does_not_create_backend_client
()
tests/server/providers/proxy/test_server_metadata.py:590
Method
test_gateway_emits_its_own_name_not_the_backends
(self)
tests/server/providers/test_prefab_roundtrip.py:327
Method
test_gemini_cli_basic
Test basic gemini-cli install command parsing.
tests/cli/test_install.py:471
Method
test_gemini_cli_with_new_options
Test gemini-cli install with new uv options.
tests/cli/test_install.py:503
Method
test_gemini_cli_with_options
Test gemini-cli install with various options.
tests/cli/test_install.py:483
Method
test_gemini_http_url_becomes_url
(self)
tests/cli/test_discovery.py:265
Method
test_gemini_http_url_does_not_override_url
(self)
tests/cli/test_discovery.py:271
Method
test_gemini_skills_provider_path
Test GeminiSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:56
Method
test_general_prompt_exceptions_are_masked_when_enabled
( self, is_async: bool )
tests/client/client/test_error_handling.py:220
Method
test_general_prompt_exceptions_are_not_masked_by_default
(self)
tests/client/client/test_error_handling.py:203
Method
test_general_resource_exceptions_are_masked_when_enabled
(self)
tests/client/client/test_error_handling.py:127
Method
test_general_resource_exceptions_are_not_masked_by_default
(self)
tests/client/client/test_error_handling.py:111
Method
test_general_template_exceptions_are_masked_when_enabled
(self)
tests/client/client/test_error_handling.py:173
Method
test_general_template_exceptions_are_not_masked_by_default
(self)
tests/client/client/test_error_handling.py:157
Method
test_general_tool_exceptions_are_masked_when_enabled
(self)
tests/client/client/test_error_handling.py:65
Method
test_general_tool_exceptions_are_not_masked_by_default
(self)
tests/client/client/test_error_handling.py:49
Method
test_generate_deeplink_basic
Test basic deeplink generation.
tests/cli/test_cursor.py:21
Method
test_generate_deeplink_complex_args
Test deeplink generation with complex arguments.
tests/cli/test_cursor.py:95
Method
test_generate_deeplink_empty_config
Test deeplink generation with minimal config.
tests/cli/test_cursor.py:81
Method
test_generate_deeplink_special_characters
Test deeplink generation with special characters in server name.
tests/cli/test_cursor.py:66
Method
test_generate_deeplink_url_injection_protection
Test that special characters in server name are properly URL-encoded to prevent injection.
tests/cli/test_cursor.py:122
Method
test_generate_deeplink_with_env_vars
Test deeplink generation with environment variables.
tests/cli/test_cursor.py:49
Method
test_generate_key_pair
Test RSA key pair generation.
tests/server/auth/test_jwt_provider.py:197
Function
test_generated_tool_delivers_non_accepting_answer
The component receives refusal instead of empty success or a retry.
tests/server/transforms/test_input_required.py:147
Function
test_generated_tool_drives_input_rounds
Formatting the empty control result must not swallow the question.
tests/server/transforms/test_input_required.py:115
Function
test_generated_tool_rejects_input_required_on_legacy_connection
An unsupported era must raise its usual error, not empty success.
tests/server/transforms/test_input_required.py:175
Function
test_generator_body_validation_is_tool_error
( asynchronous: bool, injected: bool, )
tests/tools/tool_transform/test_generator_execution.py:51
Method
test_generator_closed_on_exception
Verify aclose() is called even when an exception occurs mid-flow.
tests/client/auth/test_oauth_client.py:460
Method
test_generator_closed_on_successful_flow
Verify aclose() is called on the parent generator after successful flow.
tests/client/auth/test_oauth_client.py:407
Function
test_generator_failure_closes_dependency_after_generator
(failure: str)
tests/server/test_generator_dependency_lifetime.py:74
Function
test_generator_iteration_error_is_tool_error
(run_in_thread: bool)
tests/tools/test_generator_thread_dispatch.py:112
Function
test_generator_result_keeps_dependency_open
(kind: str, run_in_thread: bool)
tests/server/test_generator_dependency_lifetime.py:22
Method
test_generic_exception_is_masked
Generic exceptions from auth checks should be masked (return False).
tests/server/auth/test_authorization.py:347
Function
test_generic_middleware_sees_one_request_per_completion
Rate limits, logging, and metrics must see a completion as one request (4.0.6 charged each completion two or three times).
tests/server/test_completions.py:324
Method
test_generic_type_is_not_member
Test that generic types are not members based on their parameter types.
tests/utilities/test_types.py:104
Method
test_get_access_token_falls_back_to_context_var_when_no_request
Verify that get_access_token falls back to auth_context_var when there's no HTTP request available.
tests/server/http/test_stale_access_token.py:104
Method
test_get_access_token_falls_back_when_scope_user_is_not_authenticated
Verify that get_access_token falls back to auth_context_var when scope["user"] exists but is not an AuthenticatedUser (e.g., Unauthen
tests/server/http/test_stale_access_token.py:136
Function
test_get_access_token_in_bg_task_without_context_dep
Issue #3897 repro: get_access_token() works in a bg task that does not declare Context as a dependency.
tests/tasks/server/test_snapshot_restore.py:58
Method
test_get_access_token_prefers_request_scope_over_stale_context_var
Regression test for issue #1863. Scenario: - auth_context_var has a STALE token (set at HTTP middleware level) - req
tests/server/http/test_stale_access_token.py:41
Method
test_get_access_token_returns_none_when_no_auth
Verify that get_access_token returns None when there's no authenticated user anywhere.
tests/server/http/test_stale_access_token.py:128
Method
test_get_access_token_returns_subject_for_realistic_jwt_request
End-to-end path a real authenticated request actually takes. Mirrors ``mcp.server.auth.middleware.bearer_auth.BearerAuthBackend``, wh
tests/server/auth/test_jwt_provider.py:642
Method
test_get_additional_http_routes_empty
Test _get_additional_http_routes returns empty list for server with no routes.
tests/server/mount/test_advanced.py:70
Method
test_get_additional_http_routes_with_custom_route
Test _get_additional_http_routes returns server's own routes.
tests/server/mount/test_advanced.py:76
Method
test_get_cached_typeadapter_with_string_descriptions
Test TypeAdapter creation with string descriptions.
tests/utilities/test_types.py:755
Method
test_get_client_disabled
Test that get_client returns None when disabled.
tests/server/auth/test_cimd_validators.py:538
Method
test_get_client_fetch_failure
Test that get_client returns None on fetch failure.
tests/server/auth/test_cimd_validators.py:543
Method
test_get_client_identifier_async_custom
Test custom async client identifier.
tests/server/middleware/test_rate_limiting.py:281
Method
test_get_client_identifier_custom
Test custom client identifier.
tests/server/middleware/test_rate_limiting.py:272
Method
test_get_client_identifier_default
Test default client identifier.
tests/server/middleware/test_rate_limiting.py:267
Method
test_get_client_success
Test successful CIMD client creation.
tests/server/auth/test_cimd_validators.py:517
Function
test_get_client_task_id_round_trip
( scope: str | None, task_id: str, task_type: str, identifier: str )
tests/tasks/server/test_task_keys.py:60
Method
test_get_dependency_parameters
Test get_dependency_parameters finds dependency defaults.
tests/server/test_dependencies.py:896
Method
test_get_error_stats
Test getting error statistics.
tests/server/middleware/test_error_handling.py:296
Method
test_get_error_stats_bounds_distinct_methods
Distinct request methods beyond the stats limit share one bucket.
tests/server/middleware/test_error_handling.py:311
Function
test_get_http_headers_excludes_content_type
Test that get_http_headers() excludes content-type header (issue #3097). This prevents HTTP 415 errors when forwarding headers to downstream APIs
tests/server/http/test_http_dependencies.py:132
Function
test_get_http_headers_excludes_cookie
get_http_headers() must not leak the caller's Cookie to a backend. The OpenAPI provider forwards this mapping to the upstream named in the sp
tests/server/http/test_http_dependencies.py:169
Method
test_get_meta_excludes_version_when_none
Test that get_meta excludes version when component has no version.
tests/utilities/test_components.py:127
Method
test_get_meta_includes_version
Test that get_meta includes version when component has a version.
tests/utilities/test_components.py:119
Method
test_get_meta_preserves_existing_fastmcp_meta
Test that get_meta preserves existing fastmcp meta.
tests/utilities/test_components.py:99
Method
test_get_meta_returns_copy
Test that get_meta returns a copy, not a reference to the original.
tests/utilities/test_components.py:354
Method
test_get_meta_returns_dict_with_fastmcp_when_empty
Test that get_meta returns dict with fastmcp meta even when no custom meta.
tests/utilities/test_components.py:111
Method
test_get_meta_with_fastmcp_meta
Test get_meta always includes fastmcp meta.
tests/utilities/test_components.py:90
Method
test_get_mime_type_from_path
Test MIME type detection from file extension.
tests/utilities/test_types.py:207
Method
test_get_mime_type_from_path
Test MIME type detection from file extension.
tests/utilities/test_types.py:335
Method
test_get_mime_type_from_path
Test MIME type detection from file extension.
tests/utilities/test_types.py:523
Method
test_get_miss_returns_none
(self)
tests/client/client/test_kv_response_cache.py:81
Function
test_get_model
()
tests/client/sampling/handlers/test_google_genai_handler.py:164
Method
test_get_nonexistent_tool_returns_none
Test that getting a nonexistent tool returns None.
tests/server/providers/test_fastmcp_provider.py:107
Method
test_get_npx_command_unix
Test npx command detection on Unix systems.
tests/cli/test_cli.py:509
Method
test_get_npx_command_windows_cmd
Test npx command detection on Windows with npx.cmd.
tests/cli/test_cli.py:425
Method
test_get_npx_command_windows_cmd_missing
Test npx command detection continues when npx.cmd is missing.
tests/cli/test_cli.py:460
Method
test_get_npx_command_windows_exe
Test npx command detection on Windows with npx.exe.
tests/cli/test_cli.py:443
Method
test_get_npx_command_windows_fallback
Test npx command detection on Windows with plain npx.
tests/cli/test_cli.py:477
Method
test_get_npx_command_windows_not_found
Test npx command detection on Windows when npx is not found.
tests/cli/test_cli.py:495
Method
test_get_obo_credential_caches_by_assertion
Test that the same assertion returns the cached credential.
tests/server/auth/providers/test_azure_scopes.py:654
Method
test_get_obo_credential_different_assertions_get_different_credentials
Test that different assertions produce different credentials.
tests/server/auth/providers/test_azure_scopes.py:677
Method
test_get_obo_credential_evicts_oldest_when_over_capacity
Test that credentials are evicted LRU-style when cache is full.
tests/server/auth/providers/test_azure_scopes.py:701
Method
test_get_obo_credential_returns_configured_credential
Test that get_obo_credential returns a properly configured credential.
tests/server/auth/providers/test_azure_scopes.py:624
Method
test_get_obo_credential_with_custom_authority
Test that get_obo_credential uses custom base_authority.
tests/server/auth/providers/test_azure_scopes.py:755
Method
test_get_oidc_configuration
Test with valid response and explicit timeout.
tests/server/auth/test_oidc_proxy.py:387
Method
test_get_oidc_configuration_no_timeout
Test with valid response and no timeout.
tests/server/auth/test_oidc_proxy.py:394
Method
test_get_oidc_configuration_not_strict
Test with invalid response and strict set to False.
tests/server/auth/test_oidc_proxy.py:408
Method
test_get_oidc_configuration_raises_error
Test with invalid response.
tests/server/auth/test_oidc_proxy.py:401
Function
test_get_prompt
Test getting a prompt with InMemoryClient.
tests/client/client/test_client.py:180
Method
test_get_prompt
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:208
Method
test_get_prompt
Test getting a specific prompt by name.
tests/server/providers/test_fastmcp_provider.py:253
Method
test_get_prompt_and_disable
(self)
tests/server/providers/test_local_provider_prompts.py:390
Function
test_get_prompt_both_eras
(dual_era_server, mode)
tests/server/test_protocol_eras.py:138
Method
test_get_prompt_cache_is_partitioned_by_component_version
( self, versioned_caching_server: tuple[FastMCP, dict[str, int]] )
tests/server/middleware/test_versioned_caching.py:100
Method
test_get_prompt_cache_key_ignores_argument_order
(self)
tests/server/middleware/test_caching.py:313
Method
test_get_prompt_creates_span
(self, trace_exporter: InMemorySpanExporter)
tests/client/telemetry/test_client_tracing.py:180
Method
test_get_prompt_denied_by_component_auth
(self)
tests/server/auth/test_authorization.py:1165
Method
test_get_prompt_error_creates_spans
Both client and server spans should be created when prompt get fails.
tests/client/telemetry/test_client_tracing.py:472
Method
test_get_prompt_explicit_disabled_version_returns_none
Requesting a specific disabled prompt version should return None.
tests/server/versioning/test_visibility_version_fallback.py:236
Method
test_get_prompt_explicit_unauthorized_version_returns_none
(self)
tests/server/versioning/test_auth_version_fallback.py:200
Method
test_get_prompt_found
Test getting a prompt that exists.
tests/server/providers/test_local_provider.py:277
Method
test_get_prompt_key_is_hashed_and_stable
(self)
tests/server/middleware/test_caching.py:965
← previous
next →
10,501–10,600 of 16,725, ranked by callers