Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
17,519 in github.com/PrefectHQ/fastmcp
⨍
Functions
17,519
◇
Types & classes
2,390
↳
Endpoints
196
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_skill_name_is_valid
(server_spec: str, expected_name: str)
tests/cli/test_generate_skill_name.py:32
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:268
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:1012
Method
test_get_prompt_key_partitions_by_auth
(self)
tests/server/middleware/test_caching.py:1043
Method
test_get_prompt_key_partitions_by_component_version
(self)
tests/server/middleware/test_versioned_caching.py:151
Function
test_get_prompt_mcp
Test the get_prompt_mcp method that returns raw MCP protocol objects.
tests/client/client/test_client.py:193
Method
test_get_prompt_missing_required_argument_is_invalid_params
( self, mask_error_details: bool )
tests/prompts/test_prompt.py:950
Method
test_get_prompt_not_found
Test getting a prompt that doesn't exist returns None.
tests/server/providers/test_local_provider.py:291
Method
test_get_prompt_on_nested_server
( self, mcp_server: FastMCP, nested_mcp_server: FastMCP, recording_middleware:
tests/server/middleware/test_middleware_nested.py:360
Method
test_get_prompt_on_parent_server
( self, mcp_server: FastMCP, nested_mcp_server: FastMCP, recording_middleware:
tests/server/middleware/test_middleware_nested.py:340
Method
test_get_prompt_returns_v1_when_v2_disabled
get_prompt should return v1 when v2 is disabled.
tests/server/versioning/test_visibility_version_fallback.py:218
Method
test_get_prompt_returns_v1_when_v2_unauthorized
(self)
tests/server/versioning/test_auth_version_fallback.py:185
Method
test_get_prompt_span_attributes
( self, trace_exporter: InMemorySpanExporter )
tests/client/telemetry/test_client_tracing.py:198
Method
test_get_prompt_unconvertible_argument_is_invalid_params
( self, mask_error_details: bool, arguments: dict[str, str] )
tests/prompts/test_prompt.py:975
Method
test_get_prompt_validator_expecting_json_input_still_converts
(self)
tests/prompts/test_prompt.py:1008
Method
test_get_prompt_validator_type_error_remains_internal
(self, value: str)
tests/prompts/test_prompt.py:992
Method
test_get_prompt_version_selection
Client.get_prompt routes to correct version via request meta.
tests/server/versioning/test_calls.py:312
Method
test_get_prompts
Test that get prompts caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:638
Method
test_get_prompts_meta
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:871
Method
test_get_prompts_server_method
(self, proxy_server: FastMCPProxy)
tests/server/providers/proxy/test_proxy_server.py:867
Method
test_get_raises_for_failing_mount_when_enabled
(self)
tests/server/mount/test_mount.py:393
Method
test_get_registered_client
Test retrieving a registered client.
tests/server/auth/oauth_proxy/test_client_registration.py:92
Method
test_get_resource
Test getting a specific resource by URI.
tests/server/providers/test_fastmcp_provider.py:153
Method
test_get_resource_and_disable
(self)
tests/server/providers/test_local_provider_resources.py:809
Method
test_get_resource_explicit_disabled_version_returns_none
Requesting a specific disabled resource version should return None.
tests/server/versioning/test_visibility_version_fallback.py:175
← previous
next →
11,101–11,200 of 17,519, ranked by callers