MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

Functiontest_convert_audio_message_to_google_genai_content
()
tests/client/sampling/handlers/test_google_genai_handler.py:106
Methodtest_convert_content_block
(self, content_block)
tests/tools/tool/test_content.py:129
Methodtest_convert_helpers
(self, result, expected)
tests/tools/tool/test_content.py:171
Functiontest_convert_image_in_assistant_message_raises
()
tests/client/sampling/handlers/test_openai_handler.py:236
Functiontest_convert_image_in_assistant_message_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:157
Functiontest_convert_image_message_to_google_genai_content
()
tests/client/sampling/handlers/test_google_genai_handler.py:90
Methodtest_convert_list
Test that a list is converted to a TextContent.
tests/tools/tool/test_content.py:98
Functiontest_convert_list_content_with_audio_and_text
()
tests/client/sampling/handlers/test_google_genai_handler.py:143
Functiontest_convert_list_content_with_audio_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:142
Functiontest_convert_list_content_with_image_and_text
()
tests/client/sampling/handlers/test_google_genai_handler.py:122
Functiontest_convert_list_content_with_image_and_text
()
tests/client/sampling/handlers/test_openai_handler.py:149
Functiontest_convert_list_content_with_image_and_text
()
tests/client/sampling/handlers/test_anthropic_handler.py:112
Functiontest_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
Functiontest_convert_list_image_in_assistant_message_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:171
Functiontest_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
Functiontest_convert_messages_matches_multiple_tool_results_by_id
()
tests/client/sampling/handlers/test_google_genai_handler.py:378
Functiontest_convert_messages_preserves_images_in_tool_results
( with_text: bool, expected_text: str )
tests/client/sampling/handlers/test_google_genai_handler.py:447
Functiontest_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
Functiontest_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
Functiontest_convert_messages_rejects_unsupported_gemini_tool_result_image_mime_type
()
tests/client/sampling/handlers/test_google_genai_handler.py:523
Functiontest_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
Functiontest_convert_messages_with_tool_result
Test converting messages containing ToolResultContent.
tests/client/sampling/handlers/test_google_genai_handler.py:348
Functiontest_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
Functiontest_convert_messages_with_tool_use
Test converting messages containing ToolUseContent.
tests/client/sampling/handlers/test_google_genai_handler.py:321
Functiontest_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
Methodtest_convert_mixed_content
(self)
tests/tools/tool/test_content.py:178
Functiontest_convert_sampling_messages_to_anthropic_messages
()
tests/client/sampling/handlers/test_anthropic_handler.py:32
Functiontest_convert_sampling_messages_to_google_genai_content
()
tests/client/sampling/handlers/test_google_genai_handler.py:51
Functiontest_convert_sampling_messages_to_openai_messages
()
tests/client/sampling/handlers/test_openai_handler.py:39
Functiontest_convert_single_audio_content_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:98
Functiontest_convert_single_audio_content_to_google_genai
()
tests/client/sampling/handlers/test_google_genai_handler.py:80
Functiontest_convert_single_audio_content_to_openai_message
()
tests/client/sampling/handlers/test_openai_handler.py:126
Functiontest_convert_single_image_content_to_anthropic_message
()
tests/client/sampling/handlers/test_anthropic_handler.py:72
Functiontest_convert_single_image_content_to_google_genai
()
tests/client/sampling/handlers/test_google_genai_handler.py:70
Functiontest_convert_single_image_content_to_openai_message
()
tests/client/sampling/handlers/test_openai_handler.py:103
Methodtest_convert_singular
Test that a single item is converted to a TextContent.
tests/tools/tool/test_content.py:50
Functiontest_convert_str_to_complex_type
Test that string arguments are converted to the complex type when valid
tests/utilities/test_typeadapter.py:159
Functiontest_convert_tool_choice_auto
()
tests/client/sampling/handlers/test_anthropic_handler.py:327
Functiontest_convert_tool_choice_none
()
tests/client/sampling/handlers/test_anthropic_handler.py:343
Functiontest_convert_tool_choice_required
()
tests/client/sampling/handlers/test_anthropic_handler.py:335
Functiontest_convert_tool_choice_to_google_genai
()
tests/client/sampling/handlers/test_google_genai_handler.py:222
Functiontest_convert_tool_choice_unknown_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:351
Functiontest_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
Functiontest_convert_tool_result_preserves_text
()
tests/client/sampling/handlers/test_openai_handler.py:178
Functiontest_convert_tool_result_rejects_unsupported_images
( as_block_list: bool, result_content: list[TextContent | ImageContent] )
tests/client/sampling/handlers/test_openai_handler.py:219
Functiontest_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
Functiontest_convert_tools_to_anthropic
()
tests/client/sampling/handlers/test_anthropic_handler.py:358
Methodtest_converted_return_annotation
(self, annotation, expected)
tests/tools/tool/test_output_schema.py:160
Methodtest_converts_raw_value
Raw values are converted to ResourceResult.
tests/resources/test_resources.py:350
Methodtest_cookie_array_explodes_by_default_and_true
Exploded arrays repeat the cookie name once per item.
tests/utilities/openapi/test_director.py:1629
Methodtest_cookie_array_with_explode_false_joins_with_commas
Non-exploded arrays use one comma-joined cookie value.
tests/utilities/openapi/test_director.py:1637
Methodtest_cookie_nested_collection_values_raise
Nested values have no form-style cookie representation.
tests/utilities/openapi/test_director.py:1703
Methodtest_cookie_non_exploded_values_encode_separators
Comma-joined items stay distinct when their values contain separators.
tests/utilities/openapi/test_director.py:1708
Methodtest_cookie_non_string_value_stringified
Non-string cookie values (e.g. int, bool) use OpenAPI serialization.
tests/utilities/openapi/test_director.py:1564
Methodtest_cookie_object_explodes_by_default_and_true
Exploded objects use one cookie pair per property.
tests/utilities/openapi/test_director.py:1646
Methodtest_cookie_object_with_explode_false_joins_key_value_pairs
Non-exploded objects alternate property names and values.
tests/utilities/openapi/test_director.py:1654
Methodtest_cookie_parameter_set_on_request
Cookie parameters should appear as cookies on the request.
tests/utilities/openapi/test_director.py:1532
Methodtest_cookie_parameter_with_fallback_mapping
Cookie parameters should work in fallback (no parameter_map) mode.
tests/utilities/openapi/test_director.py:1541
Methodtest_cookie_values_merge_with_existing_cookie_header
Generated cookies are appended to a Cookie header parameter.
tests/utilities/openapi/test_director.py:1662
Methodtest_copilot_skills_provider_path
Test CopilotSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:70
Methodtest_copy_can_override_list_query_params
(self)
tests/resources/test_resource_template.py:910
Methodtest_copy_method
Test copy method creates an independent copy.
tests/utilities/test_components.py:161
Functiontest_costly_pattern_stops_within_the_search_budget
()
tests/server/transforms/test_search_regex.py:102
Functiontest_counts_use_collection_start_like_backlog_chart
(triage)
tests/test_public_triage.py:186
Methodtest_covers_every_cacheable_method
(self)
tests/server/test_cache_hints.py:31
Methodtest_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
Methodtest_crash_during_initialization
Recovery works when subprocess crashes during the first connection attempt.
tests/client/test_stdio.py:869
Functiontest_create_and_get_carry_ttl_and_poll_interval
()
tests/tasks/server/test_extension.py:255
Methodtest_create_basic_auth_header
Test HTTP Basic Auth header creation.
tests/server/auth/providers/test_introspection.py:76
Methodtest_create_basic_token
Test basic token creation.
tests/server/auth/test_jwt_provider.py:213
Methodtest_create_before_message
Test message formatting without payloads.
tests/server/middleware/test_logging.py:117
Methodtest_create_before_message_long_payload
Test message formatting with long payload truncation.
tests/server/middleware/test_logging.py:243
Methodtest_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
Methodtest_create_error_html_basic
Test basic error page generation.
tests/server/auth/oauth_proxy/test_ui.py:17
Methodtest_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
Methodtest_create_error_html_with_details
Test error page with error details.
tests/server/auth/oauth_proxy/test_ui.py:31
Methodtest_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
Methodtest_create_message_with_payloads
Test message formatting with payloads.
tests/server/middleware/test_logging.py:131
Methodtest_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
Methodtest_create_proxy_backend_honors_explicit_mode
(self)
tests/server/providers/proxy/test_proxy_client.py:69
Functiontest_create_proxy_with_client
Test create_proxy with a Client.
tests/server/providers/proxy/test_proxy_server.py:183
Functiontest_create_proxy_with_server
create_proxy should accept a FastMCP instance.
tests/server/providers/proxy/test_proxy_server.py:193
Functiontest_create_proxy_with_transport
create_proxy should accept a ClientTransport.
tests/server/providers/proxy/test_proxy_server.py:201
Functiontest_create_proxy_with_url
create_proxy should accept a URL without connecting.
tests/server/providers/proxy/test_proxy_server.py:236
Methodtest_create_resource
Test creating a resource from a template.
tests/resources/test_resource_template.py:178
Methodtest_create_server
(self)
tests/server/test_server.py:17
Methodtest_create_session_ids_are_distinct
(self)
tests/server/test_session_provider.py:502
Methodtest_create_session_returns_a_uuid_string
(self)
tests/server/test_session_provider.py:493
Functiontest_create_sse_app_sets_state
()
tests/server/test_app_state.py:23
Functiontest_create_sse_app_with_custom_middleware
Test that custom middleware works with create_sse_app function.
tests/server/http/test_http_middleware.py:118
Functiontest_create_streamable_http_app_sets_state
()
tests/server/test_app_state.py:17
Functiontest_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
Functiontest_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
Functiontest_create_task_result_matches_schema
()
tests/tasks/server/test_wire_models.py:69
Methodtest_create_token_with_scopes
Test token creation with scopes.
tests/server/auth/test_jwt_provider.py:223
Methodtest_created_id_round_trips_state_across_calls
(self)
tests/server/test_session_provider.py:336
Methodtest_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
Methodtest_created_session_exists
(self)
tests/server/test_sessions.py:194
Methodtest_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
Methodtest_creates_nested_directories
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:272
← previousnext →9,601–9,700 of 17,519, ranked by callers