MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

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:561
Methodtest_filesystem_source_skip_prepare_with_flag
Test that FileSystemSource.prepare() is skipped with skip_source flag.
tests/cli/test_run.py:590
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:369
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:138
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:350
Methodtest_find_config_in_specified_dir
Test finding config in the specified directory.
tests/cli/test_config.py:375
Methodtest_find_config_not_found
Test when config is not found.
tests/cli/test_config.py:384
Methodtest_find_config_not_in_parent_dir
Test that config is NOT found in parent directory.
tests/cli/test_config.py:363
Methodtest_finds_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:216
Methodtest_finds_config
(self, tmp_path: Path)
tests/cli/test_discovery.py:429
Methodtest_finds_config_in_cwd
(self, tmp_path: Path)
tests/cli/test_discovery.py:391
Methodtest_finds_config_in_parent
(self, tmp_path: Path)
tests/cli/test_discovery.py:398
Methodtest_finds_stdio_extensions
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:518
Functiontest_first_delay_is_the_floor
()
tests/tasks/client/test_poll_interval.py:58
Methodtest_first_page_no_cursor
First page should start from beginning.
tests/server/test_pagination.py:75
Methodtest_first_server_wins_prompts_no_prefix
Test that first mounted server wins for prompts when no prefix is used.
tests/server/mount/test_mount.py:486
Methodtest_first_server_wins_prompts_same_prefix
Test that first mounted server wins for prompts when same prefix is used.
tests/server/mount/test_mount.py:515
Methodtest_first_server_wins_resource_templates_no_prefix
Test that first mounted server wins for resource templates when no prefix is used.
tests/server/mount/test_mount.py:432
Methodtest_first_server_wins_resource_templates_same_prefix
Test that first mounted server wins for resource templates when same prefix is used.
tests/server/mount/test_mount.py:459
Methodtest_first_server_wins_resources_no_prefix
Test that first mounted server wins for resources when no prefix is used.
tests/server/mount/test_mount.py:378
Methodtest_first_server_wins_resources_same_prefix
Test that first mounted server wins for resources when same prefix is used.
tests/server/mount/test_mount.py:405
Methodtest_first_server_wins_tools_no_prefix
Test that first mounted server wins for tools when no prefix is used.
tests/server/mount/test_mount.py:324
Methodtest_first_server_wins_tools_same_prefix
Test that first mounted server wins for tools when same prefix is used.
tests/server/mount/test_mount.py:351
Methodtest_flag_defaults_to_false
The trust-proxy flag must be off by default (no silent weakening).
tests/server/auth/test_ssrf_protection.py:598
Methodtest_float_coercion
Test float type coercion for query parameters.
tests/resources/test_resource_template_query_params.py:112
Methodtest_float_count_does_not_poison_a_later_int_count
(self)
tests/utilities/json_schema_type/test_constraints.py:211
Methodtest_fn_returns_assistant_message
(self)
tests/prompts/test_prompt.py:74
Methodtest_fn_returns_list_of_strings
(self)
tests/prompts/test_prompt.py:96
Methodtest_fn_returns_message_list
(self)
tests/prompts/test_prompt.py:66
Methodtest_fn_returns_message_with_resource
Test returning a message with resource content.
tests/prompts/test_prompt.py:181
Methodtest_fn_returns_mixed_content
Test returning messages with mixed content types.
tests/prompts/test_prompt.py:143
Methodtest_fn_returns_multiple_messages
(self)
tests/prompts/test_prompt.py:82
Methodtest_fn_returns_resource_content
Test returning a message with resource content.
tests/prompts/test_prompt.py:109
Methodtest_fn_with_args
(self)
tests/prompts/test_prompt.py:32
Methodtest_fn_with_invalid_kwargs
(self)
tests/prompts/test_prompt.py:58
Functiontest_fn_with_kwargs_dropped_args_not_in_kwargs
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:501
Functiontest_fn_with_kwargs_handles_partial_explicit_args
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:466
Functiontest_fn_with_kwargs_mixed_mapped_and_unmapped_args
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:484
Functiontest_fn_with_kwargs_passes_through_original_args
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:430
Functiontest_fn_with_kwargs_receives_transformed_arg_names
Test that **kwargs receives arguments with their transformed names from transform_args.
tests/tools/tool_transform/test_tool_transform.py:446
Methodtest_follows_alias_chain_to_object_definition
( self, defs_key: str, pointers: list[str] )
tests/utilities/test_json_schema.py:1050
Methodtest_forbidden_disable_prompt
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:385
Methodtest_forbidden_disable_resource
(self)
tests/contrib/test_component_manager.py:556
Methodtest_forbidden_enable_prompt
(self)
tests/contrib/test_component_manager.py:588
Methodtest_forbidden_enable_resource
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:321
Methodtest_forbidden_enable_tool
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:282
Methodtest_forbidden_enable_tool
(self)
tests/contrib/test_component_manager.py:523
Methodtest_forbidden_mode_never_tasks_even_with_opt_in
Forbidden mode runs synchronously even when the caller opts in.
tests/tasks/server/test_task_config.py:183
Methodtest_forbidden_mode_sync_through_mount
(self, parent_with_modes)
tests/tasks/server/test_task_mount.py:458
Methodtest_forbidden_tool_has_no_execution
Tools with mode=forbidden do not expose execution metadata.
tests/tasks/server/test_task_config.py:246
Functiontest_forbidden_tool_never_tasks_even_with_opt_in
()
tests/tasks/server/test_extension.py:128
Functiontest_forbidden_tool_runs_sync_even_with_opt_in
A task=False tool runs synchronously even when the caller opts into tasks.
tests/tasks/server/test_task_tools.py:244
Functiontest_force_close_cancelled_wait_starts_fresh_session
(fastmcp_server)
tests/client/client/test_client.py:591
Methodtest_force_overwrites
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:626
Methodtest_force_overwrites_skill
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:677
Functiontest_foreground_tool_dependencies_unaffected
Synchronous tools still get their dependencies as before.
tests/tasks/server/test_task_dependencies.py:148
Methodtest_forged_token_still_rejected_without_cookie
Keeping older tokens valid must not weaken the double-submit check. An attacker who renders the consent page for a transaction they started
tests/server/auth/test_oauth_consent_flow.py:627
Methodtest_form_submits_original_property_names
(self, name: str, field_name: str)
tests/cli/test_apps_dev_server.py:609
Methodtest_form_urlencoded_not_sent_as_json
application/x-www-form-urlencoded bodies should use httpx data=.
tests/utilities/openapi/test_director.py:1337
Methodtest_format_and_parse
(self)
tests/server/providers/test_addressing.py:38
Methodtest_format_and_parse
(self)
tests/server/providers/test_addressing.py:57
Methodtest_format_fastmcp_info
Test formatting as FastMCP-specific JSON.
tests/utilities/test_inspect_icons.py:366
Functiontest_format_host_for_url
IPv6 hosts are bracketed for use in a URL; everything else is unchanged.
tests/server/test_transport.py:21
Methodtest_format_info_requires_format
Test that format_info requires a format parameter.
tests/utilities/test_inspect_icons.py:488
Methodtest_format_info_with_fastmcp_format
Test format_info with fastmcp format.
tests/utilities/test_inspect_icons.py:450
Methodtest_format_info_with_mcp_format
Test format_info with mcp format.
tests/utilities/test_inspect_icons.py:471
Methodtest_format_invalid_email
(self, union_with_formats)
tests/utilities/json_schema_type/test_unions.py:103
Methodtest_format_ip_for_url_invalid
Invalid IP strings should be returned unchanged.
tests/server/auth/test_ssrf_protection.py:449
Methodtest_format_ip_for_url_ipv4
IPv4 addresses should not be bracketed.
tests/server/auth/test_ssrf_protection.py:434
Methodtest_format_ip_for_url_ipv6
IPv6 addresses should be bracketed for URL use.
tests/server/auth/test_ssrf_protection.py:441
Methodtest_format_mcp_info
Test formatting as MCP protocol JSON.
tests/utilities/test_inspect_icons.py:401
Methodtest_format_message
Test message formatting.
tests/server/middleware/test_logging.py:233
Methodtest_format_valid_email
(self, union_with_formats)
tests/utilities/json_schema_type/test_unions.py:94
Methodtest_format_valid_null
(self, union_with_formats)
tests/utilities/json_schema_type/test_unions.py:99
Methodtest_format_without_constraints_is_unchanged
(self)
tests/utilities/json_schema_type/test_constraints.py:173
Methodtest_forward_error_response
Test that the proxy client correctly forwards an error response.
tests/server/providers/proxy/test_proxy_client.py:172
Methodtest_forward_list_roots_request
Test that the proxy client correctly forwards the `list_roots` request.
tests/server/providers/proxy/test_proxy_client.py:180
Methodtest_forward_list_roots_response
Test that the proxy client correctly forwards the `list_roots` response.
tests/server/providers/proxy/test_proxy_client.py:196
Functiontest_forward_outside_context_raises_error
Test that forward() raises error when called outside transform context.
tests/tools/tool_transform/test_tool_transform.py:523
Functiontest_forward_raw_outside_context_raises_error
Test that forward_raw() raises error when called outside transform context.
tests/tools/tool_transform/test_tool_transform.py:529
Functiontest_forward_raw_without_argument_mapping
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:403
Methodtest_forward_sampling_request
Test that the proxy client correctly forwards the `sampling` request.
tests/server/providers/proxy/test_proxy_client.py:206
Methodtest_forward_sampling_response
Test that the proxy client correctly forwards the `sampling` response.
tests/server/providers/proxy/test_proxy_client.py:240
Methodtest_forward_tool_meta
Test that the proxy client correctly forwards the `echo` tool meta.
tests/server/providers/proxy/test_proxy_client.py:163
Functiontest_forward_with_argument_mapping
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:367
Functiontest_forward_with_incorrect_args_raises_error
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:384
Functiontest_forwarded_metadata_does_not_alias_connected_backend
(mode: str)
tests/server/providers/proxy/test_server_metadata.py:396
Functiontest_forwarded_tool_meta_stays_hop_safe
( front_mode: str, backend_mode: str, backend_is_modern: bool, client_class: type[Client], )
tests/server/providers/proxy/test_proxy_request_meta.py:125
Methodtest_forwards_authorization_server_metadata
( self, valid_oidc_configuration_dict, monkeypatch )
tests/server/auth/providers/test_auth0_mcp.py:239
Functiontest_forwards_backend_logs_while_reading_metadata
()
tests/server/providers/proxy/test_server_metadata.py:250
Methodtest_forwards_chunks_as_the_app_produces_them
The bridge must stream, not buffer: chunks arrive before the app finishes.
tests/utilities/test_asgi_transport.py:38
Methodtest_forwards_extra_args
Test that extra arguments are forwarded after the module name.
tests/cli/test_run.py:737
Functiontest_forwards_metadata_across_all_protocol_era_combinations
( frontend_mode: str, backend_mode: str )
tests/server/providers/proxy/test_server_metadata.py:174
Methodtest_four_level_nested_tool_invocation
Test invoking tools from servers mounted 4 levels deep.
tests/server/mount/test_advanced.py:358
Methodtest_frame_domains_reach_resource
(self)
tests/server/providers/test_prefab_synthesis.py:23
← previousnext →8,201–8,300 of 13,374, ranked by callers