Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Method
test_forbidden_disable_prompt
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:437
Method
test_forbidden_disable_resource
(self)
tests/contrib/test_component_manager.py:608
Method
test_forbidden_enable_prompt
(self)
tests/contrib/test_component_manager.py:640
Method
test_forbidden_enable_resource
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:373
Method
test_forbidden_enable_tool
Test that requests with insufficient scopes are rejected.
tests/contrib/test_component_manager.py:334
Method
test_forbidden_enable_tool
(self)
tests/contrib/test_component_manager.py:575
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:326
Function
test_force_close_cancelled_wait_starts_fresh_session
(fastmcp_server)
tests/client/client/test_client.py:648
Method
test_force_overwrites
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:644
Method
test_force_overwrites_skill
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:736
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:677
Function
test_form_urlencoded_additional_properties_objects_are_json_encoded
Object map values from additionalProperties are JSON-encoded.
tests/server/providers/openapi/test_object_request_bodies.py:560
Method
test_form_urlencoded_allof_additional_properties_json_encoded
allOf-wrapped additionalProperties schemas drive JSON encoding.
tests/utilities/openapi/test_director.py:1462
Function
test_form_urlencoded_array_of_objects_is_json_encoded
()
tests/server/providers/openapi/test_object_request_bodies.py:342
Function
test_form_urlencoded_cyclic_component_graph_is_serialized
Mutually recursive composition refs terminate instead of recursing.
tests/server/providers/openapi/test_object_request_bodies.py:534
Function
test_form_urlencoded_explicit_json_encoding_is_honored
An explicit encoding contentType overrides the default serialization.
tests/server/providers/openapi/test_object_request_bodies.py:369
Method
test_form_urlencoded_not_sent_as_json
application/x-www-form-urlencoded bodies should use httpx data=.
tests/utilities/openapi/test_director.py:1346
Function
test_form_urlencoded_nullable_array_of_objects_is_json_encoded
Nullable/composed array schemas still identify arrays of objects.
tests/server/providers/openapi/test_object_request_bodies.py:472
Function
test_form_urlencoded_object_property_encodes_nested_null
Nested None inside a JSON-encoded object becomes JSON null.
tests/server/providers/openapi/test_object_request_bodies.py:317
Function
test_form_urlencoded_object_property_is_json_encoded
Object properties default to contentType application/json in OAS.
tests/server/providers/openapi/test_object_request_bodies.py:278
Function
test_form_urlencoded_ref_to_nullable_array_of_objects_is_json_encoded
A `$ref` resolving to a nullable array of objects is JSON-encoded.
tests/server/providers/openapi/test_object_request_bodies.py:485
Function
test_form_urlencoded_union_array_uses_matching_branch
Runtime items choose the union branch instead of any alternative.
tests/server/providers/openapi/test_object_request_bodies.py:513
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:62
Function
test_format_and_unconfirmed_duplicates_do_not_dismiss_assigned_work
( ranking_module, label, public )
tests/test_issue_ranking.py:110
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:472
Method
test_format_ip_for_url_ipv4
IPv4 addresses should not be bracketed.
tests/server/auth/test_ssrf_protection.py:457
Method
test_format_ip_for_url_ipv6
IPv6 addresses should be bracketed for URL use.
tests/server/auth/test_ssrf_protection.py:464
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:273
Method
test_formats_hydrate_inside_collections
(self)
tests/client/test_result_hydration.py:206
Method
test_forward_error_response
Test that the proxy client correctly forwards an error response.
tests/server/providers/proxy/test_proxy_client.py:224
Method
test_forward_list_changed_notifications
(self, proxy_server: FastMCP)
tests/server/providers/proxy/test_proxy_client.py:513
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:232
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:248
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:643
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:649
Function
test_forward_raw_without_argument_mapping
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:523
Method
test_forward_sampling_request
Test that the proxy client correctly forwards the `sampling` request.
tests/server/providers/proxy/test_proxy_client.py:258
Method
test_forward_sampling_response
Test that the proxy client correctly forwards the `sampling` response.
tests/server/providers/proxy/test_proxy_client.py:295
Method
test_forward_sampling_response_unchanged
The backend receives the client's sampling result as the client sent it: its model, stop reason and content, not a text-only placehol
tests/server/providers/proxy/test_proxy_client.py:313
Method
test_forward_tool_meta
Test that the proxy client correctly forwards the `echo` tool meta.
tests/server/providers/proxy/test_proxy_client.py:215
Method
test_forward_uri_keeps_literal_when_unresolved
(self)
tests/resources/test_resource_template.py:2054
Method
test_forward_uri_resolves_sanitized_keys
(self)
tests/resources/test_resource_template.py:2048
Function
test_forward_with_argument_mapping
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:487
Function
test_forward_with_incorrect_args_raises_error
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:504
Function
test_forwarded_metadata_does_not_alias_connected_backend
(mode: str)
tests/server/providers/proxy/test_server_metadata.py:399
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:253
Function
test_forwards_backend_skills_without_reading_files
()
tests/server/providers/proxy/test_skills.py:65
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:948
Function
test_forwards_metadata_across_all_protocol_era_combinations
( frontend_mode: str, backend_mode: str )
tests/server/providers/proxy/test_server_metadata.py:177
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_fragment_after_path_param_and_query
(self)
tests/resources/test_resource_template.py:1084
Method
test_fragment_does_not_prevent_match
(self)
tests/resources/test_resource_template.py:1070
Method
test_frame_domains_reach_resource
(self)
tests/server/providers/test_prefab_synthesis.py:28
Method
test_from_app_config_resource_fields_only
(self)
tests/test_apps.py:200
Method
test_from_app_config_with_tool_fields
(self)
tests/test_apps.py:194
Function
test_from_config_applies_entry_timeout
( mode: str, timeout: int | None )
tests/client/group/test_client_group.py:587
Function
test_from_config_applies_mode_per_server
()
tests/client/group/test_client_group.py:100
Function
test_from_directory_checks_limits_before_reading_files
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, limit: str )
tests/skills/test_skill.py:125
Function
test_from_directory_rejects_symlinks
(tmp_path: Path)
tests/skills/test_skill.py:149
Function
test_from_directory_requires_matching_name
(tmp_path: Path)
tests/skills/test_skill.py:117
Function
test_from_directory_snapshots_exact_bytes
(tmp_path: Path)
tests/skills/test_skill.py:104
Method
test_from_file
Test loading config from JSON file with nested structure.
tests/cli/test_config.py:285
Method
test_from_file_preserves_absolute_paths
(self, tmp_path)
tests/cli/test_config.py:383
Method
test_from_file_resolves_paths_from_config_directory
( self, tmp_path, monkeypatch, source )
tests/cli/test_config.py:357
Method
test_from_file_with_string_entrypoint
Test loading config with dict source format.
tests/cli/test_config.py:308
Function
test_from_files_accepts_structured_metadata_and_tool_lists
( caplog: pytest.LogCaptureFixture, )
tests/skills/test_skill.py:75
Function
test_from_files_requires_valid_frontmatter
()
tests/skills/test_skill.py:68
Method
test_from_function_preserves_decorator_metadata
Direct from_function calls should respect @tool metadata.
tests/tools/test_standalone_decorator.py:120
Method
test_from_function_rejects_hyphen_underscore_collision
Two raw param names that normalize to the same key are rejected.
tests/resources/test_resource_template.py:1348
Method
test_from_openapi_threads_validate_output
FastMCP.from_openapi() correctly passes validate_output to the provider.
tests/server/providers/openapi/test_openapi_features.py:1376
Function
test_from_package
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/skills/test_skill.py:158
Method
test_from_required
Test pruning a parameter that's in the required list.
tests/utilities/test_json_schema.py:66
Function
test_from_tool_accepts_decorated_function
()
tests/tools/tool_transform/test_tool_transform.py:68
Function
test_from_tool_accepts_plain_function
()
tests/tools/tool_transform/test_tool_transform.py:85
Function
test_from_tool_decorated_function_preserves_metadata
()
tests/tools/tool_transform/test_tool_transform.py:99
Function
test_from_tool_decorated_function_runs
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:121
Function
test_from_tool_decorated_function_via_client
()
tests/tools/tool_transform/test_tool_transform.py:777
Function
test_from_tool_preserves_icons
()
tests/tools/tool_transform/test_tool_transform.py:109
Function
test_frontend_values_take_precedence
(frontend_mode: str)
tests/server/providers/proxy/test_server_metadata.py:235
Method
test_frontmatter
(self)
tests/cli/test_generate_cli.py:820
← previous
next →
9,801–9,900 of 15,974, ranked by callers