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
Function
test_categories_tool_in_multiple_tags
()
tests/experimental/transforms/test_code_mode_discovery.py:171
Method
test_cgnat_blocked
Fetch to RFC6598 CGNAT IP should be blocked.
tests/server/auth/test_ssrf_protection.py:220
Method
test_chain_shortfall_drops_already_granted_scope
(self)
tests/server/auth/test_authorization.py:1359
Method
test_chain_shortfall_spans_consecutive_scope_only_layers
(self)
tests/server/auth/test_authorization.py:1464
Method
test_chain_shortfall_stops_at_unevaluated_opaque_layer
(self)
tests/server/auth/test_authorization.py:1434
Method
test_chain_shortfall_withholds_scopes_of_opaque_sibling
(self)
tests/server/auth/test_authorization.py:1407
Method
test_chained_transforms_inline_types
Test that chained transformations produce correct schemas with $ref/$defs.
tests/tools/tool_transform/test_schemas.py:566
Method
test_challenge_includes_resource_metadata
( self, rsa_key_pair: RSAKeyPair, base_url: str, resource_base_url: str | None )
tests/contrib/test_component_manager.py:1026
Method
test_challenge_names_resource_metadata_the_provider_serves
( self, transport: Literal["http", "sse"] )
tests/server/http/test_http_auth_middleware.py:240
Method
test_challenge_scope_translation_falls_back_for_protocol_verifier
(self)
tests/server/auth/test_remote_auth_provider.py:207
Method
test_challenge_scopes_keep_override_matching_server_default
(self)
tests/server/auth/test_multi_auth.py:245
Method
test_challenge_scopes_not_translated_by_multiple_verifiers
(self)
tests/server/auth/test_multi_auth.py:204
Method
test_challenge_scopes_respect_required_scopes_override
(self)
tests/server/auth/test_multi_auth.py:222
Method
test_challenge_scopes_translated_by_single_verifier
(self)
tests/server/auth/test_multi_auth.py:193
Method
test_challenge_scopes_use_server_default_selection
(self)
tests/server/auth/test_multi_auth.py:240
Method
test_challenge_without_base_url_has_no_resource_metadata
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:1052
Method
test_change_instruction
(self)
tests/server/test_server.py:22
Method
test_changed_issuer_does_not_reuse_cached_token
( self, provider_type, previous_issuer )
tests/client/auth/test_client_credentials.py:307
Method
test_changed_key_does_not_reuse_encrypted_tokens
( self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
tests/cli/test_client_commands.py:653
Function
test_changed_list_items_replace_incompatible_parent_schema
A string-list transform must advertise the string input it converts for the parent.
tests/tools/tool_transform/test_schema_compatibility.py:84
Function
test_changed_notes_format_fails_visibly
(monkeypatch: pytest.MonkeyPatch)
tests/scripts/test_release_contributor_credit.py:154
Function
test_changed_root_is_not_reused
(model: bool)
tests/utilities/json_schema_type/test_caching.py:73
Function
test_chat_completion_to_create_message_result
()
tests/client/sampling/handlers/test_openai_handler.py:354
Function
test_chat_completion_to_create_message_result_maps_stop_reason
Without tools, a reply cut off at max_tokens must say so too.
tests/client/sampling/handlers/test_openai_handler.py:387
Method
test_child_cancellation
(self, return_exceptions: bool)
tests/utilities/test_async_utils.py:61
Method
test_child_cancellation_cleans_up_siblings
(self)
tests/utilities/test_async_utils.py:73
Method
test_child_is_subclass_of_parent
Test that a child class is recognized as a subclass of its parent.
tests/utilities/test_types.py:111
Method
test_child_not_mutated_by_mount
Mounting should not mutate the child server's mask setting.
tests/server/mount/test_mount.py:710
Function
test_child_provider_lifespan_accepts_root_supported_bundle
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:80
Method
test_child_required_scopes_checked_against_parent_token
( self, rsa_key_pair: RSAKeyPair, token_scopes: list[str], expected_status: in
tests/contrib/test_component_manager.py:891
Function
test_child_rules_stay_isolated_and_reset
( mode: Literal["auto", "legacy"], )
tests/server/mount/test_session_visibility.py:117
Function
test_child_session_enable_allows_dispatch
( mode: Literal["auto", "legacy"], nested: bool, component: str )
tests/server/mount/test_session_visibility.py:17
Function
test_child_session_enable_allows_hashed_app_dispatch
( mode: Literal["auto", "legacy"], )
tests/server/mount/test_session_visibility.py:90
Method
test_choice
(self)
tests/utilities/json_schema_type/test_json_schema_type.py:352
Function
test_choice_shorthand_accepts_offered_choices
(response_type, valid, invalid)
tests/client/test_elicitation_enums.py:424
Function
test_choice_shorthand_rejects_values_not_offered
(response_type, valid, invalid)
tests/client/test_elicitation_enums.py:433
Method
test_choose_returns_structured_content
(self)
tests/apps/test_choice.py:8
Method
test_cimd_client_is_not_persisted
URL-derived clients should not grow the persistent DCR registry.
tests/server/auth/oauth_proxy/test_client_registration.py:110
Method
test_cimd_document_attached_to_client
The fetched CIMDDocument is attached to the created client.
tests/server/auth/test_cimd_validators.py:626
Method
test_cimd_empty_proxy_allowlist_rejects_redirect_uri
An explicit empty proxy allowlist should reject all CIMD redirect URIs.
tests/server/auth/test_oauth_proxy_redirect_validation.py:288
Method
test_cimd_loopback_no_port_matches_dynamic_port
RFC 8252 §7.3: CIMD redirect_uris without port match any loopback port.
tests/server/auth/test_oauth_proxy_redirect_validation.py:264
Method
test_cimd_none_redirect_uri_respects_proxy_patterns
CIMD fallback redirect_uri must still satisfy proxy allowlist patterns.
tests/server/auth/test_oauth_proxy_redirect_validation.py:231
Method
test_cimd_none_redirect_uri_single_exact
CIMD clients may omit redirect_uri only when a single exact URI exists.
tests/server/auth/test_oauth_proxy_redirect_validation.py:215
Method
test_cimd_none_redirect_uri_wildcard_rejected
CIMD clients must specify redirect_uri when only wildcard patterns exist.
tests/server/auth/test_oauth_proxy_redirect_validation.py:248
Method
test_cimd_redirect_uris_enforced
Test that CIMD document redirect_uris are enforced. Even if proxy patterns allow http://localhost:*, a CIMD client should only accept
tests/server/auth/test_cimd_validators.py:742
Method
test_circular_output_schema_serialization
Output schemas with self-referential types must survive model_dump(). This is the exact crash from issue #3242: Pydantic raises Value
tests/utilities/openapi/test_circular_references.py:70
Method
test_circular_references_handled
Circular references (A→B→A) must be handled without infinite loops.
tests/utilities/openapi/test_transitive_references.py:462
Function
test_claims_only_subjects_keep_user_ownership_separate
()
tests/server/auth/test_auth_source_identities.py:267
Method
test_class_is_subclass_of_itself
Test that a class is a subclass of itself.
tests/utilities/test_types.py:115
Function
test_class_with_methods
Test that class methods are not included in the schema
tests/utilities/test_typeadapter.py:260
Method
test_classes_from_one_conversion_are_charged_for_its_root_schema
( self, monkeypatch: pytest.MonkeyPatch )
tests/utilities/json_schema_type/test_generated_classes.py:707
Method
test_classes_referencing_a_large_definition_are_charged_for_it
( self, monkeypatch: pytest.MonkeyPatch, additional_properties: bool )
tests/utilities/json_schema_type/test_generated_classes.py:720
Method
test_classmethod
(self)
tests/tools/tool/test_tool.py:556
Method
test_claude_code_basic
Test basic claude-code install command parsing.
tests/cli/test_install.py:46
Method
test_claude_code_with_new_options
Test claude-code install with new uv options.
tests/cli/test_install.py:78
Method
test_claude_code_with_options
Test claude-code install with various options.
tests/cli/test_install.py:58
Method
test_claude_desktop_basic
Test basic claude-desktop install command parsing.
tests/cli/test_install.py:103
Method
test_claude_desktop_preserves_non_ascii_values_from_existing_config
Re-installing a server must not rewrite its env values through the locale codec.
tests/cli/test_install.py:226
Method
test_claude_desktop_with_config_path
Test claude-desktop install with custom config path.
tests/cli/test_install.py:151
Method
test_claude_desktop_with_env_vars
Test claude-desktop install with environment variables.
tests/cli/test_install.py:113
Method
test_claude_desktop_with_new_options
Test claude-desktop install with new uv options.
tests/cli/test_install.py:130
Method
test_claude_desktop_without_config_path
Test claude-desktop install without config path defaults to None.
tests/cli/test_install.py:159
Method
test_claude_skills_provider_path
Test ClaudeSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:84
Method
test_clean_exit_recovers
Recovery works when the subprocess exits cleanly (exit code 0), not just crashes.
tests/client/test_stdio.py:792
Method
test_clean_schema_output_no_unused_defs
Test that unused schema definitions are removed from tool schemas.
tests/server/providers/openapi/test_server.py:234
Method
test_cleanup_expired_before_eviction
(self)
tests/utilities/test_token_cache.py:180
Method
test_clear_empties_and_keeps_collection_usable
(self)
tests/client/client/test_kv_response_cache.py:142
Method
test_clear_keeps_the_session_but_empties_state
(self)
tests/server/test_sessions.py:212
Method
test_clear_keeps_the_session_valid
`session.clear()` empties state but the session still resolves.
tests/server/test_session_provider.py:400
Method
test_clear_removes_everything
(self)
tests/server/test_sessions.py:116
Method
test_clear_removes_token_expiry
clear() should also remove the stored token expiry.
tests/client/auth/test_oauth_client.py:655
Method
test_clear_scoped_to_own_collection
Two adapters over one backend clear independently.
tests/client/client/test_kv_response_cache.py:164
Method
test_clear_visibility_rules
Test that reset_visibility removes all session rules.
tests/server/test_session_visibility.py:241
Method
test_clear_visibility_rules_sends_notifications
Test that reset_visibility sends notifications.
tests/server/test_session_visibility.py:461
Method
test_clerk_user_data_in_claims
The full userinfo response is stored in clerk_user_data claim.
tests/server/auth/providers/test_clerk.py:514
Method
test_cli_filename_in_utility_commands
(self)
tests/cli/test_generate_cli.py:918
Function
test_client
(auth_app)
tests/server/test_auth_integration_errors.py:224
Function
test_client
(auth_app)
tests/server/test_auth_integration.py:229
Method
test_client_abandoned_by_cancellation_does_not_wedge_transport
A Client exited by a cancelled scope, once garbage-collected, must not leave the transport unusable for the next Client, and must stop its
tests/client/test_stdio.py:419
Method
test_client_accepts_none_auth_for_transports_without_auth_support
(self)
tests/client/transports/test_transports.py:39
Method
test_client_accepts_timedelta_or_float_timeout
(self, server, timeout)
tests/test_compat.py:246
Method
test_client_and_server_share_same_session_id
Client and server spans should have the same session ID.
tests/client/telemetry/test_client_tracing.py:675
Method
test_client_and_server_spans_created
Both client and server should create spans for the same operation.
tests/client/telemetry/test_client_tracing.py:242
Method
test_client_automatic_deserialization_with_dataclass_result
Test that clients automatically deserialize dataclass results from structured content.
tests/tools/tool/test_content.py:526
Method
test_client_automatic_deserialization_with_dict_result
Test that clients automatically deserialize dict results from structured content.
tests/tools/tool/test_content.py:503
Method
test_client_binds_provider_from_url
(self)
tests/client/auth/test_client_credentials.py:703
Method
test_client_cancelled_notification_reaches_on_message
A ``notifications/cancelled`` from the client is observed by ``on_message`` and ``on_notification`` — it never reaches a FastMCP handl
tests/server/middleware/test_message_visibility.py:90
Method
test_client_completes_tool_call_with_protection_enabled
( self, protected_server: ASGIServer, )
tests/server/http/test_sse_host_origin_protection.py:224
Function
test_client_connection
Test that connect is idempotent.
tests/client/client/test_client.py:354
Function
test_client_context_does_not_keep_entering_task_alive
A context entered in a task and released with close() leaves nothing behind.
tests/client/client/test_client.py:512
Function
test_client_context_entry_cancelled_starter_cleans_up
(fastmcp_server)
tests/client/client/test_client.py:565
Function
test_client_data_keeps_a_valid_prefix_with_a_typed_tail
()
tests/utilities/json_schema_type/test_prefix_items.py:157
Function
test_client_decodes_empty_structured_content
An empty object is a valid structured result, not a missing one (issue #5287).
tests/client/client/test_client.py:929
Function
test_client_decodes_unique_object_array
Object arrays with uniqueItems should populate CallToolResult.data.
tests/client/client/test_client.py:1014
Method
test_client_default_is_auto
(self)
tests/server/providers/proxy/test_proxy_client.py:44
Method
test_client_defaults_to_auto_mode
(self)
tests/test_upgrade_from_v3.py:345
Function
test_client_detection_middleware
Test middleware that detects specific clients and modifies behavior.
tests/server/middleware/test_initialization_middleware.py:162
Function
test_client_does_not_unwrap_dict_result
Client should not unwrap dict results that are not wrapped.
tests/client/client/test_client.py:913
Method
test_client_factory_creates_fresh_sessions
Test that the client factory pattern creates fresh sessions for each request.
tests/server/providers/proxy/test_proxy_client.py:654
Function
test_client_factory_errors_are_not_swallowed
( frontend_mode: str, async_factory: bool, error_kind: Literal["runtime", "mcp"], )
tests/server/providers/proxy/test_server_metadata.py:503
← previous
next →
8,101–8,200 of 15,974, ranked by callers