Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Method
test_fallback_defaults_to_one_year
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:510
Method
test_fallback_message_on_failure
(self, mock_print, mock_open)
tests/cli/test_goose.py:261
Method
test_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:389
Method
test_fallback_parameter_defaults_to_none
Verify fallback defaults to None (enabling smart defaults).
tests/server/auth/oauth_proxy/test_tokens.py:472
Method
test_fallback_parameter_stored
Verify fallback_access_token_expiry_seconds is stored on provider.
tests/server/auth/oauth_proxy/test_tokens.py:453
Method
test_fallback_parameter_stored
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:526
Method
test_fallback_skips_unauthorized_picks_next
When multiple fallback candidates exist, skip unauthorized ones.
tests/server/versioning/test_visibility_version_fallback.py:355
Method
test_fallback_to_second_ip
If the first IP fails, the next resolved IP should be tried.
tests/server/auth/test_ssrf_protection.py:262
Method
test_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:165
Method
test_falls_back_for_circular_refs
Test that circular references fall back to resolve_root_ref.
tests/utilities/test_json_schema.py:136
Method
test_falls_back_to_legacy_namespace_when_dict
(self)
tests/utilities/test_components.py:267
Method
test_falls_back_to_verifiers
When server rejects a token, verifiers are tried.
tests/server/auth/test_multi_auth.py:223
Method
test_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
Method
test_falsy_params_dropped
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:106
Function
test_fastapi_body_title_does_not_hide_query_alias
()
tests/server/providers/openapi/test_whole_body_parameter_collisions.py:113
Function
test_fastapi_client_headers_sse_resource
(sse_server: str)
tests/client/test_openapi.py:80
Function
test_fastapi_client_headers_sse_tool
(sse_server: str)
tests/client/test_openapi.py:95
Function
test_fastapi_client_headers_streamable_http_resource
(shttp_server: str)
tests/client/test_openapi.py:72
Function
test_fastapi_client_headers_streamable_http_tool
(shttp_server: str)
tests/client/test_openapi.py:88
Function
test_fastapi_dictionary_body
(labels: dict[str, str])
tests/server/providers/openapi/test_object_request_bodies.py:158
Function
test_fastapi_nested_tuple_schemas
()
tests/server/providers/openapi/test_tuple_schemas.py:62
Function
test_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
Function
test_fastapi_testclient_nested_lifespan
Test that TestClient works with custom combined lifespans and multiple iterations.
tests/server/test_fastapi_testclient_compat.py:41
Function
test_fastapi_tuple_input_schema
()
tests/server/providers/openapi/test_tuple_schemas.py:16
Function
test_fastapi_tuple_output_schema
()
tests/server/providers/openapi/test_tuple_schemas.py:42
Method
test_fastmcp1x_empty_server
Test get_fastmcp_info_v1 with an empty FastMCP1x server.
tests/utilities/test_inspect.py:468
Method
test_fastmcp1x_vs_fastmcp2x_comparison
Test that both versions can be inspected and compared.
tests/utilities/test_inspect.py:570
Method
test_fastmcp1x_with_prompts
Test get_fastmcp_info_v1 with a FastMCP1x server that has prompts.
tests/utilities/test_inspect.py:523
Method
test_fastmcp1x_with_resources
Test get_fastmcp_info_v1 with a FastMCP1x server that has resources.
tests/utilities/test_inspect.py:506
Method
test_fastmcp1x_with_tools
Test get_fastmcp_info_v1 with a FastMCP1x server that has tools.
tests/utilities/test_inspect.py:486
Function
test_fastmcp_imports_without_legacy_httpx
()
tests/test_no_legacy_httpx.py:70
Method
test_fastmcp_info_creation
Test that FastMCPInfo can be created with all required fields.
tests/utilities/test_inspect.py:20
Method
test_fastmcp_info_with_none_instructions
Test that FastMCPInfo works with None instructions.
tests/utilities/test_inspect.py:58
Method
test_fastmcp_init_with_tuples
Test FastMCP accepts tuples for sequence parameters.
tests/server/test_server.py:247
Method
test_fastmcp_meta_optional_fields
Test that FastMCPMeta fields are optional.
tests/utilities/test_components.py:333
Method
test_fastmcp_meta_structure
Test that FastMCPMeta has the expected structure.
tests/utilities/test_components.py:322
Method
test_fastmcp_meta_with_version
Test that FastMCPMeta can include version.
tests/utilities/test_components.py:327
Method
test_fastmcp_not_in_with
(self)
tests/cli/test_goose.py:61
Method
test_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
Function
test_fastmcp_proxy_uses_public_metadata_middleware
()
tests/server/providers/proxy/test_server_metadata.py:628
Function
test_fastmcp_server_import_does_not_load_context
()
tests/server/http/test_startup_imports.py:100
Method
test_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
Method
test_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
Method
test_fastmcp_version_dict_rejected
FastMCP(version={'v': 1}) should raise TypeError.
tests/server/versioning/test_versioning.py:405
Method
test_fastmcp_version_false_rejected
FastMCP(version=False) should raise TypeError, not coerce to 'False'.
tests/server/versioning/test_versioning.py:415
Method
test_fastmcp_version_float_coerced
FastMCP(version=1.5) should coerce to string.
tests/server/versioning/test_versioning.py:377
Method
test_fastmcp_version_int_coerced
FastMCP(version=42) should coerce to string '42'.
tests/server/versioning/test_versioning.py:372
Method
test_fastmcp_version_list_rejected
FastMCP(version=[1, 2]) should raise TypeError.
tests/server/versioning/test_versioning.py:400
Method
test_fastmcp_version_true_rejected
FastMCP(version=True) should raise TypeError, not coerce to 'True'.
tests/server/versioning/test_versioning.py:410
Method
test_fastmcp_works_with_abstract_types
Test that abstract types work end-to-end with a client.
tests/server/test_server.py:265
Method
test_fetch_304_without_cache_headers_preserves_policy
304 responses without cache headers should not reset cached policy.
tests/server/auth/test_cimd.py:443
Method
test_fetch_304_without_cache_headers_refreshes_cached_freshness
A header-less 304 should renew freshness using cached lifetime.
tests/server/auth/test_cimd.py:484
Method
test_fetch_cache_control_max_age
Cache-Control max-age should prevent refetch before expiry.
tests/server/auth/test_cimd.py:287
Method
test_fetch_cache_control_no_cache
Cache-Control no-cache should force revalidation on each fetch.
tests/server/auth/test_cimd.py:406
Method
test_fetch_cache_control_no_store
Cache-Control no-store should prevent storing CIMD documents.
tests/server/auth/test_cimd.py:380
Method
test_fetch_cache_evicts_oldest_document
Distinct client URLs cannot grow the document cache without bound.
tests/server/auth/test_cimd.py:262
Method
test_fetch_client_id_mismatch
Test that client_id mismatch is rejected.
tests/server/auth/test_cimd.py:524
Method
test_fetch_error
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:188
Method
test_fetch_etag_revalidation_304
Expired cache should revalidate with ETag and accept 304.
tests/server/auth/test_cimd.py:309
Method
test_fetch_http_error
Test handling of HTTP errors.
tests/server/auth/test_cimd.py:543
Method
test_fetch_invalid_document
Test handling of invalid CIMD document.
tests/server/auth/test_cimd.py:564
Method
test_fetch_invalid_json
Test handling of invalid JSON response.
tests/server/auth/test_cimd.py:552
Method
test_fetch_invalid_response
Invalid response returns None.
tests/utilities/test_version_check.py:134
Method
test_fetch_last_modified_revalidation_304
Expired cache should revalidate with Last-Modified and accept 304.
tests/server/auth/test_cimd.py:346
Method
test_fetch_network_error
Network error returns None.
tests/utilities/test_version_check.py:128
Method
test_fetch_prereleases
Fetching with prereleases returns highest version.
tests/utilities/test_version_check.py:143
Method
test_fetch_prereleases_stable_is_highest
Prerelease mode still returns stable if it's highest.
tests/utilities/test_version_check.py:160
Method
test_fetch_preserves_request_headers_but_drops_host
Caller headers pass through, but a caller-supplied Host is dropped.
tests/server/auth/test_ssrf_protection.py:755
Method
test_fetch_refuses_end_to_end_when_no_proxy_configured
The refusal surfaces through ssrf_safe_fetch: no client is ever built. The whole point of the hard failure is that the *fetch* cannot proceed
tests/server/auth/test_ssrf_protection.py:647
Method
test_fetch_size_limit_preserved
Proxy mode still enforces the response size limit during streaming.
tests/server/auth/test_ssrf_protection.py:775
Method
test_fetch_status_check_preserved
Proxy mode still rejects non-allowed status codes.
tests/server/auth/test_ssrf_protection.py:788
Method
test_fetch_success
Successful fetch returns highest stable version.
tests/utilities/test_version_check.py:112
Method
test_fetch_success
Test successful CIMD document fetch.
tests/server/auth/test_cimd.py:219
Method
test_fetch_ttl_cache
Test that fetched documents are cached and served from cache within TTL.
tests/server/auth/test_cimd.py:242
Method
test_fetches_if_cache_stale
Fetches from PyPI if cache is stale.
tests/utilities/test_version_check.py:198
Method
test_field_defaults_with_type_conversion
Test Field() defaults work with type conversion for non-string types.
tests/prompts/test_prompt.py:851
Method
test_field_description_takes_precedence
(self)
tests/utilities/test_docstring_parsing.py:365
Method
test_field_metadata_on_none_default_parameter
Annotated metadata stays on the property itself, not a nested branch. Python 3.10's `get_type_hints` wraps `None`-defaulted hints in
tests/tools/tool/test_tool.py:274
Method
test_field_with_default
Test that Field(default=...) correctly provides default values in resource templates.
tests/resources/test_resource_template_query_params.py:336
Method
test_field_with_default
Test that Field(default=...) correctly provides default values.
tests/prompts/test_prompt.py:789
Method
test_field_with_default_accepts_explicit_value
Test that fields with defaults accept explicit values.
tests/utilities/json_schema_type/test_advanced.py:931
Method
test_field_with_default_not_nullable
Test that fields with defaults are not made nullable.
tests/utilities/json_schema_type/test_advanced.py:906
Method
test_field_with_default_preserves_type
Test that fields with defaults preserve their original type.
tests/utilities/json_schema_type/test_advanced.py:894
Method
test_field_with_default_uses_default
Test that fields with defaults use their default values.
tests/utilities/json_schema_type/test_advanced.py:919
Method
test_file
(self, tmp_path: Path)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:149
Method
test_file_initialization_with_data
Test initialization with data and format.
tests/utilities/test_types.py:425
Method
test_file_initialization_with_format
Test file initialization with a specific format.
tests/utilities/test_types.py:435
Method
test_file_initialization_with_name
Test file initialization with a custom name.
tests/utilities/test_types.py:440
Method
test_file_initialization_with_path
Test file initialization with a path.
tests/utilities/test_types.py:399
Method
test_file_is_executable
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:638
Method
test_file_path
(self)
tests/cli/test_client_commands.py:353
Method
test_file_path_expansion_with_env_var
Test that environment variables are expanded.
tests/utilities/test_types.py:414
Method
test_file_path_expansion_with_tilde
Test that ~ is expanded to the user's home directory.
tests/utilities/test_types.py:407
Method
test_file_ref_not_fetched
(self)
tests/utilities/test_json_schema.py:1204
Method
test_file_resource_creation
Test creating a FileResource.
tests/resources/test_file_resources.py:33
Method
test_file_resource_read_allows_nested_path
(self, skill_with_secret: Path)
tests/server/providers/test_skills_provider.py:1002
Method
test_file_resource_read_rejects_escape
( self, skill_with_secret: Path, attack: str )
tests/server/providers/test_skills_provider.py:974
Method
test_file_resource_str_path_conversion
Test FileResource handles string paths.
tests/resources/test_file_resources.py:48
Method
test_files_have_size_and_hash
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:181
Method
test_filesystem_provider_forwards_timeout
Filesystem discovery forwards `timeout` from ToolMeta. Previously dropped, which let sync tools discovered via the filesystem bypass
tests/tools/test_tool_run_in_thread.py:251
← previous
next →
8,101–8,200 of 13,374, ranked by callers