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
Method
test_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
Method
test_consistent_hashing
(self)
tests/utilities/test_token_cache.py:217
Method
test_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
Method
test_const_enum_results_preserve_json_value_types
( self, field_schema: dict[str, Any], value: Any, expected: Any )
tests/client/test_result_hydration.py:149
Method
test_constant
(self)
tests/utilities/json_schema_type/test_json_schema_type.py:243
Method
test_constrained_format_still_parses
(self)
tests/utilities/json_schema_type/test_constraints.py:266
Method
test_constrained_invalid_default_in_recursive_model_is_preserved
( self, )
tests/utilities/json_schema_type/test_advanced.py:126
Function
test_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
Method
test_constrained_number_invalid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:89
Method
test_constrained_number_valid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:85
Method
test_constrained_string_invalid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:80
Method
test_constrained_string_valid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:76
Method
test_constraints_survive_format
(self, schema, valid, invalid)
tests/utilities/json_schema_type/test_constraints.py:260
Method
test_construction_does_not_cull
(self, jwt_verifier, isolated_home)
tests/server/auth/test_oauth_proxy_storage.py:289
Method
test_construction_is_network_free
Construction must not perform discovery I/O, even when it is enabled.
tests/server/auth/providers/test_descope.py:101
Function
test_constructor_rejects_invalid_skills
(kwargs: dict[str, object], message: str)
tests/skills/test_skill.py:57
Method
test_consume_failure
Test failed token consumption.
tests/server/middleware/test_rate_limiting.py:56
Method
test_consume_success
Test successful token consumption.
tests/server/middleware/test_rate_limiting.py:48
Method
test_contains_generic_commands
(self)
tests/cli/test_generate_cli.py:455
Method
test_contains_tool_functions
(self)
tests/cli/test_generate_cli.py:444
Method
test_contains_tools
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:621
Method
test_content_length_header_checked_first
Verify Content-Length header is checked before streaming.
tests/server/auth/test_ssrf_protection.py:562
Method
test_content_type_preserves_media_type_parameters
Media-type parameters like charset are preserved on the wire.
tests/utilities/openapi/test_director.py:534
Function
test_content_variants
(block: t.ContentBlock, expected: dict[str, Any])
tests/cli/test_content_json.py:75
Method
test_context_already_has_dependency_default
Test that Context with existing Depends default is not re-transformed.
tests/server/test_dependencies_advanced.py:146
Function
test_context_and_depends_together
Test that Context type injection and Depends can be used together.
tests/server/test_dependencies.py:232
Method
test_context_detection
Test that context parameters are properly detected and excluded from schema.
tests/server/providers/local_provider_tools/test_context.py:44
Method
test_context_fastmcp_resolves_to_child_server
(self)
tests/tasks/server/test_task_mount.py:256
Method
test_context_in_callable_class
Test Context transformation works with callable class instances.
tests/server/test_dependencies_advanced.py:212
Method
test_context_in_class_method
Test Context transformation works with bound methods.
tests/server/test_dependencies_advanced.py:179
Method
test_context_in_static_method
Test Context transformation works with static methods.
tests/server/test_dependencies_advanced.py:197
Method
test_context_injection
Test that context is properly injected during resource creation.
tests/resources/test_resource_template.py:724
Method
test_context_injection_basic
Test that context is properly injected into tool calls.
tests/server/providers/local_provider_tools/test_context.py:58
Method
test_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
Method
test_context_keyword_only
Test Context transformation preserves keyword-only parameter semantics.
tests/server/test_dependencies_advanced.py:107
Method
test_context_not_background_task_by_default
Context should not be a background task by default.
tests/tasks/server/test_context_background_task.py:56
Method
test_context_optional
Test that context is optional when creating resources.
tests/resources/test_resource_template.py:753
Method
test_context_param_reordering
Test that Context params are reordered correctly to maintain valid signature.
tests/server/test_dependencies_advanced.py:232
Method
test_context_parameter_detection
Test that context parameters are properly detected in ResourceTemplate.from_function().
tests/resources/test_resource_template.py:676
Function
test_context_preserves_explicit_shared_scope
()
tests/server/test_shared_context.py:78
Method
test_context_prompt
Test Context transformation works with prompts.
tests/server/test_dependencies_advanced.py:276
Method
test_context_resource
Test Context transformation works with resources.
tests/server/test_dependencies_advanced.py:251
Method
test_context_resource_access
Test that context can access resources.
tests/server/providers/local_provider_tools/test_context.py:93
Method
test_context_resource_template
Test Context transformation works with resource templates.
tests/server/test_dependencies_advanced.py:263
Method
test_context_state_basic
Test basic get/set/delete state operations.
tests/server/test_context.py:115
Method
test_context_state_nested_contexts_share_state
Test that nested contexts within the same session share state.
tests/server/test_context.py:179
Method
test_context_state_persists_across_requests
Test that state persists across multiple context instances (requests).
tests/server/test_context.py:160
Method
test_context_state_session_isolation
Test that different sessions have isolated state.
tests/server/test_context.py:141
Method
test_context_task_id_is_readonly
task_id should be a read-only property.
tests/tasks/server/test_context_background_task.py:70
Method
test_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
Method
test_context_with_annotated
Test Context with Annotated type is transformed.
tests/server/test_dependencies_advanced.py:132
Method
test_context_with_functools_wraps_decorator
Regression test for #2524: decorated templates with Context should work.
tests/resources/test_resource_template.py:780
Method
test_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
Method
test_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
Method
test_continuation_param_accepted
Test that {¶m} continuation is accepted.
tests/resources/test_resource_template_level3.py:322
Method
test_continuation_param_list_and_read
Test that {&size} continuation param is listed and readable.
tests/resources/test_resource_template_level3.py:62
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:575
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:251
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
← previous
next →
8,501–8,600 of 15,974, ranked by callers