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
Method
test_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
Method
test_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
Method
test_rejects_unsupported_assertion_algorithm
Symmetric and unsigned assertion algorithms are rejected up front.
tests/server/auth/test_cimd_validators.py:419
Method
test_rejects_wrong_audience
Test that wrong audience is rejected.
tests/server/auth/test_cimd_validators.py:205
Method
test_rejects_wrong_issuer
Test that wrong issuer is rejected.
tests/server/auth/test_cimd_validators.py:182
Method
test_rejects_wrong_subject
Test that wrong subject claim is rejected.
tests/server/auth/test_cimd_validators.py:228
Function
test_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
Method
test_relative_path_error
Test error on relative path.
tests/resources/test_file_resources.py:84
Method
test_relative_path_resolved
Relative paths should be resolved against cwd.
tests/cli/test_cimd_cli.py:53
Function
test_reload_also_validates_at_startup
(tmp_path: Path)
tests/skills/test_directory_provider.py:84
Method
test_reload_false_caches_at_init
With reload=False, components are cached at init.
tests/fs/test_provider.py:206
Method
test_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
Function
test_reload_keeps_the_last_valid_skills_when_a_folder_breaks
(tmp_path: Path)
tests/skills/test_directory_provider.py:222
Method
test_reload_mode
(self, skills_dir: Path)
tests/server/providers/test_skills_provider.py:795
Function
test_reload_shows_edits_through_the_response_cache
(tmp_path: Path)
tests/skills/test_directory_provider.py:160
Method
test_reload_true_rescans
With reload=True, components are rescanned on each request.
tests/fs/test_provider.py:235
Method
test_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
Function
test_reloaded_refresh_token_is_not_sent_before_issuer_check
()
tests/client/auth/test_oauth_static_client_issuer.py:82
Method
test_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
Method
test_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
Method
test_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
Method
test_remembered_denial_redirects_with_issuer
Remembered consent denial redirects with RFC 9207 issuer.
tests/server/auth/test_oauth_consent_flow.py:1024
Method
test_remote_auth_explicit_challenge_scopes
( self, optional_scope_remote_provider: RemoteAuthProvider, challenge_scopes: list[str
tests/server/auth/test_auth_provider.py:125
Function
test_remote_config_default_no_auth
()
tests/test_mcp_config.py:847
Function
test_remote_config_max_sse_event_size_passthrough
max_sse_event_size is forwarded from RemoteMCPServer to StreamableHttpTransport.
tests/test_mcp_config.py:600
Function
test_remote_config_sse_with_auth_token
()
tests/test_mcp_config.py:875
Function
test_remote_config_with_auth_token
()
tests/test_mcp_config.py:860
Function
test_remote_config_with_oauth_literal
()
tests/test_mcp_config.py:890
Method
test_remote_insufficient_scope_challenge_excludes_optional_catalog_scopes
( self, )
tests/server/auth/test_enhanced_error_responses.py:838
Function
test_remote_local_overrides_stdio_user
(claude_project)
tests/cli/test_claude_code_precedence.py:68
Method
test_remote_missing_auth_challenge_excludes_optional_catalog_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:823
Function
test_remote_provider_identity_tracks_its_configured_verifier
(kind: str)
tests/server/auth/test_auth_source_identities.py:479
Function
test_remote_provider_uses_configured_audience
(httpx_mock: HTTPXMock)
tests/server/auth/providers/test_introspection_audience.py:112
Function
test_remote_revoke_always_removes_the_local_credential
( tmp_path: Path, )
tests/cli/deploy/test_credentials.py:214
Method
test_remote_server
(self, tmp_path: Path)
tests/cli/test_discovery.py:167
Method
test_remote_server_resolves_to_http_transport
(self, tmp_path: Path)
tests/cli/test_discovery.py:793
Method
test_remote_type_becomes_transport
(self)
tests/cli/test_discovery.py:248
Method
test_remote_with_transport_unchanged
(self)
tests/cli/test_discovery.py:254
Method
test_remove_nonexistent_tool_raises
Test that removing a nonexistent tool raises KeyError.
tests/server/providers/test_local_provider.py:77
Method
test_remove_prompt
Test removing a prompt from LocalProvider.
tests/server/providers/test_local_provider.py:140
Method
test_remove_prompt_via_local_provider
(self)
tests/server/test_server.py:151
Method
test_remove_resource
Test removing a resource from LocalProvider.
tests/server/providers/test_local_provider.py:94
Method
test_remove_resource_via_local_provider
(self)
tests/server/test_server.py:140
Method
test_remove_template
Test removing a resource template from LocalProvider.
tests/server/providers/test_local_provider.py:116
Method
test_remove_tool
Test removing a tool from LocalProvider.
tests/server/providers/test_local_provider.py:63
Method
test_remove_tool_via_local_provider
(self)
tests/server/test_server.py:128
Method
test_removed_fastmcp_method_is_gone
(self, method_name)
tests/test_upgrade_from_v3.py:283
Method
test_removed_kwarg_error_includes_migration_hint
( self, kwarg, value, expected_message )
tests/deprecated/test_settings.py:46
Method
test_removed_kwarg_raises_type_error
(self, kwarg, value, expected_message)
tests/deprecated/test_settings.py:34
Method
test_removed_module_raises_module_not_found
(self, module_path)
tests/test_upgrade_from_v3.py:242
Method
test_removed_name_is_gone
(self, module_path, name)
tests/test_upgrade_from_v3.py:265
Function
test_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
Method
test_removes_params_from_both_annotations_and_signature
Test that excluded parameters are removed from __annotations__ AND __signature__.
tests/utilities/test_types.py:674
Method
test_removing_tool_after_mounting
Test that tools removed from mounted servers are no longer accessible.
tests/server/mount/test_advanced.py:43
Function
test_renamed_arg_description_is_maintained
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:134
Function
test_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
Method
test_renamed_field_does_not_collide_with_existing_property
(self)
tests/utilities/json_schema_type/test_generated_classes.py:324
Method
test_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
Function
test_renaming_transforms_still_apply_alongside_search
()
tests/tasks/server/test_task_catalog_transforms.py:85
Method
test_render_nonexistent_prompt_sets_error
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:208
Method
test_render_prompt_calls_prompt
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:926
Method
test_render_prompt_creates_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:175
Method
test_render_prompt_default_implementation
Test that default render_prompt uses get_prompt and renders it.
tests/server/test_providers.py:431
Method
test_render_prompt_same_as_original
( self, fastmcp_server: FastMCP, proxy_server: FastMCPProxy )
tests/server/providers/proxy/test_proxy_server.py:912
Function
test_render_prompt_serializes_non_string_arguments_for_middleware
()
tests/server/test_server.py:407
Method
test_render_prompt_via_client
Test rendering a prompt through a server using the provider.
tests/server/providers/test_fastmcp_provider.py:267
Method
test_render_prompt_with_run_middleware_false
Middleware is NOT applied when run_middleware=False.
tests/server/middleware/test_middleware.py:606
Method
test_render_prompt_with_run_middleware_true
Middleware is applied when run_middleware=True (default).
tests/server/middleware/test_middleware.py:587
Method
test_render_prompt_with_version
render_prompt should use specified version.
tests/server/versioning/test_calls.py:230
Method
test_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
Function
test_renderer_mode_and_version_change_identity
(monkeypatch)
tests/server/providers/test_prefab_sharing.py:128
Method
test_renderer_resource_has_correct_mime_type
(self)
tests/test_apps_prefab.py:137
Method
test_renderer_resource_has_csp
(self)
tests/test_apps_prefab.py:149
Method
test_renderer_resource_readable
(self)
tests/test_apps_prefab.py:433
Method
test_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
Function
test_repeated_collections_share_the_merge_budget
(monkeypatch)
tests/utilities/openapi/test_composition_graphs.py:155
Function
test_repeated_large_examples_keep_defs
()
tests/utilities/test_json_schema_expansion.py:194
Function
test_repeated_long_description_keeps_defs
()
tests/utilities/test_json_schema_expansion.py:185
Function
test_repeated_members_keep_last_occurrence_order
()
tests/utilities/openapi/test_composition_graphs.py:35
Function
test_repeated_names_use_final_contents
()
tests/apps/test_file_upload_retention.py:87
Method
test_repeated_type_lists_are_rejected
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:536
Method
test_replace_ref_with_defs
Test replacing $ref with $defs for JSON Schema compatibility.
tests/utilities/openapi/test_schemas.py:302
Method
test_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
Method
test_replace_ref_with_defs_in_additional_properties
Test replacing $ref deeply in 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:359
Function
test_replace_ref_with_defs_keeps_the_pointer_into_the_component
()
tests/server/providers/openapi/test_component_property_refs.py:53
Method
test_replace_ref_with_defs_nested
Test replacing $ref in deeply nested structures.
tests/utilities/openapi/test_schemas.py:322
Function
test_replace_ref_with_defs_preserves_boolean_prefix_items
()
tests/utilities/openapi/test_prefixitems_ref_rewrite.py:30
Method
test_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
Function
test_replace_ref_with_defs_rewrites_nested_prefix_items
()
tests/utilities/openapi/test_prefixitems_ref_rewrite.py:6
Function
test_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
Method
test_replace_ref_with_defs_with_bool_additional_properties
Test replacing a bool 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:390
Method
test_replace_ref_with_defs_with_inner_schema_additional_properties
Test replacing a inner schema 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:421
Method
test_replace_type
Test replacing a type with another type.
tests/utilities/test_types.py:666
Function
test_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
Function
test_replacement_starts_new_expiry
(clock: list[float])
tests/apps/test_file_upload_retention.py:130
Method
test_replacement_symbols_are_bound
(self)
tests/test_upgrade_from_v3.py:146
Function
test_replacements_return_capacity
()
tests/apps/test_file_upload_retention.py:74
Method
test_replaces_existing_value_in_place_preserving_other_bytes
(self)
tests/server/auth/test_redirect_validation.py:80
Method
test_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
Method
test_replacing_duplicate_returns_the_new_component
(self, on_duplicate)
tests/server/providers/test_local_provider.py:607
← previous
next →
13,101–13,200 of 15,974, ranked by callers