MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

Methodtest_extract_scopes_from_array
Test scope extraction from array.
tests/server/auth/providers/test_introspection.py:93
Methodtest_extract_scopes_from_string
Test scope extraction from space-separated string.
tests/server/auth/providers/test_introspection.py:86
Methodtest_extract_scopes_includes_permissions
(self)
tests/server/auth/providers/test_auth0_mcp.py:34
Methodtest_extract_scopes_missing
Test scope extraction when scope field is missing.
tests/server/auth/providers/test_introspection.py:100
Methodtest_extract_scopes_permissions_string
(self)
tests/server/auth/providers/test_auth0_mcp.py:44
Methodtest_extract_scopes_with_extra_whitespace
Test scope extraction handles extra whitespace.
tests/server/auth/providers/test_introspection.py:107
Methodtest_extract_skips_private_components
Should skip private components (those starting with _).
tests/fs/test_discovery.py:248
Methodtest_extract_tool_component
Should extract Tool objects.
tests/fs/test_discovery.py:197
Methodtest_extract_tool_preserves_version
Tools discovered from files should have their version attribute set.
tests/fs/test_discovery.py:395
Functiontest_extraction_failure_keeps_other_tools_callable
( tmp_path: Path, invalid_component: tuple[str, str], reload: bool )
tests/fs/test_extraction_failures.py:76
Methodtest_factory_method_with_secret
_create_upstream_oauth_client includes the secret when configured.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:402
Methodtest_factory_method_without_secret
_create_upstream_oauth_client works when no secret is configured.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:386
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:314
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_claims_extraction_keeps_refresh_token
A claims hook failure issues nothing, so the client can retry.
tests/server/auth/oauth_proxy/test_single_use.py:224
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
Functiontest_failed_delivery_is_retried_with_the_same_webhook_id
(receiver)
tests/events/test_webhooks.py:312
Methodtest_failed_discovery_backs_off
( self, idp_key: RSAKeyPair, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_identity_assertion.py:882
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_generation_does_not_restore_old_components
( tmp_path: Path, package: bool )
tests/fs/test_reload_generations.py:185
Functiontest_failed_known_legacy_backend_does_not_downgrade_healthy_backends
()
tests/test_mcp_config.py:290
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
Functiontest_failed_refresh_revocation_can_be_completed_on_retry
If a store call fails mid-revocation, retrying /revoke still ends the grant.
tests/server/auth/oauth_proxy/test_revocation.py:664
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:434
Methodtest_failed_upstream_refresh_keeps_refresh_token
A transient upstream failure issues nothing, so the client can retry.
tests/server/auth/oauth_proxy/test_single_use.py:196
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:536
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:284
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:167
Methodtest_falls_back_for_circular_refs
Test that circular references fall back to resolve_root_ref.
tests/utilities/test_json_schema.py:138
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:387
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:405
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:412
Methodtest_falls_back_to_client_id_without_subject
(self)
tests/telemetry/test_module.py:53
Methodtest_falls_back_to_file_stem_when_import_raises
Servers that read config at import time still install without `--name`.
tests/cli/test_install.py:310
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:177
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
Functiontest_fastmcp_verifies_what_the_reference_signs
( key, other, message_id, body, position )
tests/pbt/test_webhook_signing.py:62
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
← previousnext →10,701–10,800 of 17,519, ranked by callers