MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_factory_method_with_secret
_create_upstream_oauth_client includes the secret when configured.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:345
Methodtest_factory_method_without_secret
_create_upstream_oauth_client works when no secret is configured.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:329
Functiontest_factory_owned_timeout_is_preserved
A factory's own timeout stands when the client sets none, and an explicit client timeout is still forwarded to the factory, extending but neve
tests/client/test_streamable_http.py:286
Methodtest_fail_after_still_raises
(self, server: FastMCP)
tests/client/client/test_client.py:1132
Functiontest_failed_activity_is_unknown_not_unanswered
(triage, monkeypatch)
tests/test_public_triage.py:94
Functiontest_failed_bundle_rolls_back_all_extensions_and_handlers
()
tests/server/test_provider_extensions.py:482
Methodtest_failed_component_request_is_observed_not_retried
A component request that dies in validation reaches the hooks as a failure. A hook cannot repair it from here: re-dispatching would run the
tests/server/middleware/test_message_visibility.py:310
Methodtest_failed_conversion_can_be_retried
(self)
tests/utilities/json_schema_type/test_generated_classes.py:585
Methodtest_failed_discovery_backs_off
( self, idp_key: RSAKeyPair, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_identity_assertion.py:858
Functiontest_failed_discovery_is_not_cached
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:142
Functiontest_failed_entry_leaves_group_reenterable
()
tests/client/group/test_client_group.py:517
Functiontest_failed_export_leaves_destination_untouched
(tmp_path: Path, existing: bool)
tests/skills/test_skill.py:244
Methodtest_failed_files_refresh_on_reload
Reload mode should expose the latest load failures.
tests/fs/test_provider.py:74
Functiontest_failed_known_legacy_backend_does_not_downgrade_healthy_backends
()
tests/test_mcp_config.py:287
Functiontest_failed_origin_write_leaves_no_cross_origin_credential
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_configuration.py:111
Functiontest_failed_refresh_does_not_reuse_expired_keys
( key_data: dict[str, Any], clock: list[float] )
tests/server/auth/test_jwks_refresh.py:200
Functiontest_failed_refresh_is_shared_and_keeps_fresh_keys
( key_data: dict[str, Any], clock: list[float] )
tests/server/auth/test_jwks_refresh.py:88
Methodtest_failed_refresh_serves_cached_document
(self, provider)
tests/server/auth/providers/test_metadata_forwarding_cache.py:90
Functiontest_failed_registration_preserves_an_existing_server_binding
()
tests/server/test_provider_extensions.py:461
Methodtest_failed_scope_discovery_is_not_cached
Clients can retry metadata discovery immediately after a failure.
tests/server/auth/providers/test_descope.py:615
Functiontest_failed_startup_releases_extension_restrictions
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:260
Methodtest_failed_subclass_construction_does_not_fabricate_an_event
The guard must skip the event, not invent one to set.
tests/client/test_stdio.py:165
Methodtest_failed_subclass_construction_is_collectable
(self, tmp_path)
tests/client/test_stdio.py:154
Functiontest_failed_task_raises_tool_error
A task whose tool raises surfaces as a ToolError through call_tool.
tests/tasks/client/test_transparent_tasks.py:90
Methodtest_failed_task_reports_an_error
A fail-closed task is still a well-formed `tasks/get` result.
tests/tasks/server/test_snapshot_encryption.py:413
Methodtest_failure
(self, mock_print, mock_open)
tests/cli/test_goose.py:218
Methodtest_failure_exits
(self, mock_process, mock_install)
tests/cli/test_goose.py:293
Methodtest_failure_without_cached_document_is_a_server_error
(self, provider)
tests/server/auth/providers/test_metadata_forwarding_cache.py:109
Methodtest_failures_are_not_cached
Failed verifications must not be cached.
tests/server/auth/providers/test_google.py:685
Methodtest_failures_are_not_cached
(self)
tests/server/auth/providers/test_github.py:242
Methodtest_fallback_defaults_to_one_year
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:632
Methodtest_fallback_message_on_failure
(self, mock_print, mock_open)
tests/cli/test_goose.py:261
Methodtest_fallback_only_triggers_for_regex_errors
Non-regex SchemaErrors must not be swallowed by the fallback path. Uses a schema whose TypeAdapter construction fails for a reason other
tests/utilities/json_schema_type/test_json_schema_type.py:506
Methodtest_fallback_parameter_defaults_to_none
Verify fallback defaults to None (enabling smart defaults).
tests/server/auth/oauth_proxy/test_tokens.py:594
Methodtest_fallback_parameter_stored
Verify fallback_access_token_expiry_seconds is stored on provider.
tests/server/auth/oauth_proxy/test_tokens.py:575
Methodtest_fallback_parameter_stored
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:648
Methodtest_fallback_skips_unauthorized_picks_next
When multiple fallback candidates exist, skip unauthorized ones.
tests/server/versioning/test_visibility_version_fallback.py:355
Methodtest_fallback_to_second_ip
If the first IP fails, the next resolved IP should be tried.
tests/server/auth/test_ssrf_protection.py:264
Methodtest_falls_back_for_circular_json_pointer_refs
Test that circular JSON Pointer $ref (non-$defs) does not crash. .NET/System.Text.Json emits $ref with JSON Pointer paths like #/prop
tests/utilities/test_json_schema.py:166
Methodtest_falls_back_for_circular_refs
Test that circular references fall back to resolve_root_ref.
tests/utilities/test_json_schema.py:137
Methodtest_falls_back_for_root_ref_to_boolean_schema
A root $ref resolving to a boolean schema must not crash. `true` is a valid JSON Schema, so ``$defs: {"Any": true}`` with a root $ref
tests/utilities/test_json_schema.py:386
Methodtest_falls_back_for_root_ref_to_false_schema_without_siblings
A root $ref resolving to `false` (no siblings) stays intact.
tests/utilities/test_json_schema.py:404
Methodtest_falls_back_for_root_ref_to_non_schema_json_value
A root $ref resolving to any non-dict value must not crash. $defs entries are arbitrary JSON, so a pointer can also reach a list or s
tests/utilities/test_json_schema.py:411
Methodtest_falls_back_to_client_id_without_subject
(self)
tests/telemetry/test_module.py:53
Methodtest_falls_back_to_legacy_namespace_when_dict
(self)
tests/utilities/test_components.py:267
Methodtest_falls_back_to_verifiers
When server rejects a token, verifiers are tried.
tests/server/auth/test_multi_auth.py:276
Methodtest_false_property_schema_rejects_values
A property with schema `false` should reject any provided value.
tests/utilities/json_schema_type/test_json_schema_type.py:132
Methodtest_falsy_params_dropped
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:159
Functiontest_fastapi_body_title_does_not_hide_query_alias
()
tests/server/providers/openapi/test_whole_body_parameter_collisions.py:113
Functiontest_fastapi_client_headers_sse_resource
(sse_server: str)
tests/client/test_openapi.py:80
Functiontest_fastapi_client_headers_sse_tool
(sse_server: str)
tests/client/test_openapi.py:95
Functiontest_fastapi_client_headers_streamable_http_resource
(shttp_server: str)
tests/client/test_openapi.py:72
Functiontest_fastapi_client_headers_streamable_http_tool
(shttp_server: str)
tests/client/test_openapi.py:88
Functiontest_fastapi_dictionary_body
(labels: dict[str, str])
tests/server/providers/openapi/test_object_request_bodies.py:159
Functiontest_fastapi_nested_tuple_schemas
()
tests/server/providers/openapi/test_tuple_schemas.py:62
Functiontest_fastapi_testclient_multiple_runs
Test that TestClient can be used multiple times with a mounted FastMCP app. This verifies that the StreamableHTTPSessionManager is correctly recr
tests/server/test_fastapi_testclient_compat.py:9
Functiontest_fastapi_testclient_nested_lifespan
Test that TestClient works with custom combined lifespans and multiple iterations.
tests/server/test_fastapi_testclient_compat.py:41
Functiontest_fastapi_tuple_input_schema
()
tests/server/providers/openapi/test_tuple_schemas.py:16
Functiontest_fastapi_tuple_output_schema
()
tests/server/providers/openapi/test_tuple_schemas.py:42
Methodtest_fastmcp1x_empty_server
Test get_fastmcp_info_v1 with an empty FastMCP1x server.
tests/utilities/test_inspect.py:470
Methodtest_fastmcp1x_vs_fastmcp2x_comparison
Test that both versions can be inspected and compared.
tests/utilities/test_inspect.py:572
Methodtest_fastmcp1x_with_prompts
Test get_fastmcp_info_v1 with a FastMCP1x server that has prompts.
tests/utilities/test_inspect.py:525
Methodtest_fastmcp1x_with_resources
Test get_fastmcp_info_v1 with a FastMCP1x server that has resources.
tests/utilities/test_inspect.py:508
Methodtest_fastmcp1x_with_tools
Test get_fastmcp_info_v1 with a FastMCP1x server that has tools.
tests/utilities/test_inspect.py:488
Functiontest_fastmcp_imports_without_legacy_httpx
()
tests/test_no_legacy_httpx.py:70
Methodtest_fastmcp_info_creation
Test that FastMCPInfo can be created with all required fields.
tests/utilities/test_inspect.py:22
Methodtest_fastmcp_info_with_none_instructions
Test that FastMCPInfo works with None instructions.
tests/utilities/test_inspect.py:60
Methodtest_fastmcp_init_with_tuples
Test FastMCP accepts tuples for sequence parameters.
tests/server/test_server.py:247
Methodtest_fastmcp_meta_optional_fields
Test that FastMCPMeta fields are optional.
tests/utilities/test_components.py:333
Methodtest_fastmcp_meta_structure
Test that FastMCPMeta has the expected structure.
tests/utilities/test_components.py:322
Methodtest_fastmcp_meta_with_version
Test that FastMCPMeta can include version.
tests/utilities/test_components.py:327
Methodtest_fastmcp_not_in_with
(self)
tests/cli/test_goose.py:61
Methodtest_fastmcp_provider_template_preserves_fields_without_double_wrap
The FastMCPProvider path wraps template.get_meta() (already namespaced). Re-materializing must not nest fastmcp under fastmcp.
tests/resources/test_resource_template_meta.py:76
Functiontest_fastmcp_proxy_uses_public_metadata_middleware
()
tests/server/providers/proxy/test_server_metadata.py:631
Functiontest_fastmcp_server_import_does_not_load_context
()
tests/server/http/test_startup_imports.py:100
Methodtest_fastmcp_tightens_the_argument_contract
FastMCP rejects an unexpected argument where MCPServer accepts it. This is the behavior behind the `additionalProperties` schema difference,
tests/docs/test_upgrade_guide_equivalence.py:152
Methodtest_fastmcp_tightens_the_argument_contract
FastMCP rejects an unexpected argument where the handler ignored it. A low-level handler reads `params.arguments` as a plain dict and never
tests/docs/test_upgrade_guide_equivalence.py:209
Methodtest_fastmcp_version_dict_rejected
FastMCP(version={'v': 1}) should raise TypeError.
tests/server/versioning/test_versioning.py:405
Methodtest_fastmcp_version_false_rejected
FastMCP(version=False) should raise TypeError, not coerce to 'False'.
tests/server/versioning/test_versioning.py:415
Methodtest_fastmcp_version_float_coerced
FastMCP(version=1.5) should coerce to string.
tests/server/versioning/test_versioning.py:377
Methodtest_fastmcp_version_int_coerced
FastMCP(version=42) should coerce to string '42'.
tests/server/versioning/test_versioning.py:372
Methodtest_fastmcp_version_list_rejected
FastMCP(version=[1, 2]) should raise TypeError.
tests/server/versioning/test_versioning.py:400
Methodtest_fastmcp_version_true_rejected
FastMCP(version=True) should raise TypeError, not coerce to 'True'.
tests/server/versioning/test_versioning.py:410
Methodtest_fastmcp_works_with_abstract_types
Test that abstract types work end-to-end with a client.
tests/server/test_server.py:265
Methodtest_fetch_304_without_cache_headers_preserves_policy
304 responses without cache headers should not reset cached policy.
tests/server/auth/test_cimd.py:464
Methodtest_fetch_304_without_cache_headers_refreshes_cached_freshness
A header-less 304 should renew freshness using cached lifetime.
tests/server/auth/test_cimd.py:505
Methodtest_fetch_cache_control_max_age
Cache-Control max-age should prevent refetch before expiry.
tests/server/auth/test_cimd.py:308
Methodtest_fetch_cache_control_no_cache
Cache-Control no-cache should force revalidation on each fetch.
tests/server/auth/test_cimd.py:427
Methodtest_fetch_cache_control_no_store
Cache-Control no-store should prevent storing CIMD documents.
tests/server/auth/test_cimd.py:401
Methodtest_fetch_cache_evicts_oldest_document
Distinct client URLs cannot grow the document cache without bound.
tests/server/auth/test_cimd.py:283
Methodtest_fetch_client_id_mismatch
Test that client_id mismatch is rejected.
tests/server/auth/test_cimd.py:545
Methodtest_fetch_error
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:188
Methodtest_fetch_etag_revalidation_304
Expired cache should revalidate with ETag and accept 304.
tests/server/auth/test_cimd.py:330
Methodtest_fetch_http_error
Test handling of HTTP errors.
tests/server/auth/test_cimd.py:564
Methodtest_fetch_invalid_document
Test handling of invalid CIMD document.
tests/server/auth/test_cimd.py:585
Methodtest_fetch_invalid_json
Test handling of invalid JSON response.
tests/server/auth/test_cimd.py:573
Methodtest_fetch_invalid_response
Invalid response returns None.
tests/utilities/test_version_check.py:139
Methodtest_fetch_invalid_url
Invalid URL errors during client setup return None (#5638).
tests/utilities/test_version_check.py:134
Methodtest_fetch_last_modified_revalidation_304
Expired cache should revalidate with Last-Modified and accept 304.
tests/server/auth/test_cimd.py:367
Methodtest_fetch_network_error
Network error returns None.
tests/utilities/test_version_check.py:128
← previousnext →9,601–9,700 of 15,974, ranked by callers