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_enable_components_stores_rule_dict
Test that enable_components stores a rule dict in session state.
tests/server/test_session_visibility.py:62
Method
test_enable_marks_as_enabled
Visibility(True, ...) marks matching components as enabled.
tests/server/transforms/test_visibility.py:107
Method
test_enable_overrides_disable
An enable after disable results in enabled.
tests/server/transforms/test_visibility.py:142
Method
test_enable_prompt_prefixless_mount
Test enabling a prompt on a prefix-less mounted server.
tests/server/mount/test_advanced.py:687
Method
test_enable_prompt_route
Test enabling a prompt via the HTTP route.
tests/contrib/test_component_manager.py:202
Method
test_enable_prompt_route_with_path
(self, client_with_path, mcp_with_path)
tests/contrib/test_component_manager.py:512
Method
test_enable_raises_not_implemented_error
Test that enable() raises NotImplementedError with migration guidance.
tests/utilities/test_components.py:281
Method
test_enable_resource_prefixless_mount
Test enabling a resource on a prefix-less mounted server.
tests/server/mount/test_advanced.py:664
Method
test_enable_resource_route
Test enabling a resource via the HTTP route.
tests/contrib/test_component_manager.py:142
Method
test_enable_template_route
Test enabling a resource template via the HTTP route.
tests/contrib/test_component_manager.py:175
Method
test_enable_tool_prefixless_mount
Test enabling a tool on a prefix-less mounted server.
tests/server/mount/test_advanced.py:637
Method
test_enable_tool_route
Test enabling a tool via the HTTP route.
tests/contrib/test_component_manager.py:58
Method
test_enable_tool_route_with_path
(self, client_with_path, mcp_with_path)
tests/contrib/test_component_manager.py:491
Method
test_enable_tool_route_with_version
Test enabling a specific tool version via the HTTP route.
tests/contrib/test_component_manager.py:115
Method
test_enabled
(self, cache: TokenCache)
tests/utilities/test_token_cache.py:69
Method
test_enabled_with_verify_id_token
OIDCProxy with verify_id_token=True returns True.
tests/server/auth/test_oidc_proxy_token.py:357
Method
test_encode_decode_roundtrip
Cursor should survive encode/decode roundtrip.
tests/server/test_pagination.py:20
Method
test_encode_produces_string
Encoded cursor should be a string.
tests/server/test_pagination.py:27
Method
test_encoded_and_malformed_credentials
(self, url: str, expected: str)
tests/cli/test_tasks.py:138
Method
test_encoded_hash_stays_in_path_param
(self)
tests/resources/test_resource_template.py:1105
Method
test_encoded_literal_matches_in_either_hex_case
(self, uri: str)
tests/resources/test_resource_template.py:1815
Method
test_encoded_path_param_preserved
(self)
tests/server/providers/proxy/test_proxy_server.py:818
Method
test_encoded_payload_hides_the_credentials
( self, sensitive_snapshot: TaskContextSnapshot )
tests/tasks/server/test_snapshot_encryption.py:91
Method
test_encoding_ignored_for_binary
Encoding field should be ignored when is_binary=True.
tests/resources/test_file_resources.py:184
Method
test_encrypted_oauth_reused_by_fresh_client
( self, transport: str, auth: str | None, monkeypatch: pytest.MonkeyPatch,
tests/cli/test_client_commands.py:561
Method
test_encryption_key_defaults_to_none
(self, monkeypatch: pytest.MonkeyPatch)
tests/tasks/server/test_snapshot_encryption.py:146
Method
test_encryption_key_env_var
(self, monkeypatch: pytest.MonkeyPatch)
tests/tasks/server/test_snapshot_encryption.py:151
Method
test_encryption_key_is_not_printable
A settings dump must never carry the key into a log.
tests/tasks/server/test_snapshot_encryption.py:158
Method
test_end_client_still_enforces_the_schema
Skipping validation in the proxy doesn't disarm the real client.
tests/server/providers/proxy/test_proxy_server.py:1333
Method
test_end_removes_the_session_entirely
(self)
tests/server/test_sessions.py:221
Method
test_end_session_declares_session_id_contract
(self)
tests/server/test_session_provider.py:510
Method
test_end_session_invalidates_the_session
After `end_session` the id no longer resolves at all.
tests/server/test_session_provider.py:386
Method
test_endpoints_stay_on_base_url
(self, field: str, expected: str)
tests/server/auth/test_issuer_url_identity.py:135
Method
test_endpoints_stay_on_base_url
(self, field: str, expected: str)
tests/server/auth/test_issuer_url_identity.py:286
Method
test_enforcing_allowed_redirect_uris
Test enforcing allowed redirect uris configuration.
tests/server/auth/oauth_proxy/test_client_registration.py:220
Method
test_enhanced_descriptions_for_non_string_types
Test that non-string argument types get enhanced descriptions with JSON schema.
tests/prompts/test_prompt.py:437
Method
test_enhanced_descriptions_with_existing_descriptions
Test that existing parameter descriptions are preserved with schema appended.
tests/prompts/test_prompt.py:506
Method
test_entra_obo_token_creates_dependency
Test that EntraOBOToken creates a dependency with scopes.
tests/server/auth/providers/test_azure_scopes.py:799
Method
test_entra_obo_token_is_dependency_instance
Test that EntraOBOToken is a Dependency instance.
tests/server/auth/providers/test_azure_scopes.py:807
Method
test_entra_obo_token_is_importable
Test that EntraOBOToken can be imported.
tests/server/auth/providers/test_azure_scopes.py:793
Function
test_entry_becomes_github_release_notes
()
tests/scripts/test_draft_release.py:23
Method
test_entry_count_eviction_keeps_ids_monotonic
(self)
tests/cli/test_apps_dev_server.py:45
Function
test_entry_timeout_defaults_and_units
( backend_sessions: list[ClientSession], server_entry: dict[str, Any], entry_timeout: int | None,
tests/client/transports/test_config_timeout.py:91
Function
test_entry_timeout_limits_requests
( backend_sessions: list[ClientSession], server_entry: dict[str, Any], server_count: int, tran
tests/client/transports/test_config_timeout.py:55
Method
test_enum_default_preserved
Test that enum defaults are preserved in the schema.
tests/client/test_elicitation_enums.py:559
Function
test_enum_elicitation_schema_inline
Test that enum schemas are generated inline without $ref/$defs for MCP compatibility.
tests/client/test_elicitation_enums.py:83
Function
test_enum_elicitation_schema_inline_untitled
Test that enum schemas generate simple enum pattern (no automatic titles).
tests/client/test_elicitation_enums.py:120
Function
test_enum_elicitation_schema_inline_when_enum_reused
An enum shared by several fields is inlined in each of them.
tests/client/test_elicitation_enums.py:154
Method
test_enum_int
(self)
tests/utilities/json_schema_type/test_json_schema_type.py:306
Method
test_enum_str
(self)
tests/utilities/json_schema_type/test_json_schema_type.py:292
Method
test_enum_type_validation_error
(self)
tests/server/providers/local_provider_tools/test_parameters.py:218
Method
test_enum_type_validation_success
(self)
tests/server/providers/local_provider_tools/test_parameters.py:238
Method
test_env_var_interpolation
Test environment variable interpolation in deployment env.
tests/cli/test_config.py:197
Method
test_environment_config_fields
Test all Environment fields.
tests/cli/test_config.py:53
Function
test_environment_config_path_resolution
Test that paths in environment config are resolved correctly.
tests/cli/test_run_config.py:282
Function
test_environment_credential_takes_precedence_and_is_not_stored
( tmp_path: Path, )
tests/cli/deploy/test_credentials.py:110
Method
test_environment_variable_loading
Test that environment variables are loaded correctly.
tests/server/auth/providers/test_descope.py:41
Method
test_environment_variable_loading
Test that environment variables are loaded correctly.
tests/server/auth/providers/test_supabase.py:28
Method
test_environment_variable_loading
Test that environment variables are loaded correctly.
tests/server/auth/providers/test_scalekit.py:52
Method
test_eq_does_not_match_none_when_match_none_false
(self)
tests/server/versioning/test_versioning.py:123
Method
test_equal_versions_from_two_providers_listed_once
(self)
tests/server/versioning/test_versioning.py:485
Method
test_equality_different_components
Test that different components are not equal.
tests/utilities/test_components.py:141
Method
test_equality_different_types
Test that component is not equal to other types.
tests/utilities/test_components.py:147
Method
test_equality_same_components
Test that identical components are equal.
tests/utilities/test_components.py:135
Method
test_equivalent_spellings_order_independent
(self)
tests/server/versioning/test_versioning.py:434
Method
test_equivalent_to_app_true
PrefabAppConfig() and app=True produce equivalent renderer identities.
tests/test_apps.py:728
Method
test_error_after_response_start_truncates_the_body
Post-start failures look like a dropped socket, not a raised exception.
tests/utilities/test_asgi_transport.py:100
Method
test_error_before_response_start_propagates_to_caller
(self)
tests/utilities/test_asgi_transport.py:90
Function
test_error_handling
Always returns an error.
tests/conformance/server.py:149
Method
test_error_handling
Test error handling in FunctionResource.
tests/resources/test_function_resources.py:89
Method
test_error_handling
Test error handling for HTTP errors.
tests/server/providers/openapi/test_comprehensive.py:642
Method
test_error_handling_middleware_custom_callback
Test error handling middleware with custom error callback.
tests/server/middleware/test_error_handling.py:590
Method
test_error_handling_middleware_keeps_unknown_names_bounded
( self, meter_provider, reader )
tests/server/middleware/test_usage.py:118
Method
test_error_handling_middleware_logs_real_errors
Test that error handling middleware logs real errors from tools.
tests/server/middleware/test_error_handling.py:512
Method
test_error_handling_middleware_tracks_error_statistics
Test that error handling middleware accurately tracks error statistics.
tests/server/middleware/test_error_handling.py:535
Method
test_error_handling_middleware_transform_errors
Test error transformation functionality.
tests/server/middleware/test_error_handling.py:623
Method
test_error_handling_middleware_with_success_and_failure
Test error handling middleware with mix of successful and failed operations.
tests/server/middleware/test_error_handling.py:566
Method
test_error_if_exists
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:637
Method
test_error_if_skill_exists
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:729
Function
test_error_message_preserves_details_without_html_noise
( response: httpx2.Response, expected: str, unexpected: str )
tests/server/providers/openapi/test_http_error_details_regression.py:52
Method
test_error_message_quality_pydantic
Capture error message with Pydantic validation.
tests/server/test_input_validation.py:415
Method
test_error_message_quality_strict
Capture error message with strict validation.
tests/server/test_input_validation.py:391
Method
test_error_names_supported_forms_with_single_braces
(self)
tests/resources/test_resource_template_level3.py:254
Method
test_error_on_unknown_prompt
get_prompt raises error for unknown prompt name.
tests/server/transforms/test_prompts_as_tools.py:186
Method
test_error_on_unknown_resource
read_resource raises error for unknown URI.
tests/server/transforms/test_resources_as_tools.py:209
Method
test_error_raised_at_decoration_not_registration
The TypeError must surface when the decorator is applied, not later.
tests/contrib/test_mcp_mixin.py:452
Method
test_error_redirect_does_not_duplicate_iss_already_in_redirect_uri
RFC 9207 P2 regression: a registered redirect_uri may already carry its own `iss` query parameter (e.g. a multi-tenant client encoding
tests/server/auth/oauth_proxy/test_oauth_proxy.py:462
Method
test_error_redirect_with_existing_iss_not_duplicated
The duplication guard applies to error redirects too, not just success ones — a provider override can construct an `error` redirect th
tests/server/auth/test_enhanced_error_responses.py:587
Method
test_error_result_is_not_cached
(self)
tests/server/middleware/test_caching.py:779
Function
test_error_result_preserves_text_with_structured_content
(text: str)
tests/experimental/transforms/test_code_mode.py:1241
Function
test_error_result_without_text_uses_generic_message
( content: list[str], )
tests/experimental/transforms/test_code_mode.py:1215
Method
test_error_tool_passthrough_preserves_content
Upstream error results pass through with content intact, not flattened.
tests/server/providers/proxy/test_proxy_server.py:454
Method
test_error_tool_raises_error
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:418
Method
test_error_tool_with_empty_content
Error responses with empty content should not crash.
tests/server/providers/proxy/test_proxy_server.py:441
Method
test_error_tool_with_image_content
Non-TextContent error responses should not crash with AttributeError.
tests/server/providers/proxy/test_proxy_server.py:424
Method
test_error_unchanged_without_renames
(self)
tests/tools/tool_transform/test_args.py:593
Method
test_error_uses_outermost_name_when_chained
(self, find_tool: Tool)
tests/tools/tool_transform/test_args.py:584
Method
test_error_uses_renamed_arg
( self, find_tool: Tool, arguments: dict[str, Any], location: str )
tests/tools/tool_transform/test_args.py:578
Method
test_error_with_empty_content_raises_with_fallback_message
(self)
tests/client/client/test_error_handling.py:296
Method
test_error_with_missing_transaction_returns_html_error
When the IdP returns an error but the transaction is missing or expired, the proxy must return a local HTML error page — there is no t
tests/server/auth/oauth_proxy/test_oauth_proxy.py:550
← previous
next →
9,801–9,900 of 16,725, ranked by callers