MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_rejects_unlisted_host_or_origin
( self, protected_server: ASGIServer, headers: dict[str, str], expected_status
tests/server/http/test_sse_host_origin_protection.py:114
Methodtest_rejects_unlisted_host_or_origin_for_open_session
( self, protected_server: ASGIServer, headers: dict[str, str], expected_status
tests/server/http/test_sse_host_origin_protection.py:142
Methodtest_rejects_unsupported_assertion_algorithm
Symmetric and unsigned assertion algorithms are rejected up front.
tests/server/auth/test_cimd_validators.py:419
Methodtest_rejects_wrong_audience
Test that wrong audience is rejected.
tests/server/auth/test_cimd_validators.py:205
Methodtest_rejects_wrong_issuer
Test that wrong issuer is rejected.
tests/server/auth/test_cimd_validators.py:182
Methodtest_rejects_wrong_subject
Test that wrong subject claim is rejected.
tests/server/auth/test_cimd_validators.py:228
Functiontest_relative_config_path_survives_deployment_cwd
A relative config path must still resolve after deployment.cwd changes the cwd.
tests/cli/test_run_config.py:316
Methodtest_relative_path_error
Test error on relative path.
tests/resources/test_file_resources.py:84
Methodtest_relative_path_resolved
Relative paths should be resolved against cwd.
tests/cli/test_cimd_cli.py:53
Functiontest_reload_also_validates_at_startup
(tmp_path: Path)
tests/skills/test_directory_provider.py:84
Methodtest_reload_false_caches_at_init
With reload=False, components are cached at init.
tests/fs/test_provider.py:206
Methodtest_reload_from_storage_after_refresh_failure
If refresh fails, re-read from storage in case another worker refreshed.
tests/server/auth/oauth_proxy/test_tokens.py:1887
Functiontest_reload_keeps_the_last_valid_skills_when_a_folder_breaks
(tmp_path: Path)
tests/skills/test_directory_provider.py:222
Methodtest_reload_mode
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:795
Functiontest_reload_shows_edits_through_the_response_cache
(tmp_path: Path)
tests/skills/test_directory_provider.py:160
Methodtest_reload_true_rescans
With reload=True, components are rescanned on each request.
tests/fs/test_provider.py:235
Methodtest_reload_uses_stored_expiry_not_stale_expires_in
On reload, _initialize should use the stored absolute expiry rather than recomputing from the stale relative expires_in. This is the
tests/client/auth/test_oauth_client.py:605
Functiontest_reloaded_refresh_token_is_not_sent_before_issuer_check
()
tests/client/auth/test_oauth_static_client_issuer.py:82
Methodtest_remember_mode_cross_site_forces_prompt
Sec-Fetch-Site=cross-site must skip silent consent even with valid cookie. Blocks the AS-in-the-middle scenario: attacker redirects the victi
tests/server/auth/test_oauth_consent_flow.py:1296
Methodtest_remember_mode_missing_sec_fetch_site_fails_closed
Missing Sec-Fetch-Site header must fall back to the explicit prompt. Legacy clients that don't send the header degrade to the safer behavior
tests/server/auth/test_oauth_consent_flow.py:1340
Methodtest_remembered_denial_does_not_duplicate_iss_already_in_redirect_uri
RFC 9207 P2 regression: the *remembered/silent* denial path is a separate call site from the explicit deny above, and must independent
tests/server/auth/test_oauth_consent_flow.py:1067
Methodtest_remembered_denial_redirects_with_issuer
Remembered consent denial redirects with RFC 9207 issuer.
tests/server/auth/test_oauth_consent_flow.py:1024
Methodtest_remote_auth_explicit_challenge_scopes
( self, optional_scope_remote_provider: RemoteAuthProvider, challenge_scopes: list[str
tests/server/auth/test_auth_provider.py:125
Functiontest_remote_config_default_no_auth
()
tests/test_mcp_config.py:847
Functiontest_remote_config_max_sse_event_size_passthrough
max_sse_event_size is forwarded from RemoteMCPServer to StreamableHttpTransport.
tests/test_mcp_config.py:600
Functiontest_remote_config_sse_with_auth_token
()
tests/test_mcp_config.py:875
Functiontest_remote_config_with_auth_token
()
tests/test_mcp_config.py:860
Functiontest_remote_config_with_oauth_literal
()
tests/test_mcp_config.py:890
Methodtest_remote_insufficient_scope_challenge_excludes_optional_catalog_scopes
( self, )
tests/server/auth/test_enhanced_error_responses.py:838
Functiontest_remote_local_overrides_stdio_user
(claude_project)
tests/cli/test_claude_code_precedence.py:68
Methodtest_remote_missing_auth_challenge_excludes_optional_catalog_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:823
Functiontest_remote_provider_identity_tracks_its_configured_verifier
(kind: str)
tests/server/auth/test_auth_source_identities.py:479
Functiontest_remote_provider_uses_configured_audience
(httpx_mock: HTTPXMock)
tests/server/auth/providers/test_introspection_audience.py:112
Functiontest_remote_revoke_always_removes_the_local_credential
( tmp_path: Path, )
tests/cli/deploy/test_credentials.py:214
Methodtest_remote_server
(self, tmp_path: Path)
tests/cli/test_discovery.py:167
Methodtest_remote_server_resolves_to_http_transport
(self, tmp_path: Path)
tests/cli/test_discovery.py:793
Methodtest_remote_type_becomes_transport
(self)
tests/cli/test_discovery.py:248
Methodtest_remote_with_transport_unchanged
(self)
tests/cli/test_discovery.py:254
Methodtest_remove_nonexistent_tool_raises
Test that removing a nonexistent tool raises KeyError.
tests/server/providers/test_local_provider.py:77
Methodtest_remove_prompt
Test removing a prompt from LocalProvider.
tests/server/providers/test_local_provider.py:140
Methodtest_remove_prompt_via_local_provider
(self)
tests/server/test_server.py:151
Methodtest_remove_resource
Test removing a resource from LocalProvider.
tests/server/providers/test_local_provider.py:94
Methodtest_remove_resource_via_local_provider
(self)
tests/server/test_server.py:140
Methodtest_remove_template
Test removing a resource template from LocalProvider.
tests/server/providers/test_local_provider.py:116
Methodtest_remove_tool
Test removing a tool from LocalProvider.
tests/server/providers/test_local_provider.py:63
Methodtest_remove_tool_via_local_provider
(self)
tests/server/test_server.py:128
Methodtest_removed_fastmcp_method_is_gone
(self, method_name)
tests/test_upgrade_from_v3.py:283
Methodtest_removed_kwarg_error_includes_migration_hint
( self, kwarg, value, expected_message )
tests/deprecated/test_settings.py:46
Methodtest_removed_kwarg_raises_type_error
(self, kwarg, value, expected_message)
tests/deprecated/test_settings.py:34
Methodtest_removed_module_raises_module_not_found
(self, module_path)
tests/test_upgrade_from_v3.py:242
Methodtest_removed_name_is_gone
(self, module_path, name)
tests/test_upgrade_from_v3.py:265
Functiontest_removed_server_initiated_methods_are_absent
FastMCP 4 targets the modern protocol, so the capabilities SEP-2577 removed are not in the server-authoring API — not deprecated, not era-gated,
tests/server/test_protocol_eras.py:301
Methodtest_removes_params_from_both_annotations_and_signature
Test that excluded parameters are removed from __annotations__ AND __signature__.
tests/utilities/test_types.py:674
Methodtest_removing_tool_after_mounting
Test that tools removed from mounted servers are no longer accessible.
tests/server/mount/test_advanced.py:43
Functiontest_renamed_arg_description_is_maintained
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:134
Functiontest_renamed_argument_submission_uses_the_transformed_name
A renamed argument is accepted under its new name and rejected under the old.
tests/tasks/server/test_task_transformed_tools.py:81
Methodtest_renamed_field_does_not_collide_with_existing_property
(self)
tests/utilities/json_schema_type/test_generated_classes.py:324
Methodtest_renamed_tool_is_callable_via_mount
Test that renamed tools can be called by new name via mount.
tests/server/providers/test_transforming_provider.py:105
Functiontest_renaming_transforms_still_apply_alongside_search
()
tests/tasks/server/test_task_catalog_transforms.py:85
Methodtest_render_nonexistent_prompt_sets_error
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:208
Methodtest_render_prompt_calls_prompt
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:926
Methodtest_render_prompt_creates_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:175
Methodtest_render_prompt_default_implementation
Test that default render_prompt uses get_prompt and renders it.
tests/server/test_providers.py:431
Methodtest_render_prompt_same_as_original
( self, fastmcp_server: FastMCP, proxy_server: FastMCPProxy )
tests/server/providers/proxy/test_proxy_server.py:912
Functiontest_render_prompt_serializes_non_string_arguments_for_middleware
()
tests/server/test_server.py:407
Methodtest_render_prompt_via_client
Test rendering a prompt through a server using the provider.
tests/server/providers/test_fastmcp_provider.py:267
Methodtest_render_prompt_with_run_middleware_false
Middleware is NOT applied when run_middleware=False.
tests/server/middleware/test_middleware.py:606
Methodtest_render_prompt_with_run_middleware_true
Middleware is applied when run_middleware=True (default).
tests/server/middleware/test_middleware.py:587
Methodtest_render_prompt_with_version
render_prompt should use specified version.
tests/server/versioning/test_calls.py:230
Methodtest_renderer_html_is_built_on_read_not_list
Listing must not build the renderer page once per tool (#6038).
tests/server/providers/test_prefab_synthesis.py:258
Functiontest_renderer_mode_and_version_change_identity
(monkeypatch)
tests/server/providers/test_prefab_sharing.py:128
Methodtest_renderer_resource_has_correct_mime_type
(self)
tests/test_apps_prefab.py:137
Methodtest_renderer_resource_has_csp
(self)
tests/test_apps_prefab.py:149
Methodtest_renderer_resource_readable
(self)
tests/test_apps_prefab.py:433
Methodtest_repeat_schema_maps_to_one_type
The client converts a tool's output schema on every call, so repeats must hit its adapter cache.
tests/utilities/json_schema_type/test_constraints.py:279
Functiontest_repeated_collections_share_the_merge_budget
(monkeypatch)
tests/utilities/openapi/test_composition_graphs.py:155
Functiontest_repeated_large_examples_keep_defs
()
tests/utilities/test_json_schema_expansion.py:194
Functiontest_repeated_long_description_keeps_defs
()
tests/utilities/test_json_schema_expansion.py:185
Functiontest_repeated_members_keep_last_occurrence_order
()
tests/utilities/openapi/test_composition_graphs.py:35
Functiontest_repeated_names_use_final_contents
()
tests/apps/test_file_upload_retention.py:87
Methodtest_repeated_type_lists_are_rejected
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:536
Methodtest_replace_ref_with_defs
Test replacing $ref with $defs for JSON Schema compatibility.
tests/utilities/openapi/test_schemas.py:302
Methodtest_replace_ref_with_defs_does_not_mutate_input
_replace_ref_with_defs must not mutate its input dict's lists.
tests/utilities/openapi/test_circular_references.py:27
Methodtest_replace_ref_with_defs_in_additional_properties
Test replacing $ref deeply in 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:359
Functiontest_replace_ref_with_defs_keeps_the_pointer_into_the_component
()
tests/server/providers/openapi/test_component_property_refs.py:53
Methodtest_replace_ref_with_defs_nested
Test replacing $ref in deeply nested structures.
tests/utilities/openapi/test_schemas.py:322
Functiontest_replace_ref_with_defs_preserves_boolean_prefix_items
()
tests/utilities/openapi/test_prefixitems_ref_rewrite.py:30
Methodtest_replace_ref_with_defs_produces_independent_results
Calling _replace_ref_with_defs twice on the same input must produce independent dict trees with no shared mutable objects.
tests/utilities/openapi/test_circular_references.py:44
Functiontest_replace_ref_with_defs_rewrites_nested_prefix_items
()
tests/utilities/openapi/test_prefixitems_ref_rewrite.py:6
Functiontest_replace_ref_with_defs_rewrites_propertyNames_ref
Regression test for issue #3303. When using dict[StrEnum, Model], Pydantic generates: { "type": "object", "
tests/utilities/openapi/test_propertynames_ref_rewrite.py:4
Methodtest_replace_ref_with_defs_with_bool_additional_properties
Test replacing a bool 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:390
Methodtest_replace_ref_with_defs_with_inner_schema_additional_properties
Test replacing a inner schema 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:421
Methodtest_replace_type
Test replacing a type with another type.
tests/utilities/test_types.py:666
Functiontest_replaced_task_session_is_not_removed_by_old_weakref
A stale weakref for a replaced session does not evict the new session.
tests/tasks/server/test_context_background_task.py:126
Functiontest_replacement_starts_new_expiry
(clock: list[float])
tests/apps/test_file_upload_retention.py:130
Methodtest_replacement_symbols_are_bound
(self)
tests/test_upgrade_from_v3.py:146
Functiontest_replacements_return_capacity
()
tests/apps/test_file_upload_retention.py:74
Methodtest_replaces_existing_value_in_place_preserving_other_bytes
(self)
tests/server/auth/test_redirect_validation.py:80
Methodtest_replaces_iss_already_present_in_registered_redirect_uri
A registered redirect_uri may legitimately carry its own `iss` query parameter (e.g. a multi-tenant client encoding its tenant in the
tests/server/auth/test_redirect_validation.py:137
Methodtest_replacing_duplicate_returns_the_new_component
(self, on_duplicate)
tests/server/providers/test_local_provider.py:607
← previousnext →13,101–13,200 of 15,974, ranked by callers