MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Functiontest_http_app_sse_sets_mcp_server_state
()
tests/server/test_app_state.py:11
Functiontest_http_app_with_sse_transport
Test that http_app with SSE transport works.
tests/deprecated/test_deprecated.py:19
Methodtest_http_client_reaches_the_app
(self)
tests/utilities/test_asgi_transport.py:224
Methodtest_http_error_returns_none
Test that HTTP errors return None.
tests/server/auth/providers/test_introspection.py:257
Methodtest_http_errors_are_not_cached
Test that HTTP errors are not cached (transient failures).
tests/server/auth/providers/test_introspection.py:791
Functiontest_http_headers
Test getting HTTP headers from the server.
tests/client/test_sse.py:79
Functiontest_http_headers
Test getting HTTP headers from the server.
tests/client/test_streamable_http.py:170
Functiontest_http_headers_prompt_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:112
Functiontest_http_headers_prompt_sse
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:122
Functiontest_http_headers_resource_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:77
Functiontest_http_headers_resource_sse
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:87
Functiontest_http_headers_tool_shttp
Test getting HTTP headers from the server.
tests/server/http/test_http_dependencies.py:97
Functiontest_http_headers_tool_sse
(sse_server: ASGIServer)
tests/server/http/test_http_dependencies.py:105
Functiontest_http_host_origin_protection_defaults_to_false
()
tests/test_settings.py:6
Functiontest_http_host_origin_protection_env_var
(value, expected, monkeypatch)
tests/test_settings.py:18
Methodtest_http_ref_not_fetched
(self)
tests/utilities/test_json_schema.py:1186
Methodtest_http_rejected
HTTP URLs should be rejected (HTTPS required).
tests/server/auth/test_ssrf_protection.py:138
Methodtest_http_target_gets_oauth_by_default
(self)
tests/cli/test_client_commands.py:370
Methodtest_http_transport_binds_oauth
(self)
tests/client/auth/test_oauth_cimd.py:140
Methodtest_http_transport_oauth_string_still_works
auth="oauth" should still create a new OAuth instance.
tests/client/auth/test_oauth_cimd.py:158
Methodtest_http_url
(self)
tests/cli/test_client_commands.py:233
Methodtest_http_url
(self)
tests/cli/test_client_commands.py:347
Methodtest_http_url_normalized
Gemini uses ``httpUrl`` — verify it becomes ``url``.
tests/cli/test_discovery.py:466
Functiontest_http_urls_are_allowed
()
tests/cli/test_fastmcp_remote.py:75
Functiontest_http_user_lifespan_fires_once_across_sessions
The session manager must drive the user lifespan exactly once for the server process, even when several independent HTTP client sessions connect
tests/server/http/test_lifespan_once_per_process.py:42
Methodtest_https_proxy_preferred_over_all_proxy
When both are set, HTTPS_PROXY takes priority.
tests/server/auth/test_ssrf_protection.py:718
Methodtest_https_proxy_used_explicitly
HTTPS_PROXY is passed to httpx2 explicitly with trust_env disabled, and a single request goes to the original hostname URL — not an IP literal
tests/server/auth/test_ssrf_protection.py:664
Methodtest_https_url
(self)
tests/cli/test_client_commands.py:239
Methodtest_https_url
(self)
tests/cli/test_client_commands.py:350
Methodtest_httpx_preserves_auth_on_same_origin_redirect
httpx preserves Authorization headers when redirecting to the same origin.
tests/client/transports/test_no_redirect.py:58
Methodtest_httpx_strips_auth_on_cross_origin_redirect
httpx strips Authorization headers when redirecting to a different origin.
tests/client/transports/test_no_redirect.py:22
Methodtest_huge_maximum_constrains_nothing
(self, schema, value)
tests/utilities/json_schema_type/test_constraints.py:234
Methodtest_huge_minimum_still_rejects
(self, schema, value)
tests/utilities/json_schema_type/test_constraints.py:244
Functiontest_human_coauthors_survive_agent_filter_without_an_issue
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:100
Methodtest_hyphenated_exemption_matches_normalized_param
`{git-ref}` extracts as `git_ref`; an exemption written with the URI-template (hyphen) spelling must still match it.
tests/resources/test_resource_security.py:104
Methodtest_hyphenated_name
(self)
tests/cli/test_generate_cli.py:705
Methodtest_hyphenated_query_param_forwarded
(self)
tests/server/providers/proxy/test_proxy_server.py:804
Methodtest_hyphenated_query_param_not_double_encoded
(self)
tests/server/providers/proxy/test_proxy_server.py:825
Methodtest_hyphenated_template_end_to_end
Register and read a resource with hyphenated URI param names.
tests/resources/test_resource_template.py:934
Methodtest_hyphens
(self)
tests/cli/test_generate_cli.py:95
Methodtest_icon_import
Test that Icon must be imported from mcp.types, not fastmcp.
tests/server/test_icons.py:357
Methodtest_icon_with_theme_round_trips
Test that an icon's theme survives a client round-trip.
tests/server/test_icons.py:333
Methodtest_icon_without_optional_fields
Test that icons work with only the src field.
tests/server/test_icons.py:316
Methodtest_icon_without_theme_is_none
Test that an icon with no theme specified round-trips as None.
tests/server/test_icons.py:343
Methodtest_icons_always_present_in_json
Test that icons and website_url fields are always present in JSON, even when None.
tests/utilities/test_inspect_icons.py:336
Methodtest_icons_in_fastmcp_v1
Test that icons are extracted from FastMCP 1.x servers.
tests/utilities/test_inspect_icons.py:260
Methodtest_icons_in_formatted_output
Test that icons appear in formatted JSON output.
tests/utilities/test_inspect_icons.py:300
Methodtest_id_is_none_without_a_public_id
(self)
tests/server/test_sessions.py:133
Methodtest_id_jag_marked_token_rejected_when_not_configured
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:910
Methodtest_id_organizes_within_a_principal
(self)
tests/server/test_sessions.py:80
Methodtest_id_returns_the_public_id
(self)
tests/server/test_sessions.py:138
Functiontest_identical_discovery_configuration_is_cached
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:36
Functiontest_identical_overlapping_property_stays_flat
()
tests/server/providers/openapi/test_body_ref_siblings.py:112
Methodtest_identical_schemas_reuse_class
(self)
tests/utilities/json_schema_type/test_advanced.py:296
Methodtest_identity_assertion_audience_is_issuer_identifier
SEP-990: an ID-JAG is bound to the server's advertised issuer. RFC 7523 §3 requires the `aud` to identify the authorization server, a
tests/server/auth/test_issuer_url_identity.py:205
Methodtest_identity_hash_survives_the_proxy
(self)
tests/server/providers/test_prefab_roundtrip.py:209
Functiontest_identity_policy_forwards_full_implementation
( frontend_mode: str, identity: Literal["proxy", "upstream"] )
tests/server/providers/proxy/test_server_metadata.py:210
Functiontest_idle_session_is_terminated_after_timeout
()
tests/server/http/test_session_idle_timeout.py:41
Methodtest_idp_callback_rejects_missing_consent_cookie
IdP callback must reject requests without the consent binding cookie. This is the core confused deputy scenario: a different browser (the vic
tests/server/auth/test_oauth_consent_page.py:629
Methodtest_idp_callback_rejects_missing_consent_token_on_transaction
IdP callback must reject when transaction has no consent_token set.
tests/server/auth/test_oauth_consent_page.py:680
Methodtest_idp_callback_rejects_wrong_consent_cookie
IdP callback must reject requests with a tampered consent binding cookie.
tests/server/auth/test_oauth_consent_page.py:658
Functiontest_ignore_pattern_matches_remote_namespaced_name_for_hashed_calls
()
tests/cli/test_fastmcp_remote.py:292
Functiontest_ignore_tools_transform_filters_matching_names
()
tests/cli/test_fastmcp_remote.py:248
Functiontest_ignored_tool_is_unknown_by_listed_and_hashed_name
(pattern: str)
tests/cli/test_fastmcp_remote.py:275
Methodtest_ignores_error_responses
Only error responses (no 2xx) results in default.
tests/server/providers/openapi/test_openapi_features.py:530
Methodtest_ignores_non_dict_metadata
(self)
tests/utilities/test_components.py:272
Methodtest_image
(self, tmp_path: Path)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:110
Functiontest_image_content
Returns a PNG image.
tests/conformance/server.py:101
Functiontest_image_content_to_anthropic_block
()
tests/client/sampling/handlers/test_anthropic_handler.py:50
Functiontest_image_content_to_openai_part
()
tests/client/sampling/handlers/test_openai_handler.py:58
Functiontest_image_content_to_openai_part_unsupported_raises
()
tests/client/sampling/handlers/test_openai_handler.py:95
Functiontest_image_content_unsupported_mime_type_raises
()
tests/client/sampling/handlers/test_anthropic_handler.py:65
Methodtest_image_initialization_with_data
Test image initialization with data.
tests/utilities/test_types.py:154
Methodtest_image_initialization_with_format
Test image initialization with a specific format.
tests/utilities/test_types.py:161
Methodtest_image_initialization_with_path
Test image initialization with a path.
tests/utilities/test_types.py:128
Methodtest_image_path_expansion_with_env_var
Test that environment variables are expanded.
tests/utilities/test_types.py:143
Methodtest_image_path_expansion_with_tilde
Test that ~ is expanded to the user's home directory.
tests/utilities/test_types.py:136
Methodtest_image_response
Image content type is correctly extracted.
tests/server/providers/openapi/test_openapi_features.py:469
Methodtest_imperative_elicit_fails_with_guard_guidance
A task=True tool that calls ctx.elicit() errors with guard guidance. The ToolError it raises surfaces as a completed is_error result (like an
tests/tasks/server/test_context_background_task.py:395
Methodtest_import_as_package_with_init
Should import as package when __init__.py exists.
tests/fs/test_discovery.py:126
Methodtest_import_module_with_function
Should import a module with functions.
tests/fs/test_discovery.py:97
Methodtest_import_module_with_imports
Should handle modules with standard library imports.
tests/fs/test_discovery.py:110
Methodtest_import_package_module_reload
Re-importing a package module should return updated content.
tests/fs/test_discovery.py:156
Methodtest_import_server_basic_mcp
Test importing server with basic FastMCP server.
tests/cli/test_run.py:165
Methodtest_import_server_no_standard_names_fails
Test importing server when no standard names exist fails.
tests/cli/test_run.py:260
Methodtest_import_server_nonexistent_object_fails
Test importing nonexistent server object fails.
tests/cli/test_run.py:275
Methodtest_import_server_nonstandard_name
Test importing server with non-standard object name.
tests/cli/test_run.py:241
Methodtest_import_server_standard_names
Test automatic detection of standard names (mcp, server, app).
tests/cli/test_run.py:206
Methodtest_import_server_with_main_block
Test importing server with if __name__ == '__main__' block.
tests/cli/test_run.py:184
Methodtest_import_simple_module
Should import a simple module.
tests/fs/test_discovery.py:89
Methodtest_import_with_relative_import
Should support relative imports when in a package.
tests/fs/test_discovery.py:138
Methodtest_in_memory_storage_does_not_warn
M2M re-acquires tokens cheaply, so no in-memory storage warning.
tests/client/auth/test_client_credentials.py:188
Methodtest_in_memory_storage_option
Test using in-memory storage explicitly.
tests/server/auth/test_oauth_proxy_storage.py:146
Methodtest_in_process_client_inside_tool_can_still_task
(self)
tests/tasks/server/test_task_catalog_transforms.py:192
Functiontest_in_task_input_answered_by_handler_set_after_construction
An elicitation handler set via set_elicitation_callback reaches in-task input. The tasks client extension is built at construction; set_elicitati
tests/tasks/client/test_transparent_tasks.py:216
Functiontest_in_task_input_answered_transparently
A guard task that asks for input is answered via the elicitation handler.
tests/tasks/client/test_transparent_tasks.py:177
Functiontest_in_task_input_without_handler_errors
A guard task with no elicitation handler surfaces a clear error.
tests/tasks/client/test_transparent_tasks.py:190
Methodtest_inactive_token_returns_none
Test that inactive tokens return None.
tests/server/auth/providers/test_introspection.py:145
Methodtest_inactive_tokens_not_cached
Test that inactive tokens are NOT cached (may become valid later).
tests/server/auth/providers/test_introspection.py:698
Methodtest_include_tags_all_prompts
(self)
tests/server/providers/test_local_provider_prompts.py:441
← previousnext →8,601–8,700 of 13,374, ranked by callers