MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_consent_state_cookies_are_bounded
Repeated renders must not grow the Cookie header without limit. One cookie per issued token is what keeps concurrent renders from ove
tests/server/auth/test_oauth_consent_flow.py:801
Methodtest_consistent_hashing
(self)
tests/utilities/test_token_cache.py:217
Methodtest_const_and_enum_reject_booleans_for_numbers
( self, schema: dict[str, Any], value: Any )
tests/utilities/json_schema_type/test_json_schema_type.py:332
Methodtest_const_enum_results_preserve_json_value_types
( self, field_schema: dict[str, Any], value: Any, expected: Any )
tests/client/test_result_hydration.py:149
Methodtest_constant
(self)
tests/utilities/json_schema_type/test_json_schema_type.py:243
Methodtest_constrained_format_still_parses
(self)
tests/utilities/json_schema_type/test_constraints.py:266
Methodtest_constrained_invalid_default_in_recursive_model_is_preserved
( self, )
tests/utilities/json_schema_type/test_advanced.py:126
Functiontest_constrained_key_mapping_replaces_changed_value_type
Key patterns must not hide a change in the dictionary's value type.
tests/tools/tool_transform/test_schema_compatibility.py:270
Methodtest_constrained_number_invalid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:89
Methodtest_constrained_number_valid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:85
Methodtest_constrained_string_invalid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:80
Methodtest_constrained_string_valid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:76
Methodtest_constraints_survive_format
(self, schema, valid, invalid)
tests/utilities/json_schema_type/test_constraints.py:260
Methodtest_construction_does_not_cull
(self, jwt_verifier, isolated_home)
tests/server/auth/test_oauth_proxy_storage.py:289
Methodtest_construction_is_network_free
Construction must not perform discovery I/O, even when it is enabled.
tests/server/auth/providers/test_descope.py:101
Functiontest_constructor_rejects_invalid_skills
(kwargs: dict[str, object], message: str)
tests/skills/test_skill.py:57
Methodtest_consume_failure
Test failed token consumption.
tests/server/middleware/test_rate_limiting.py:56
Methodtest_consume_success
Test successful token consumption.
tests/server/middleware/test_rate_limiting.py:48
Methodtest_contains_generic_commands
(self)
tests/cli/test_generate_cli.py:455
Methodtest_contains_tool_functions
(self)
tests/cli/test_generate_cli.py:444
Methodtest_contains_tools
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:621
Methodtest_content_length_header_checked_first
Verify Content-Length header is checked before streaming.
tests/server/auth/test_ssrf_protection.py:562
Methodtest_content_type_preserves_media_type_parameters
Media-type parameters like charset are preserved on the wire.
tests/utilities/openapi/test_director.py:534
Functiontest_content_variants
(block: t.ContentBlock, expected: dict[str, Any])
tests/cli/test_content_json.py:75
Methodtest_context_already_has_dependency_default
Test that Context with existing Depends default is not re-transformed.
tests/server/test_dependencies_advanced.py:146
Functiontest_context_and_depends_together
Test that Context type injection and Depends can be used together.
tests/server/test_dependencies.py:232
Methodtest_context_detection
Test that context parameters are properly detected and excluded from schema.
tests/server/providers/local_provider_tools/test_context.py:44
Methodtest_context_fastmcp_resolves_to_child_server
(self)
tests/tasks/server/test_task_mount.py:256
Methodtest_context_in_callable_class
Test Context transformation works with callable class instances.
tests/server/test_dependencies_advanced.py:212
Methodtest_context_in_class_method
Test Context transformation works with bound methods.
tests/server/test_dependencies_advanced.py:179
Methodtest_context_in_static_method
Test Context transformation works with static methods.
tests/server/test_dependencies_advanced.py:197
Methodtest_context_injection
Test that context is properly injected during resource creation.
tests/resources/test_resource_template.py:724
Methodtest_context_injection_basic
Test that context is properly injected into tool calls.
tests/server/providers/local_provider_tools/test_context.py:58
Methodtest_context_is_background_task_when_task_id_provided
Context should be a background task when task_id is provided.
tests/tasks/server/test_context_background_task.py:63
Methodtest_context_keyword_only
Test Context transformation preserves keyword-only parameter semantics.
tests/server/test_dependencies_advanced.py:107
Methodtest_context_not_background_task_by_default
Context should not be a background task by default.
tests/tasks/server/test_context_background_task.py:56
Methodtest_context_optional
Test that context is optional when creating resources.
tests/resources/test_resource_template.py:753
Methodtest_context_param_reordering
Test that Context params are reordered correctly to maintain valid signature.
tests/server/test_dependencies_advanced.py:232
Methodtest_context_parameter_detection
Test that context parameters are properly detected in ResourceTemplate.from_function().
tests/resources/test_resource_template.py:676
Functiontest_context_preserves_explicit_shared_scope
()
tests/server/test_shared_context.py:78
Methodtest_context_prompt
Test Context transformation works with prompts.
tests/server/test_dependencies_advanced.py:276
Methodtest_context_resource
Test Context transformation works with resources.
tests/server/test_dependencies_advanced.py:251
Methodtest_context_resource_access
Test that context can access resources.
tests/server/providers/local_provider_tools/test_context.py:93
Methodtest_context_resource_template
Test Context transformation works with resource templates.
tests/server/test_dependencies_advanced.py:263
Methodtest_context_state_basic
Test basic get/set/delete state operations.
tests/server/test_context.py:115
Methodtest_context_state_nested_contexts_share_state
Test that nested contexts within the same session share state.
tests/server/test_context.py:179
Methodtest_context_state_persists_across_requests
Test that state persists across multiple context instances (requests).
tests/server/test_context.py:160
Methodtest_context_state_session_isolation
Test that different sessions have isolated state.
tests/server/test_context.py:141
Methodtest_context_task_id_is_readonly
task_id should be a read-only property.
tests/tasks/server/test_context_background_task.py:70
Methodtest_context_wiring_in_background_task
A worker Context is wired as a background task with no live session.
tests/tasks/server/test_context_background_task.py:358
Methodtest_context_with_annotated
Test Context with Annotated type is transformed.
tests/server/test_dependencies_advanced.py:132
Methodtest_context_with_functools_wraps_decorator
Regression test for #2524: decorated templates with Context should work.
tests/resources/test_resource_template.py:780
Methodtest_continuation_fields_populate_message
The continuation fields (SEP-2322) appear on ``context.message`` itself, not only on ``fastmcp_context`` — so middleware branching on the
tests/server/test_mrtr_guards.py:890
Methodtest_continuation_leg_is_detectable_from_context
Middleware can distinguish an initial leg from a continuation leg via ``context.fastmcp_context.input_responses`` — ``None`` on the first
tests/server/test_mrtr_guards.py:864
Methodtest_continuation_param_accepted
Test that {&param} continuation is accepted.
tests/resources/test_resource_template_level3.py:322
Methodtest_continuation_param_list_and_read
Test that {&size} continuation param is listed and readable.
tests/resources/test_resource_template_level3.py:62
Methodtest_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:575
Functiontest_control_schema_and_receipt
(bridge)
examples/smart_home/tests/test_lights.py:171
Functiontest_convert_audio_in_assistant_message_raises
()
tests/client/sampling/handlers/test_openai_handler.py:251
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
← previousnext →8,501–8,600 of 15,974, ranked by callers