Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Method
test_contract_is_not_duplicated_when_author_repeats_it
An author who already includes the contract text doesn't get it twice.
tests/server/test_session_provider.py:522
Function
test_control_schema_and_receipt
(bridge)
examples/smart_home/tests/test_lights.py:171
Function
test_convert_audio_in_assistant_message_raises
()
tests/client/sampling/handlers/test_openai_handler.py:192
Function
test_convert_audio_message_to_google_genai_content
()
tests/client/sampling/handlers/test_google_genai_handler.py:103
Method
test_convert_content_block
(self, content_block)
tests/tools/tool/test_content.py:129
Method
test_convert_helpers
(self, result, expected)
tests/tools/tool/test_content.py:171
Function
test_convert_image_in_assistant_message_raises
()
tests/client/sampling/handlers/test_openai_handler.py:177
Function
test_convert_image_in_assistant_message_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:157
Function
test_convert_image_message_to_google_genai_content
()
tests/client/sampling/handlers/test_google_genai_handler.py:87
Method
test_convert_list
Test that a list is converted to a TextContent.
tests/tools/tool/test_content.py:98
Function
test_convert_list_content_with_audio_and_text
()
tests/client/sampling/handlers/test_google_genai_handler.py:140
Function
test_convert_list_content_with_audio_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:142
Function
test_convert_list_content_with_image_and_text
()
tests/client/sampling/handlers/test_google_genai_handler.py:119
Function
test_convert_list_content_with_image_and_text
()
tests/client/sampling/handlers/test_openai_handler.py:148
Function
test_convert_list_content_with_image_and_text
()
tests/client/sampling/handlers/test_anthropic_handler.py:112
Function
test_convert_list_image_in_assistant_message_raises
Image/audio in an assistant list-content message should raise, not silently drop.
tests/client/sampling/handlers/test_openai_handler.py:207
Function
test_convert_list_image_in_assistant_message_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:171
Function
test_convert_list_tool_calls_with_image_raises
Image/audio alongside tool_calls in assistant list should raise.
tests/client/sampling/handlers/test_openai_handler.py:224
Function
test_convert_messages_raises_on_unsupported_content_type
Unsupported content types should raise ValueError. SamplingMessage validates content against a union of known types, so we use model_construc
tests/client/sampling/handlers/test_openai_handler.py:323
Function
test_convert_messages_raises_on_unsupported_content_type
Unsupported content types should raise ValueError. SamplingMessage validates content against a union of known types, so we use model_construc
tests/client/sampling/handlers/test_anthropic_handler.py:383
Function
test_convert_messages_with_multiple_content_blocks
Test converting messages with multiple content blocks (list content).
tests/client/sampling/handlers/test_google_genai_handler.py:336
Function
test_convert_messages_with_tool_result
Test converting messages containing ToolResultContent.
tests/client/sampling/handlers/test_google_genai_handler.py:315
Function
test_convert_messages_with_tool_result_content
Test converting messages that include tool result content from user.
tests/client/sampling/handlers/test_anthropic_handler.py:356
Function
test_convert_messages_with_tool_use
Test converting messages containing ToolUseContent.
tests/client/sampling/handlers/test_google_genai_handler.py:288
Function
test_convert_messages_with_tool_use_content
Test converting messages that include tool use content from assistant.
tests/client/sampling/handlers/test_anthropic_handler.py:328
Method
test_convert_mixed_content
(self)
tests/tools/tool/test_content.py:178
Function
test_convert_sampling_messages_to_anthropic_messages
()
tests/client/sampling/handlers/test_anthropic_handler.py:32
Function
test_convert_sampling_messages_to_google_genai_content
()
tests/client/sampling/handlers/test_google_genai_handler.py:48
Function
test_convert_sampling_messages_to_openai_messages
()
tests/client/sampling/handlers/test_openai_handler.py:38
Function
test_convert_single_audio_content_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:98
Function
test_convert_single_audio_content_to_google_genai
()
tests/client/sampling/handlers/test_google_genai_handler.py:77
Function
test_convert_single_audio_content_to_openai_message
()
tests/client/sampling/handlers/test_openai_handler.py:125
Function
test_convert_single_image_content_to_anthropic_message
()
tests/client/sampling/handlers/test_anthropic_handler.py:72
Function
test_convert_single_image_content_to_google_genai
()
tests/client/sampling/handlers/test_google_genai_handler.py:67
Function
test_convert_single_image_content_to_openai_message
()
tests/client/sampling/handlers/test_openai_handler.py:102
Method
test_convert_singular
Test that a single item is converted to a TextContent.
tests/tools/tool/test_content.py:50
Function
test_convert_str_to_complex_type
Test that string arguments are converted to the complex type when valid
tests/utilities/test_typeadapter.py:159
Function
test_convert_tool_choice_auto
()
tests/client/sampling/handlers/test_anthropic_handler.py:270
Function
test_convert_tool_choice_none
()
tests/client/sampling/handlers/test_anthropic_handler.py:286
Function
test_convert_tool_choice_required
()
tests/client/sampling/handlers/test_anthropic_handler.py:278
Function
test_convert_tool_choice_to_google_genai
()
tests/client/sampling/handlers/test_google_genai_handler.py:204
Function
test_convert_tool_choice_unknown_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:294
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:442
Function
test_convert_tools_to_anthropic
()
tests/client/sampling/handlers/test_anthropic_handler.py:301
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:1522
Method
test_cookie_parameter_set_on_request
Cookie parameters should appear as cookies on the request.
tests/utilities/openapi/test_director.py:1490
Method
test_cookie_parameter_with_fallback_mapping
Cookie parameters should work in fallback (no parameter_map) mode.
tests/utilities/openapi/test_director.py:1499
Method
test_copilot_skills_provider_path
Test CopilotSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:62
Method
test_copy_can_override_list_query_params
(self)
tests/resources/test_resource_template.py:856
Method
test_copy_method
Test copy method creates an independent copy.
tests/utilities/test_components.py:161
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:524
Method
test_crash_during_initialization
Recovery works when subprocess crashes during the first connection attempt.
tests/client/test_stdio.py:665
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:50
Method
test_create_proxy_backend_honors_explicit_mode
(self)
tests/server/providers/proxy/test_proxy_client.py:56
Function
test_create_proxy_with_client
Test create_proxy with a Client.
tests/server/providers/proxy/test_proxy_server.py:180
Function
test_create_proxy_with_server
create_proxy should accept a FastMCP instance.
tests/server/providers/proxy/test_proxy_server.py:190
Function
test_create_proxy_with_transport
create_proxy should accept a ClientTransport.
tests/server/providers/proxy/test_proxy_server.py:198
Function
test_create_proxy_with_url
create_proxy should accept a URL without connecting.
tests/server/providers/proxy/test_proxy_server.py:233
Method
test_create_resource
Test creating a resource from a template.
tests/resources/test_resource_template.py:174
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:449
Method
test_create_session_returns_a_uuid_string
(self)
tests/server/test_session_provider.py:440
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:117
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:156
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:283
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:382
Method
test_creates_nested_directories
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:246
Function
test_credential_store_rejects_empty_api_keys
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:310
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:430
Method
test_cross_provider_duplicate_warns
Two mounted providers exposing the same tool identity log a warning.
tests/server/mount/test_mount.py:554
Method
test_csp_and_permissions_roundtrip
CSP and permissions metadata flows through to clients correctly.
tests/test_apps.py:607
Method
test_csp_not_in_listed_tool_meta
(self)
tests/server/providers/test_prefab_synthesis.py:78
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
← previous
next →
7,201–7,300 of 13,374, ranked by callers