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
Function
test_convert_audio_message_to_google_genai_content
()
tests/client/sampling/handlers/test_google_genai_handler.py:106
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:236
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:90
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:143
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:122
Function
test_convert_list_content_with_image_and_text
()
tests/client/sampling/handlers/test_openai_handler.py:149
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:266
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:283
Function
test_convert_messages_matches_multiple_tool_results_by_id
()
tests/client/sampling/handlers/test_google_genai_handler.py:378
Function
test_convert_messages_preserves_images_in_tool_results
( with_text: bool, expected_text: str )
tests/client/sampling/handlers/test_google_genai_handler.py:447
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:412
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:507
Function
test_convert_messages_rejects_unsupported_gemini_tool_result_image_mime_type
()
tests/client/sampling/handlers/test_google_genai_handler.py:523
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:547
Function
test_convert_messages_with_tool_result
Test converting messages containing ToolResultContent.
tests/client/sampling/handlers/test_google_genai_handler.py:348
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:413
Function
test_convert_messages_with_tool_use
Test converting messages containing ToolUseContent.
tests/client/sampling/handlers/test_google_genai_handler.py:321
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:385
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:51
Function
test_convert_sampling_messages_to_openai_messages
()
tests/client/sampling/handlers/test_openai_handler.py:39
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:80
Function
test_convert_single_audio_content_to_openai_message
()
tests/client/sampling/handlers/test_openai_handler.py:126
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:70
Function
test_convert_single_image_content_to_openai_message
()
tests/client/sampling/handlers/test_openai_handler.py:103
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:327
Function
test_convert_tool_choice_none
()
tests/client/sampling/handlers/test_anthropic_handler.py:343
Function
test_convert_tool_choice_required
()
tests/client/sampling/handlers/test_anthropic_handler.py:335
Function
test_convert_tool_choice_to_google_genai
()
tests/client/sampling/handlers/test_google_genai_handler.py:222
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:160
Method
test_converts_raw_value
Raw values are converted to ResourceResult.
tests/resources/test_resources.py:350
Method
test_cookie_array_explodes_by_default_and_true
Exploded arrays repeat the cookie name once per item.
tests/utilities/openapi/test_director.py:1629
Method
test_cookie_array_with_explode_false_joins_with_commas
Non-exploded arrays use one comma-joined cookie value.
tests/utilities/openapi/test_director.py:1637
Method
test_cookie_nested_collection_values_raise
Nested values have no form-style cookie representation.
tests/utilities/openapi/test_director.py:1703
Method
test_cookie_non_exploded_values_encode_separators
Comma-joined items stay distinct when their values contain separators.
tests/utilities/openapi/test_director.py:1708
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_object_explodes_by_default_and_true
Exploded objects use one cookie pair per property.
tests/utilities/openapi/test_director.py:1646
Method
test_cookie_object_with_explode_false_joins_key_value_pairs
Non-exploded objects alternate property names and values.
tests/utilities/openapi/test_director.py:1654
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_cookie_values_merge_with_existing_cookie_header
Generated cookies are appended to a Cookie header parameter.
tests/utilities/openapi/test_director.py:1662
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:31
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:728
Method
test_crash_during_initialization
Recovery works when subprocess crashes during the first connection attempt.
tests/client/test_stdio.py:869
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:63
Method
test_create_proxy_backend_honors_explicit_mode
(self)
tests/server/providers/proxy/test_proxy_client.py:69
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
← previous
next →
9,601–9,700 of 17,519, ranked by callers