MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

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
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
Methodtest_fastmcp_works_with_abstract_types
Test that abstract types work end-to-end with a client.
tests/server/test_server.py:265
Methodtest_fetch_304_without_cache_headers_preserves_policy
304 responses without cache headers should not reset cached policy.
tests/server/auth/test_cimd.py:464
Methodtest_fetch_304_without_cache_headers_refreshes_cached_freshness
A header-less 304 should renew freshness using cached lifetime.
tests/server/auth/test_cimd.py:505
Methodtest_fetch_cache_control_max_age
Cache-Control max-age should prevent refetch before expiry.
tests/server/auth/test_cimd.py:308
Methodtest_fetch_cache_control_no_cache
Cache-Control no-cache should force revalidation on each fetch.
tests/server/auth/test_cimd.py:427
Methodtest_fetch_cache_control_no_store
Cache-Control no-store should prevent storing CIMD documents.
tests/server/auth/test_cimd.py:401
Methodtest_fetch_cache_evicts_oldest_document
Distinct client URLs cannot grow the document cache without bound.
tests/server/auth/test_cimd.py:283
Methodtest_fetch_client_id_mismatch
Test that client_id mismatch is rejected.
tests/server/auth/test_cimd.py:545
Methodtest_fetch_error
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:188
Methodtest_fetch_etag_revalidation_304
Expired cache should revalidate with ETag and accept 304.
tests/server/auth/test_cimd.py:330
Methodtest_fetch_http_error
Test handling of HTTP errors.
tests/server/auth/test_cimd.py:564
Methodtest_fetch_invalid_document
Test handling of invalid CIMD document.
tests/server/auth/test_cimd.py:585
Methodtest_fetch_invalid_json
Test handling of invalid JSON response.
tests/server/auth/test_cimd.py:573
Methodtest_fetch_invalid_response
Invalid response returns None.
tests/utilities/test_version_check.py:139
Methodtest_fetch_invalid_url
Invalid URL errors during client setup return None (#5638).
tests/utilities/test_version_check.py:134
Methodtest_fetch_last_modified_revalidation_304
Expired cache should revalidate with Last-Modified and accept 304.
tests/server/auth/test_cimd.py:367
Methodtest_fetch_network_error
Network error returns None.
tests/utilities/test_version_check.py:128
Methodtest_fetch_prereleases
Fetching with prereleases returns highest version.
tests/utilities/test_version_check.py:148
Methodtest_fetch_prereleases_stable_is_highest
Prerelease mode still returns stable if it's highest.
tests/utilities/test_version_check.py:165
Methodtest_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:798
Methodtest_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:690
Methodtest_fetch_size_limit_preserved
Proxy mode still enforces the response size limit during streaming.
tests/server/auth/test_ssrf_protection.py:818
Methodtest_fetch_status_check_preserved
Proxy mode still rejects non-allowed status codes.
tests/server/auth/test_ssrf_protection.py:831
Methodtest_fetch_success
Successful fetch returns highest stable version.
tests/utilities/test_version_check.py:112
Methodtest_fetch_success
Test successful CIMD document fetch.
tests/server/auth/test_cimd.py:240
Methodtest_fetch_ttl_cache
Test that fetched documents are cached and served from cache within TTL.
tests/server/auth/test_cimd.py:263
Methodtest_fetches_if_cache_stale
Fetches from PyPI if cache is stale.
tests/utilities/test_version_check.py:203
Methodtest_field_alias_for_path_parameter
(self)
tests/resources/test_resource_template.py:1373
Methodtest_field_alias_for_query_parameter
(self)
tests/resources/test_resource_template.py:1386
Methodtest_field_defaults_with_type_conversion
Test Field() defaults work with type conversion for non-string types.
tests/prompts/test_prompt.py:986
Methodtest_field_description_takes_precedence
(self)
tests/utilities/test_docstring_parsing.py:476
Methodtest_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:276
Methodtest_field_prompt_is_printed_verbatim
( self, field_name: str, field_type: str, capsys: pytest.CaptureFixture[str] )
tests/cli/test_client_commands.py:1198
Methodtest_field_with_default
Test that Field(default=...) correctly provides default values in resource templates.
tests/resources/test_resource_template_query_params.py:426
Methodtest_field_with_default
Test that Field(default=...) correctly provides default values.
tests/prompts/test_prompt.py:924
Methodtest_field_with_default_accepts_explicit_value
Test that fields with defaults accept explicit values.
tests/utilities/json_schema_type/test_advanced.py:1570
Methodtest_field_with_default_not_nullable
Test that fields with defaults are not made nullable.
tests/utilities/json_schema_type/test_advanced.py:1545
Methodtest_field_with_default_preserves_type
Test that fields with defaults preserve their original type.
tests/utilities/json_schema_type/test_advanced.py:1533
Methodtest_field_with_default_uses_default
Test that fields with defaults use their default values.
tests/utilities/json_schema_type/test_advanced.py:1558
Methodtest_file
(self, tmp_path: Path)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:149
Methodtest_file_initialization_with_data
Test initialization with data and format.
tests/utilities/test_types.py:466
Methodtest_file_initialization_with_format
Test file initialization with a specific format.
tests/utilities/test_types.py:476
Methodtest_file_initialization_with_name
Test file initialization with a custom name.
tests/utilities/test_types.py:506
Methodtest_file_initialization_with_path
Test file initialization with a path.
tests/utilities/test_types.py:440
Methodtest_file_is_executable
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:656
Methodtest_file_path
(self)
tests/cli/test_client_commands.py:543
Methodtest_file_path_expansion_with_env_var
Test that environment variables are expanded.
tests/utilities/test_types.py:455
Methodtest_file_path_expansion_with_tilde
Test that ~ is expanded to the user's home directory.
tests/utilities/test_types.py:448
Methodtest_file_ref_not_fetched
(self)
tests/utilities/test_json_schema.py:1399
Methodtest_file_resource_creation
Test creating a FileResource.
tests/resources/test_file_resources.py:33
Methodtest_file_resource_read_allows_nested_path
(self, skill_with_secret: Path)
tests/server/providers/test_skills_provider.py:1116
Methodtest_file_resource_read_rejects_escape
( self, skill_with_secret: Path, attack: str )
tests/server/providers/test_skills_provider.py:1088
Methodtest_file_resource_str_path_conversion
Test FileResource handles string paths.
tests/resources/test_file_resources.py:48
Functiontest_file_served_by_another_provider_hides_skill
()
tests/server/providers/proxy/test_skills.py:272
Functiontest_files_behind_a_backend_template_are_checked_without_reads
()
tests/server/providers/proxy/test_skills.py:83
Methodtest_files_have_size_and_hash
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:207
Methodtest_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
Methodtest_filesystem_provider_respects_run_in_thread
Tools discovered by FileSystemProvider honor run_in_thread=False. FileSystemProvider extends LocalProvider and registers filesystem-
tests/tools/test_tool_run_in_thread.py:226
Methodtest_filesystem_source_entrypoint
Test FileSystemSource entrypoint format.
tests/cli/test_config.py:39
Methodtest_filesystem_source_prepare_by_default
Test that FileSystemSource is prepared when using direct file spec.
tests/cli/test_run.py:772
Methodtest_filesystem_source_skip_prepare_with_flag
Test that FileSystemSource.prepare() is skipped with skip_source flag.
tests/cli/test_run.py:801
Functiontest_filtered_attributes_are_not_restored
Regression: a sampler that intentionally supplies only its own attributes (e.g. to strip component names or resource URIs for privacy or cardi
tests/telemetry/test_span_attributes.py:373
Methodtest_filtering_pattern
Common pattern: filter list with is_enabled.
tests/server/transforms/test_visibility.py:169
Methodtest_filters_non_skill_resources
(self)
tests/utilities/test_skills.py:164
Functiontest_final_answer_keeps_task_parked_until_next_leg_is_durable
The last answer must not retire its outstanding marker early. Outstanding requests are what make a completed-but-parked leg read as `input_re
tests/tasks/server/test_guard_reentrant.py:388
Functiontest_find_available_port_returns_bindable_loopback_port
()
tests/utilities/test_http.py:8
Methodtest_find_config_in_current_dir
Test finding config in current directory.
tests/cli/test_config.py:401
Methodtest_find_config_in_specified_dir
Test finding config in the specified directory.
tests/cli/test_config.py:426
Methodtest_find_config_not_found
Test when config is not found.
tests/cli/test_config.py:435
Methodtest_find_config_not_in_parent_dir
Test that config is NOT found in parent directory.
tests/cli/test_config.py:414
← previousnext →10,201–10,300 of 16,725, ranked by callers