Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Function
test_concurrent_client_context_managers
Test that concurrent client usage doesn't cause cross-task cancel scope issues. https://github.com/PrefectHQ/fastmcp/pull/643
tests/client/client/test_client.py:673
Function
test_concurrent_cold_calls_share_tool_discovery
()
tests/client/group/test_client_group.py:111
Method
test_concurrent_elicitation_no_mixing
Test that concurrent elicitation requests don't mix handlers (fixes #1068).
tests/server/providers/proxy/test_proxy_client.py:390
Function
test_concurrent_first_calls_share_one_connection
( monkeypatch: pytest.MonkeyPatch, )
examples/smart_home/tests/test_fire_tv.py:136
Function
test_concurrent_foreground_tools_with_context
Multiple concurrent tool calls sharing the same Context() default should not raise ValueError from ContextVar token resets (#3654).
tests/tasks/server/test_concurrent_dependencies.py:27
Function
test_concurrent_foreground_tools_with_progress
Multiple concurrent tool calls sharing the same Progress() default should not raise AssertionError from _impl being None (#3656).
tests/tasks/server/test_concurrent_dependencies.py:51
Function
test_concurrent_group_entries_share_one_connection
()
tests/client/group/test_client_group.py:369
Function
test_concurrent_group_entry_does_not_double_connect
()
tests/client/group/test_client_group.py:277
Method
test_concurrent_log_requests_no_mixing
Test that concurrent log requests don't mix handlers (fixes #1068).
tests/server/providers/proxy/test_stateful_proxy_client.py:119
Method
test_concurrent_log_requests_no_mixing
Test that concurrent log requests don't mix handlers (fixes #1068).
tests/server/providers/proxy/test_proxy_client.py:361
Method
test_concurrent_reader_never_sees_empty
A reader during reload should see either old or new components, never empty.
tests/fs/test_provider.py:342
Method
test_concurrent_requests_during_crash
Multiple concurrent callers fail cleanly when subprocess dies, then recovery works.
tests/client/test_stdio.py:575
Method
test_concurrent_sessions_isolated
Test that two concurrent clients don't leak session transforms.
tests/server/test_session_visibility.py:524
Method
test_concurrent_stores_on_one_stream
Concurrent stores must not lose events or evict the same ID twice. A live session stores events from more than one task (the SSE writer and
tests/server/test_event_store.py:267
Function
test_concurrent_update_enqueues_a_single_next_leg
Two racing tasks/update answers re-enter the task exactly once.
tests/tasks/server/test_extension.py:449
Function
test_conditional_clear_preserves_newer_state
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:186
Method
test_config_and_env_file_values_reach_wrapper_literally
( self, installer: Installer, run: Mock, monkeypatch: pytest.MonkeyPatch,
tests/cli/test_install_cli_arguments.py:425
Function
test_config_meta_override_preserves_identity_hash
The fastmcp.json `tools:` path goes through the same preservation.
tests/tools/tool_transform/test_metadata.py:205
Method
test_config_server_example
Test the actual config_server.py example.
tests/cli/test_server_args.py:112
Method
test_config_server_with_client
Test that a server loaded from config works with a client.
tests/cli/test_mcp_server_config_integration.py:87
Function
test_config_subset_independence
Test that config subsets can be used independently.
tests/cli/test_run_config.py:250
Method
test_config_url_parsing
Test that config_url is parsed correctly to extract base URL and project ID.
tests/server/auth/providers/test_descope.py:54
Method
test_config_url_takes_precedence_over_old_api
Test that config_url takes precedence when both APIs are provided.
tests/server/auth/providers/test_descope.py:347
Method
test_config_with_no_servers
Test that an empty MCPConfig raises a ValueError.
tests/client/client/test_transport.py:101
Function
test_configuration_defaults_to_the_production_origin
(tmp_path: Path)
tests/cli/deploy/test_configuration.py:17
Function
test_configuration_rejects_organization_state
(tmp_path: Path)
tests/cli/deploy/test_configuration.py:42
Function
test_configuration_stores_only_schema_and_api_origin
(tmp_path: Path)
tests/cli/deploy/test_configuration.py:26
Function
test_configure_logging_suppresses_framework_package_paths
()
tests/utilities/test_logging.py:48
Function
test_configure_logging_traceback_defaults_can_be_overridden
Test that default traceback settings can be overridden by kwargs.
tests/utilities/test_logging.py:61
Function
test_configure_logging_with_rich_disabled
Test that disabling rich logging uses standard StreamHandler.
tests/utilities/test_logging.py:76
Function
test_configure_logging_with_rich_enabled
Test that enabling rich logging uses RichHandler.
tests/utilities/test_logging.py:98
Function
test_configure_logging_with_traceback_kwargs
Test that traceback-related kwargs can be passed without causing duplicate argument errors.
tests/utilities/test_logging.py:37
Function
test_configured_headers_keep_their_values
( component: str, )
tests/server/providers/openapi/test_undeclared_arguments.py:200
Function
test_conflicting_settings_warn_once_and_keep_first
( caplog: pytest.LogCaptureFixture, )
tests/server/test_provider_extensions.py:242
Method
test_conflicting_variant_schemas_are_unioned
No variant's constraint may be advertised as if it applied to all.
tests/server/providers/openapi/test_openapi_discriminator.py:271
Method
test_conformant_discover_still_adopts_modern
The conformance check must not reject a well-formed modern peer.
tests/client/client/test_mode_negotiation.py:231
Method
test_connect_disconnect
( self, streamable_http_client: Client[StreamableHttpTransport], )
tests/integration_tests/test_github_mcp_remote.py:59
Function
test_connected_pinned_client_probes_without_adopting_metadata
()
tests/server/providers/proxy/test_server_metadata.py:313
Method
test_connected_proxy_client_uses_fresh_sessions
Connected ProxyClient targets should create fresh sessions to avoid stale context.
tests/server/providers/proxy/test_proxy_client.py:503
Function
test_connection_cleanup_does_not_remove_replacement_session
Registering a replacement session under the same id keeps the newer one.
tests/tasks/server/test_context_background_task.py:101
Function
test_connection_dependency_excluded_from_tool_schema
Test that Connection dependency parameter is excluded from tool schema.
tests/server/test_dependencies.py:462
Method
test_connection_error_reaches_client_on_both_eras
The actual defect: the modern era masked the connection failure. An unwrapped `RuntimeError` reaching the modern wire boundary is rep
tests/server/providers/proxy/test_proxy_server.py:1504
Method
test_connects_to_pinned_ip
Verify connection uses pinned IP, not re-resolved DNS.
tests/server/auth/test_ssrf_protection.py:227
Method
test_consecutive_hyphens_collapsed
(self)
tests/cli/test_goose.py:32
Method
test_consent_cookie_established_on_page_visit
Verify consent page establishes CSRF cookie.
tests/server/auth/test_oauth_consent_flow.py:508
Method
test_consent_cookies_work_without_secret
Cookie signing/verification works using JWT key when no secret is configured.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:360
Method
test_consent_disabled_skips_binding_check
When require_authorization_consent=False, the binding check is skipped.
tests/server/auth/test_oauth_consent_page.py:696
Method
test_consent_page_contains_transaction_id
Verify consent page receives and displays transaction ID.
tests/server/auth/test_oauth_consent_flow.py:423
Method
test_consent_rejected_without_csrf_cookie
Submitting a valid CSRF token without the matching cookie should be rejected. This prevents an attacker from using their own tx_id/csrf_token
tests/server/auth/test_oauth_consent_flow.py:553
Method
test_consent_requires_csrf_token
Verify consent submission requires valid CSRF token.
tests/server/auth/test_oauth_consent_flow.py:467
Method
test_consent_screen_displays_server_icon
Test that consent screen shows server's custom icon when available.
tests/server/auth/test_oauth_consent_page.py:106
Method
test_consent_screen_escapes_server_name
Test that server name is properly HTML-escaped.
tests/server/auth/test_oauth_consent_page.py:236
Method
test_consent_screen_falls_back_to_fastmcp_logo
Test that consent screen shows FastMCP logo when no server icon provided.
tests/server/auth/test_oauth_consent_page.py:174
Method
test_consent_sets_xfo_header
Verify consent page sets X-Frame-Options header to prevent clickjacking.
tests/server/auth/test_oauth_consent_flow.py:906
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_constant
(self)
tests/utilities/json_schema_type/test_json_schema_type.py:188
Method
test_constrained_format_still_parses
(self)
tests/utilities/json_schema_type/test_constraints.py:166
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:160
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
Method
test_consume_failure
Test failed token consumption.
tests/server/middleware/test_rate_limiting.py:54
Method
test_consume_success
Test successful token consumption.
tests/server/middleware/test_rate_limiting.py:46
Method
test_contains_generic_commands
(self)
tests/cli/test_generate_cli.py:458
Method
test_contains_tool_functions
(self)
tests/cli/test_generate_cli.py:447
Method
test_contains_tools
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:603
Method
test_content_length_header_checked_first
Verify Content-Length header is checked before streaming.
tests/server/auth/test_ssrf_protection.py:539
Method
test_content_type_preserves_media_type_parameters
Media-type parameters like charset are preserved on the wire.
tests/utilities/openapi/test_director.py:503
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:672
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:62
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:55
Method
test_context_optional
Test that context is optional when creating resources.
tests/resources/test_resource_template.py:701
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:624
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:86
Method
test_context_state_nested_contexts_share_state
Test that nested contexts within the same session share state.
tests/server/test_context.py:150
Method
test_context_state_persists_across_requests
Test that state persists across multiple context instances (requests).
tests/server/test_context.py:131
Method
test_context_state_session_isolation
Test that different sessions have isolated state.
tests/server/test_context.py:112
Method
test_context_task_id_is_readonly
task_id should be a read-only property.
tests/tasks/server/test_context_background_task.py:69
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:363
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:728
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
← previous
next →
7,101–7,200 of 13,374, ranked by callers