Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Function
test_convert_tool_choice_unknown_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:351
Function
test_convert_tool_result_preserves_nested_images
( result_content: list[TextContent | ImageContent], expected_content: list[dict[str, Any]], as_blo
tests/client/sampling/handlers/test_anthropic_handler.py:478
Function
test_convert_tool_result_preserves_text
()
tests/client/sampling/handlers/test_openai_handler.py:178
Function
test_convert_tool_result_rejects_unsupported_images
( as_block_list: bool, result_content: list[TextContent | ImageContent] )
tests/client/sampling/handlers/test_openai_handler.py:219
Function
test_convert_tool_strips_titles
_convert_tool_to_google_genai should strip titles from inputSchema. We test via compress_schema directly rather than constructing a FunctionD
tests/client/sampling/handlers/test_google_genai_handler.py:662
Function
test_convert_tools_to_anthropic
()
tests/client/sampling/handlers/test_anthropic_handler.py:358
Method
test_converted_return_annotation
(self, annotation, expected)
tests/tools/tool/test_output_schema.py:128
Method
test_converts_raw_value
Raw values are converted to ResourceResult.
tests/resources/test_resources.py:290
Method
test_cookie_non_string_value_stringified
Non-string cookie values (e.g. int, bool) use OpenAPI serialization.
tests/utilities/openapi/test_director.py:1564
Method
test_cookie_parameter_set_on_request
Cookie parameters should appear as cookies on the request.
tests/utilities/openapi/test_director.py:1532
Method
test_cookie_parameter_with_fallback_mapping
Cookie parameters should work in fallback (no parameter_map) mode.
tests/utilities/openapi/test_director.py:1541
Method
test_copilot_skills_provider_path
Test CopilotSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:70
Method
test_copy_can_override_list_query_params
(self)
tests/resources/test_resource_template.py:910
Method
test_copy_method
Test copy method creates an independent copy.
tests/utilities/test_components.py:161
Function
test_costly_pattern_stops_within_the_search_budget
()
tests/server/transforms/test_search_regex.py:102
Function
test_counts_use_collection_start_like_backlog_chart
(triage)
tests/test_public_triage.py:186
Method
test_covers_every_cacheable_method
(self)
tests/server/test_cache_hints.py:30
Method
test_crash_during_active_context
When subprocess dies while the client context is open, recovery works on the next attempt.
tests/client/test_stdio.py:703
Method
test_crash_during_initialization
Recovery works when subprocess crashes during the first connection attempt.
tests/client/test_stdio.py:844
Function
test_create_and_get_carry_ttl_and_poll_interval
()
tests/tasks/server/test_extension.py:255
Method
test_create_basic_auth_header
Test HTTP Basic Auth header creation.
tests/server/auth/providers/test_introspection.py:76
Method
test_create_basic_token
Test basic token creation.
tests/server/auth/test_jwt_provider.py:213
Method
test_create_before_message
Test message formatting without payloads.
tests/server/middleware/test_logging.py:117
Method
test_create_before_message_long_payload
Test message formatting with long payload truncation.
tests/server/middleware/test_logging.py:243
Method
test_create_consent_html_escapes_client_id_in_details
Test that Application ID is escaped in advanced details.
tests/server/auth/oauth_proxy/test_ui.py:107
Method
test_create_error_html_basic
Test basic error page generation.
tests/server/auth/oauth_proxy/test_ui.py:17
Method
test_create_error_html_escapes_user_input
Test that error page properly escapes HTML in user input.
tests/server/auth/oauth_proxy/test_ui.py:50
Method
test_create_error_html_with_details
Test error page with error details.
tests/server/auth/oauth_proxy/test_ui.py:31
Method
test_create_mcp_http_client_strips_auth_on_cross_origin
create_mcp_http_client creates clients that strip auth on cross-origin redirects.
tests/client/transports/test_no_redirect.py:138
Method
test_create_message_with_payloads
Test message formatting with payloads.
tests/server/middleware/test_logging.py:131
Method
test_create_proxy_backend_defaults_to_legacy
The backend client `create_proxy` builds is legacy by default too.
tests/server/providers/proxy/test_proxy_client.py:57
Method
test_create_proxy_backend_honors_explicit_mode
(self)
tests/server/providers/proxy/test_proxy_client.py:63
Function
test_create_proxy_with_client
Test create_proxy with a Client.
tests/server/providers/proxy/test_proxy_server.py:183
Function
test_create_proxy_with_server
create_proxy should accept a FastMCP instance.
tests/server/providers/proxy/test_proxy_server.py:193
Function
test_create_proxy_with_transport
create_proxy should accept a ClientTransport.
tests/server/providers/proxy/test_proxy_server.py:201
Function
test_create_proxy_with_url
create_proxy should accept a URL without connecting.
tests/server/providers/proxy/test_proxy_server.py:236
Method
test_create_resource
Test creating a resource from a template.
tests/resources/test_resource_template.py:178
Method
test_create_server
(self)
tests/server/test_server.py:17
Method
test_create_session_ids_are_distinct
(self)
tests/server/test_session_provider.py:502
Method
test_create_session_returns_a_uuid_string
(self)
tests/server/test_session_provider.py:493
Function
test_create_sse_app_sets_state
()
tests/server/test_app_state.py:23
Function
test_create_sse_app_with_custom_middleware
Test that custom middleware works with create_sse_app function.
tests/server/http/test_http_middleware.py:118
Function
test_create_streamable_http_app_sets_state
()
tests/server/test_app_state.py:17
Function
test_create_streamable_http_app_with_custom_middleware
Test that custom middleware works with create_streamable_http_app function.
tests/server/http/test_http_middleware.py:157
Function
test_create_task_result_emits_result_type_discriminator
The protocol requires `resultType: "task"` to distinguish a tasked result. The modern `tools/call` union discriminates on `resultType`, and the S
tests/tasks/server/test_wire_models.py:81
Function
test_create_task_result_matches_schema
()
tests/tasks/server/test_wire_models.py:69
Method
test_create_token_with_scopes
Test token creation with scopes.
tests/server/auth/test_jwt_provider.py:223
Method
test_created_id_round_trips_state_across_calls
(self)
tests/server/test_session_provider.py:336
Method
test_created_resource_meta_is_not_aliased_to_template
Mutating the materialized resource's meta must not bleed back into the template (each materialization must be independent).
tests/resources/test_resource_template_meta.py:66
Method
test_created_session_exists
(self)
tests/server/test_sessions.py:194
Method
test_created_under_one_principal_rejected_under_another
An id created by principal A is rejected when used by principal B.
tests/server/test_session_provider.py:435
Method
test_creates_nested_directories
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:272
Function
test_credential_store_rejects_empty_api_keys
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:320
Function
test_credential_store_restricts_an_existing_secret_file
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:61
Function
test_credential_store_restricts_file_and_directory_modes
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:52
Function
test_credential_store_writes_only_the_approved_contract
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:39
Function
test_credits_authors_from_earlier_pr_commits
( monkeypatch: pytest.MonkeyPatch, merge_strategy: str )
tests/scripts/test_release_contributor_credit.py:252
Method
test_critical_private_header_is_rejected
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider.py:267
Method
test_cross_origin_requests_are_rejected_on_every_route
( self, method: str, path: str, headers: dict[str, str] )
tests/cli/test_apps_dev_server.py:493
Method
test_cross_provider_duplicate_warns
Two mounted providers exposing the same tool identity log a warning.
tests/server/mount/test_mount.py:638
Method
test_csp_and_permissions_roundtrip
CSP and permissions metadata flows through to clients correctly.
tests/test_apps.py:622
Function
test_csp_domain_order_does_not_change_identity
()
tests/server/providers/test_prefab_sharing.py:56
Function
test_csp_is_on_renderer_resource_not_tool
CSP belongs on the ui:// resource; tool meta carries only resourceUri.
tests/apps/test_generative.py:11
Method
test_csp_not_in_listed_tool_meta
(self)
tests/server/providers/test_prefab_synthesis.py:83
Function
test_ctx_attributes_named_in_guides_exist
Every ``ctx.<name>`` in a guide either exists or is documented as absent.
tests/docs/test_upgrade_guide_api_claims.py:86
Function
test_ctx_session_state_works_in_background_task
`ctx.session_id` and `ctx.get_state`/`set_state` work inside a worker. A worker has no live session, so the Context-level session API falls back
tests/tasks/server/test_task_dependencies.py:252
Method
test_cull_is_noop_with_custom_storage
(self, jwt_verifier, isolated_home)
tests/server/auth/test_oauth_proxy_storage.py:283
Method
test_cull_is_throttled_and_resumes_after_interval
A long-running server keeps culling, but at most once per interval.
tests/server/auth/test_oauth_proxy_storage.py:293
Method
test_cull_reaps_expired_entries_only
(self, jwt_verifier, isolated_home)
tests/server/auth/test_oauth_proxy_storage.py:264
Method
test_current_access_token_excluded_from_tool_schema
Test that CurrentAccessToken dependency is excluded from tool schema.
tests/server/test_dependencies.py:965
Method
test_current_access_token_exported_from_all
Test that CurrentAccessToken is exported from __all__.
tests/server/test_dependencies.py:1002
Method
test_current_access_token_is_dependency
Test that CurrentAccessToken is a Dependency instance.
tests/server/test_dependencies.py:931
Method
test_current_access_token_is_importable
Test that CurrentAccessToken can be imported.
tests/server/test_dependencies.py:919
Method
test_current_access_token_raises_without_token
Test that CurrentAccessToken raises when no token is available.
tests/server/test_dependencies.py:949
Function
test_current_context_and_legacy_context_coexist
Test that CurrentContext dependency and legacy Context injection work together.
tests/server/test_dependencies.py:162
Function
test_current_context_dependency
Test that CurrentContext dependency provides access to FastMCP Context.
tests/server/test_dependencies.py:149
Function
test_current_docket
CurrentDocket dependency provides access to Docket instance.
tests/server/test_server_docket.py:36
Method
test_current_fastmcp_resolves_to_child_server
(self)
tests/tasks/server/test_task_mount.py:238
Function
test_current_headers_still_exposes_cookie
CurrentHeaders() reads the request, so credentials stay visible. The default denylist protects call sites that forward headers upstream. A ha
tests/server/http/test_http_dependencies.py:202
Method
test_current_principal_encodes_triple
(self)
tests/server/test_sessions.py:65
Method
test_current_principal_none_without_auth
(self)
tests/server/test_sessions.py:62
Function
test_current_worker
CurrentWorker dependency provides access to Worker instance.
tests/server/test_server_docket.py:56
Method
test_cursor_basic
Test basic cursor install command parsing.
tests/cli/test_install.py:289
Method
test_cursor_command_basic
Test basic cursor command execution.
tests/cli/test_cursor.py:420
Method
test_cursor_command_failure
Test cursor command when installation fails.
tests/cli/test_cursor.py:450
Method
test_cursor_skills_provider_path
Test CursorSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:30
Method
test_cursor_with_options
Test cursor install with options.
tests/cli/test_install.py:299
Method
test_custom_auth_raises
(self, transport_cls: type)
tests/cli/test_generate_cli_remote.py:95
Method
test_custom_auth_route
(self)
tests/server/auth/providers/test_supabase.py:139
Method
test_custom_auth_route_trailing_slash
(self)
tests/server/auth/providers/test_supabase.py:153
Method
test_custom_base_authority_for_gov_cloud
(self)
tests/server/auth/providers/test_azure_scopes.py:561
Method
test_custom_button_text
(self)
tests/apps/test_approval.py:40
Method
test_custom_cache_settings
Test that cache settings can be customized.
tests/server/auth/providers/test_introspection.py:562
Method
test_custom_client_identification
Test rate limiting with custom client identification.
tests/server/middleware/test_rate_limiting.py:654
Function
test_custom_clone_can_reconstruct_non_copyable_configuration
()
tests/server/test_provider_extensions.py:520
Method
test_custom_content_type_preserves_other_headers
Custom content type doesn't clobber other headers from parameters.
tests/utilities/openapi/test_director.py:558
Method
test_custom_csp_policy_is_used
Test that custom CSP policy is applied to consent page.
tests/server/auth/test_oauth_consent_page.py:570
Method
test_custom_default_code
(self)
tests/test_exceptions.py:46
Method
test_custom_description
(self)
tests/cli/test_goose.py:139
Method
test_custom_error_codes_are_not_logged
(self, caplog)
tests/server/test_input_validation.py:719
← previous
next →
8,601–8,700 of 15,974, ranked by callers