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_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
Method
test_filesystem_source_entrypoint
Test FileSystemSource entrypoint format.
tests/cli/test_config.py:39
Method
test_filesystem_source_prepare_by_default
Test that FileSystemSource is prepared when using direct file spec.
tests/cli/test_run.py:561
Method
test_filesystem_source_skip_prepare_with_flag
Test that FileSystemSource.prepare() is skipped with skip_source flag.
tests/cli/test_run.py:590
Function
test_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
Method
test_filtering_pattern
Common pattern: filter list with is_enabled.
tests/server/transforms/test_visibility.py:169
Method
test_filters_non_skill_resources
(self)
tests/utilities/test_skills.py:138
Function
test_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
Function
test_find_available_port_returns_bindable_loopback_port
()
tests/utilities/test_http.py:8
Method
test_find_config_in_current_dir
Test finding config in current directory.
tests/cli/test_config.py:350
Method
test_find_config_in_specified_dir
Test finding config in the specified directory.
tests/cli/test_config.py:375
Method
test_find_config_not_found
Test when config is not found.
tests/cli/test_config.py:384
Method
test_find_config_not_in_parent_dir
Test that config is NOT found in parent directory.
tests/cli/test_config.py:363
Method
test_finds_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:216
Method
test_finds_config
(self, tmp_path: Path)
tests/cli/test_discovery.py:429
Method
test_finds_config_in_cwd
(self, tmp_path: Path)
tests/cli/test_discovery.py:391
Method
test_finds_config_in_parent
(self, tmp_path: Path)
tests/cli/test_discovery.py:398
Method
test_finds_stdio_extensions
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:518
Function
test_first_delay_is_the_floor
()
tests/tasks/client/test_poll_interval.py:58
Method
test_first_page_no_cursor
First page should start from beginning.
tests/server/test_pagination.py:75
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_flag_defaults_to_false
The trust-proxy flag must be off by default (no silent weakening).
tests/server/auth/test_ssrf_protection.py:598
Method
test_float_coercion
Test float type coercion for query parameters.
tests/resources/test_resource_template_query_params.py:112
Method
test_float_count_does_not_poison_a_later_int_count
(self)
tests/utilities/json_schema_type/test_constraints.py:211
Method
test_fn_returns_assistant_message
(self)
tests/prompts/test_prompt.py:74
Method
test_fn_returns_list_of_strings
(self)
tests/prompts/test_prompt.py:96
Method
test_fn_returns_message_list
(self)
tests/prompts/test_prompt.py:66
Method
test_fn_returns_message_with_resource
Test returning a message with resource content.
tests/prompts/test_prompt.py:181
Method
test_fn_returns_mixed_content
Test returning messages with mixed content types.
tests/prompts/test_prompt.py:143
Method
test_fn_returns_multiple_messages
(self)
tests/prompts/test_prompt.py:82
Method
test_fn_returns_resource_content
Test returning a message with resource content.
tests/prompts/test_prompt.py:109
Method
test_fn_with_args
(self)
tests/prompts/test_prompt.py:32
Method
test_fn_with_invalid_kwargs
(self)
tests/prompts/test_prompt.py:58
Function
test_fn_with_kwargs_dropped_args_not_in_kwargs
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:501
Function
test_fn_with_kwargs_handles_partial_explicit_args
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:466
Function
test_fn_with_kwargs_mixed_mapped_and_unmapped_args
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:484
Function
test_fn_with_kwargs_passes_through_original_args
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:430
Function
test_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
Method
test_follows_alias_chain_to_object_definition
( self, defs_key: str, pointers: list[str] )
tests/utilities/test_json_schema.py:1050
Method
test_forbidden_disable_prompt
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:385
Method
test_forbidden_disable_resource
(self)
tests/contrib/test_component_manager.py:556
Method
test_forbidden_enable_prompt
(self)
tests/contrib/test_component_manager.py:588
Method
test_forbidden_enable_resource
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:321
Method
test_forbidden_enable_tool
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:282
Method
test_forbidden_enable_tool
(self)
tests/contrib/test_component_manager.py:523
Method
test_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
Method
test_forbidden_mode_sync_through_mount
(self, parent_with_modes)
tests/tasks/server/test_task_mount.py:458
Method
test_forbidden_tool_has_no_execution
Tools with mode=forbidden do not expose execution metadata.
tests/tasks/server/test_task_config.py:246
Function
test_forbidden_tool_never_tasks_even_with_opt_in
()
tests/tasks/server/test_extension.py:128
Function
test_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
Function
test_force_close_cancelled_wait_starts_fresh_session
(fastmcp_server)
tests/client/client/test_client.py:591
Method
test_force_overwrites
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:626
Method
test_force_overwrites_skill
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:677
Function
test_foreground_tool_dependencies_unaffected
Synchronous tools still get their dependencies as before.
tests/tasks/server/test_task_dependencies.py:148
Method
test_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
Method
test_form_submits_original_property_names
(self, name: str, field_name: str)
tests/cli/test_apps_dev_server.py:609
Method
test_form_urlencoded_not_sent_as_json
application/x-www-form-urlencoded bodies should use httpx data=.
tests/utilities/openapi/test_director.py:1337
Method
test_format_and_parse
(self)
tests/server/providers/test_addressing.py:38
Method
test_format_and_parse
(self)
tests/server/providers/test_addressing.py:57
Method
test_format_fastmcp_info
Test formatting as FastMCP-specific JSON.
tests/utilities/test_inspect_icons.py:366
Function
test_format_host_for_url
IPv6 hosts are bracketed for use in a URL; everything else is unchanged.
tests/server/test_transport.py:21
Method
test_format_info_requires_format
Test that format_info requires a format parameter.
tests/utilities/test_inspect_icons.py:488
Method
test_format_info_with_fastmcp_format
Test format_info with fastmcp format.
tests/utilities/test_inspect_icons.py:450
Method
test_format_info_with_mcp_format
Test format_info with mcp format.
tests/utilities/test_inspect_icons.py:471
Method
test_format_invalid_email
(self, union_with_formats)
tests/utilities/json_schema_type/test_unions.py:103
Method
test_format_ip_for_url_invalid
Invalid IP strings should be returned unchanged.
tests/server/auth/test_ssrf_protection.py:449
Method
test_format_ip_for_url_ipv4
IPv4 addresses should not be bracketed.
tests/server/auth/test_ssrf_protection.py:434
Method
test_format_ip_for_url_ipv6
IPv6 addresses should be bracketed for URL use.
tests/server/auth/test_ssrf_protection.py:441
Method
test_format_mcp_info
Test formatting as MCP protocol JSON.
tests/utilities/test_inspect_icons.py:401
Method
test_format_message
Test message formatting.
tests/server/middleware/test_logging.py:233
Method
test_format_valid_email
(self, union_with_formats)
tests/utilities/json_schema_type/test_unions.py:94
Method
test_format_valid_null
(self, union_with_formats)
tests/utilities/json_schema_type/test_unions.py:99
Method
test_format_without_constraints_is_unchanged
(self)
tests/utilities/json_schema_type/test_constraints.py:173
Method
test_forward_error_response
Test that the proxy client correctly forwards an error response.
tests/server/providers/proxy/test_proxy_client.py:172
Method
test_forward_list_roots_request
Test that the proxy client correctly forwards the `list_roots` request.
tests/server/providers/proxy/test_proxy_client.py:180
Method
test_forward_list_roots_response
Test that the proxy client correctly forwards the `list_roots` response.
tests/server/providers/proxy/test_proxy_client.py:196
Function
test_forward_outside_context_raises_error
Test that forward() raises error when called outside transform context.
tests/tools/tool_transform/test_tool_transform.py:523
Function
test_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
Function
test_forward_raw_without_argument_mapping
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:403
Method
test_forward_sampling_request
Test that the proxy client correctly forwards the `sampling` request.
tests/server/providers/proxy/test_proxy_client.py:206
Method
test_forward_sampling_response
Test that the proxy client correctly forwards the `sampling` response.
tests/server/providers/proxy/test_proxy_client.py:240
Method
test_forward_tool_meta
Test that the proxy client correctly forwards the `echo` tool meta.
tests/server/providers/proxy/test_proxy_client.py:163
Function
test_forward_with_argument_mapping
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:367
Function
test_forward_with_incorrect_args_raises_error
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:384
Function
test_forwarded_metadata_does_not_alias_connected_backend
(mode: str)
tests/server/providers/proxy/test_server_metadata.py:396
Function
test_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
Method
test_forwards_authorization_server_metadata
( self, valid_oidc_configuration_dict, monkeypatch )
tests/server/auth/providers/test_auth0_mcp.py:239
Function
test_forwards_backend_logs_while_reading_metadata
()
tests/server/providers/proxy/test_server_metadata.py:250
Method
test_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
Method
test_forwards_extra_args
Test that extra arguments are forwarded after the module name.
tests/cli/test_run.py:737
Function
test_forwards_metadata_across_all_protocol_era_combinations
( frontend_mode: str, backend_mode: str )
tests/server/providers/proxy/test_server_metadata.py:174
Method
test_four_level_nested_tool_invocation
Test invoking tools from servers mounted 4 levels deep.
tests/server/mount/test_advanced.py:358
Method
test_frame_domains_reach_resource
(self)
tests/server/providers/test_prefab_synthesis.py:23
← previous
next →
8,201–8,300 of 13,374, ranked by callers