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_complex_parameter_preserves_parsed_suffix_parameter
( parsed_type: str, use_default: bool )
tests/cli/test_generate_cli_arguments.py:100
Method
test_complex_request_with_body_and_parameters
Test complex request with both parameters and body.
tests/server/providers/openapi/test_comprehensive.py:552
Method
test_complex_return_annotation
(self, annotation)
tests/tools/tool/test_output_schema.py:86
Method
test_complex_type_with_default
Test that complex types with defaults are JSON-serialized.
tests/cli/test_generate_cli.py:344
Method
test_complex_types
(self)
tests/tools/test_tool_future_annotations.py:78
Method
test_complex_union_nullable_scenarios
Test various complex union type scenarios.
tests/utilities/openapi/test_nullable_fields.py:182
Method
test_component_annotation_inferred
(self)
tests/test_apps_prefab.py:217
Method
test_component_disable_overrides_server_default
(self)
tests/resources/test_resource_security.py:279
Method
test_component_enables_over_disabled_server_default
A per-component policy overrides a server default of None.
tests/resources/test_resource_security.py:303
Method
test_component_exemption_overrides_server_default
(self)
tests/resources/test_resource_security.py:290
Function
test_component_failure_records_exception_once_per_span
( trace_exporter: InMemorySpanExporter, operation: Literal["tool", "resource", "template", "prompt"],
tests/telemetry/test_exception_recording.py:56
Function
test_component_identifier_with_colons_is_recovered
()
tests/tasks/server/test_task_keys.py:97
Function
test_component_import_works_in_fresh_interpreter
(statement: str)
tests/tools/test_standalone_decorator.py:33
Method
test_component_meta_propagates_to_content
Template-level meta reaches content items, as it does for resources.
tests/resources/test_resource_template.py:1644
Method
test_component_return_no_output_schema
(self)
tests/test_apps_prefab.py:331
Method
test_component_subclass_union_inferred
(self)
tests/test_apps_prefab.py:295
Method
test_component_with_complex_meta
Test component with nested meta structures.
tests/utilities/test_components.py:364
Method
test_components_hint_limits_notifications
Test that the components hint limits which notifications are sent.
tests/server/test_session_visibility.py:490
Method
test_composed_alias_arm_stripped
A composed alias arm — `str | Value` where `Value = int | InputRequiredResult` — is recursively unwrapped so the hidden guard is strip
tests/server/test_mrtr_guards.py:206
Method
test_composed_lifespans_async_teardown_under_cancellation
Both server and provider async teardown completes under cancellation.
tests/server/test_server_lifespan.py:622
Function
test_composed_providers_preserve_bundled_extensions
(wrapper: str)
tests/server/test_provider_extensions.py:133
Function
test_composition_dependency_budget
(monkeypatch)
tests/utilities/openapi/test_composition_graphs.py:129
Function
test_composition_visit_budget
(monkeypatch)
tests/utilities/openapi/test_composition_graphs.py:138
Method
test_comprehensive_server
Test get_fastmcp_info with a server that has all component types.
tests/utilities/test_inspect.py:179
Method
test_comprehensive_server_initialization
Test server initialization with comprehensive spec.
tests/server/providers/openapi/test_comprehensive.py:371
Method
test_compress_schema_preserves_defaults
Test that compress_schema() doesn't strip default values.
tests/client/test_elicitation_enums.py:617
Method
test_compresses_schema_nested_far_beyond_the_recursion_limit
Deeply nested schemas must compress rather than raise RecursionError. Copying the schema is what sets the depth ceiling, so it must not
tests/utilities/test_json_schema.py:511
Function
test_concrete_resource_auth_shadows_template
( placement: str, allowed: bool )
tests/server/auth/test_resource_auth_shadowing.py:40
Function
test_concurrent_background_tasks_with_context
Multiple concurrent background tasks sharing Context() should not raise ValueError from ContextVar token resets (#3654).
tests/tasks/server/test_concurrent_dependencies.py:82
Function
test_concurrent_background_tasks_with_progress
Multiple concurrent background tasks sharing Progress() should not raise AssertionError from _impl being None (#3656).
tests/tasks/server/test_concurrent_dependencies.py:106
Function
test_concurrent_batches_share_capacity
()
tests/apps/test_file_upload_retention.py:202
Method
test_concurrent_bindings_are_independent_and_order_independent
Two responses from one cookie snapshot preserve both browser bindings.
tests/server/auth/test_oauth_consent_page.py:158
Method
test_concurrent_bindings_from_one_snapshot_fit_cookie_header
Concurrent Set-Cookie responses keep every compact binding.
tests/server/auth/test_oauth_consent_page.py:205
Function
test_concurrent_calls_maintain_isolation
Multiple concurrent calls each get the same Docket instance.
tests/server/test_server_docket.py:113
Function
test_concurrent_calls_reconnect_once
(monkeypatch: pytest.MonkeyPatch)
examples/smart_home/tests/test_fire_tv.py:163
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:730
Function
test_concurrent_cold_calls_share_tool_discovery
()
tests/client/group/test_client_group.py:125
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:560
Function
test_concurrent_first_calls_share_one_connection
( monkeypatch: pytest.MonkeyPatch, )
examples/smart_home/tests/test_fire_tv.py:137
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:444
Function
test_concurrent_group_entry_does_not_double_connect
()
tests/client/group/test_client_group.py:291
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:531
Function
test_concurrent_lookups_share_one_load
()
tests/skills/test_provider.py:112
Function
test_concurrent_pinned_calls_leave_the_schema_cache_intact
Pinning is per call: concurrent calls must not disturb the shared cache. A pinned call is a property of one request, so it must not be expressed
tests/client/test_versioned_call_tool_validation.py:139
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:400
Method
test_concurrent_requests_during_crash
Multiple concurrent callers fail cleanly when subprocess dies, then recovery works.
tests/client/test_stdio.py:754
Method
test_concurrent_sessions_isolated
Test that two concurrent clients don't leak session transforms.
tests/server/test_session_visibility.py:558
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:274
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:88
Function
test_config_subset_independence
Test that config subsets can be used independently.
tests/cli/test_run_config.py:251
Function
test_config_symlink_keeps_its_own_name
A symlinked config keeps the link's name, so the spec is still read as JSON.
tests/cli/test_run_config.py:335
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:55
Function
test_configure_logging_traceback_defaults_can_be_overridden
Test that default traceback settings can be overridden by kwargs.
tests/utilities/test_logging.py:68
Function
test_configure_logging_with_rich_disabled
Test that disabling rich logging uses standard StreamHandler.
tests/utilities/test_logging.py:83
Function
test_configure_logging_with_rich_enabled
Test that enabling rich logging uses RichHandler.
tests/utilities/test_logging.py:105
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:44
Function
test_configured_audiences
( expected: str | list[str], claim: Any, accepted: bool, httpx_mock: HTTPXMock )
tests/server/auth/providers/test_introspection_audience.py:33
Function
test_configured_execution_ttl_reported
A configured execution TTL reaches Docket and is reported as ttlMs.
tests/tasks/server/test_task_ttl.py:75
Function
test_configured_headers_keep_their_values
( component: str, )
tests/server/providers/openapi/test_undeclared_arguments.py:222
Function
test_configured_headers_replace_forwarded_headers_regardless_of_case
( kind: str, )
tests/server/providers/proxy/test_header_options.py:101
Function
test_configured_issuer_list_keeps_task_ownership_distinct
( rsa_key_pair: RSAKeyPair, )
tests/server/auth/test_auth_source_identities.py:436
Function
test_configured_source_ids_are_stable_and_duplicates_require_names
()
tests/server/auth/test_auth_source_identities.py:119
Function
test_configured_sources_keep_saved_request_state_separate
( configured_auth: MultiAuth, )
tests/server/auth/test_auth_source_identities.py:348
Function
test_configured_sources_keep_sse_message_ownership_separate
( configured_auth: MultiAuth, )
tests/server/auth/test_auth_source_identities.py:315
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_conforming_tool_name_is_unchanged
(self)
tests/cli/test_generate_cli.py:990
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:316
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:673
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:102
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:1575
Method
test_connects_to_pinned_ip
Verify connection uses pinned IP, not re-resolved DNS.
tests/server/auth/test_ssrf_protection.py:229
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:362
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:863
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:268
Method
test_consent_screen_escapes_server_name
Test that server name is properly HTML-escaped.
tests/server/auth/test_oauth_consent_page.py:398
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:336
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
← previous
next →
8,401–8,500 of 15,974, ranked by callers