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_call_tool_sufficient_scope_passes
(self)
tests/server/auth/test_authorization.py:1218
Function
test_call_tool_task_forwards_requested_version
`call_tool_task(..., version=...)` tasks the requested version, not the highest.
tests/tasks/client/test_transparent_tasks.py:97
Function
test_call_tool_task_returns_tool_task
(tool_task_server: FastMCP)
tests/tasks/client/test_client_tool_tasks.py:45
Method
test_call_tool_through_server_uses_cache
End-to-end: calling a tool on a proxy server should only connect for the actual tool execution, not for tool resolution.
tests/server/providers/proxy/test_proxy_server.py:1180
Function
test_call_tool_timeout_bounds_a_stalled_elicitation
A stalled elicitation handler cannot outlast the call's timeout. The deadline covers the whole drive, elicitation callbacks included: a handl
tests/tasks/client/test_transparent_tasks.py:211
Function
test_call_tool_timeout_bounds_total_task_drive
A per-call timeout bounds the whole tasked drive, not just one poll. The tool runs far longer than the timeout while each individual poll answers
tests/tasks/client/test_transparent_tasks.py:47
Function
test_call_tool_transparently_completes_a_task
call_tool returns the tool's real result; the caller never sees a task.
tests/tasks/client/test_transparent_tasks.py:73
Method
test_call_tool_uses_get_tool_for_efficient_lookup
Test that call_tool uses get_tool() (not list_tools) for lookup.
tests/server/test_providers.py:212
Method
test_call_tool_uses_v1_when_v2_disabled
call_tool should invoke v1 when v2 is disabled.
tests/server/versioning/test_visibility_version_fallback.py:78
Method
test_call_tool_uses_v1_when_v2_unauthorized
(self)
tests/server/versioning/test_auth_version_fallback.py:69
Method
test_call_tool_version_selection
Client.call_tool routes to correct version via request meta.
tests/server/versioning/test_calls.py:284
Method
test_call_tool_very_large_value
Test that caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:548
Method
test_call_tool_via_client
Test calling a tool through a server using the provider.
tests/server/providers/test_fastmcp_provider.py:115
Method
test_call_tool_with_error_sets_status
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:51
Method
test_call_tool_with_hashed_name
A backend tool with visibility=['app'] is callable via its hashed-name address — the same form a Prefab UI's resolver would produce wh
tests/test_fastmcp_app.py:459
Function
test_call_tool_with_meta
Test that meta parameter is properly passed from client to server.
tests/client/client/test_client.py:88
Method
test_call_tool_with_reordered_arguments_hits_cache
( self, caching_server: FastMCP, tracking_calculator: TrackingCalculator, )
tests/server/middleware/test_caching.py:536
Method
test_call_tool_with_run_middleware_false
Middleware is NOT applied when run_middleware=False.
tests/server/middleware/test_middleware.py:518
Method
test_call_tool_with_run_middleware_true
Middleware is applied when run_middleware=True (default).
tests/server/middleware/test_middleware.py:502
Method
test_call_tool_with_version
call_tool should use specified version.
tests/server/versioning/test_calls.py:179
Function
test_call_tools_bulk_blocks_self_invocation
Test call_tools_bulk blocks recursive calls to bulk tools.
tests/contrib/test_bulk_tool_caller.py:311
Function
test_call_tools_bulk_error_continues
Test call_tools_bulk continues on error using error_tool and echo_tool.
tests/contrib/test_bulk_tool_caller.py:278
Function
test_call_tools_bulk_error_stops
Test call_tools_bulk stops on first error using error_tool.
tests/contrib/test_bulk_tool_caller.py:250
Function
test_call_tools_bulk_multiple_success
Test multiple successful calls via call_tools_bulk with different tools.
tests/contrib/test_bulk_tool_caller.py:223
Function
test_call_tools_bulk_single_success
Test single successful call via call_tools_bulk using echo_tool.
tests/contrib/test_bulk_tool_caller.py:204
Method
test_call_transformed_tools
Test calling a transformed tool through a proxy.
tests/server/providers/proxy/test_proxy_server.py:366
Method
test_call_union_no_string_branch_list
JSON list is parsed and passed correctly for int|list[int] params.
tests/cli/test_client_commands.py:951
Method
test_call_union_no_string_branch_scalar
Plain integer is passed correctly for int|list[int] params.
tests/cli/test_client_commands.py:961
Method
test_call_while_transport_unwinds_reports_closed_connection
( self, fastmcp_server )
tests/client/client/test_session.py:98
Method
test_callable_class_does_not_inherit_class_param_descriptions
The class docstring's Args section typically describes __init__. Even when param names overlap with __call__, those descriptions must
tests/utilities/test_docstring_parsing.py:636
Method
test_callable_class_falls_back_to_call_description
If the class has no docstring, fall back to __call__'s description.
tests/utilities/test_docstring_parsing.py:690
Method
test_callable_class_sources_description_from_class
Class docstring drives the tool description (it describes what the tool IS), while __call__'s Args section drives parameter descriptions
tests/utilities/test_docstring_parsing.py:614
Method
test_callable_class_sources_description_from_class
Class docstring drives the prompt description, while __call__'s Args section drives per-argument descriptions (since the arguments are
tests/prompts/test_prompt.py:660
Method
test_callable_fields_not_in_any_schema
Verify no callable fields appear in any generated schema.
tests/test_json_schema_generation.py:189
Method
test_callable_object
(self)
tests/tools/tool/test_tool.py:111
Method
test_callable_object
(self)
tests/prompts/test_prompt.py:65
Method
test_callable_object_as_template
Test that a callable object can be used as a template.
tests/resources/test_resource_template.py:440
Method
test_callable_object_async
Test that callable objects with async __call__ work.
tests/tools/tool/test_callable.py:27
Method
test_callable_object_async
Test that callable objects with async __call__ work.
tests/resources/test_function_resources.py:316
Method
test_callable_object_async
Test that callable objects with async __call__ work.
tests/prompts/test_prompt.py:1020
Method
test_callable_object_roots_handler
(self, fastmcp_server: FastMCP)
tests/client/test_roots.py:96
Method
test_callable_object_sync
Test that callable objects with sync __call__ work.
tests/tools/tool/test_callable.py:13
Method
test_callable_object_sync
Test that callable objects with sync __call__ work.
tests/resources/test_function_resources.py:302
Method
test_callable_object_sync
Test that callable objects with sync __call__ work.
tests/prompts/test_prompt.py:1006
Method
test_callable_object_with_context
Test that a callable object can be used as a tool with context.
tests/server/providers/local_provider_tools/test_context.py:125
Method
test_callback_closes_upstream_oauth_client
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:204
Method
test_callback_error_returns_html_page
Test that OAuth callback errors return styled HTML instead of data: URLs.
tests/server/auth/oauth_proxy/test_ui.py:65
Function
test_callback_html_escapes_error_message
Test that XSS payloads in error messages are properly escaped.
tests/client/test_oauth_callback_xss.py:48
Function
test_callback_html_escapes_server_url
Test that XSS payloads in server_url are properly escaped.
tests/client/test_oauth_callback_xss.py:57
Function
test_callback_html_escapes_title
Test that XSS payloads in title are properly escaped.
tests/client/test_oauth_callback_xss.py:66
Function
test_callback_html_event_handlers
Test that event handler attributes are escaped.
tests/client/test_oauth_callback_xss.py:86
Function
test_callback_html_mixed_content
Test that legitimate text mixed with XSS attempts is properly escaped.
tests/client/test_oauth_callback_xss.py:75
Function
test_callback_html_special_characters
Test that special HTML characters are properly escaped.
tests/client/test_oauth_callback_xss.py:95
Method
test_callback_invokes_custom_handler
(self)
tests/client/test_logs.py:440
Method
test_callback_preserves_blank_state
An explicitly-empty state must round-trip as "" rather than None.
tests/utilities/test_tests.py:91
Method
test_callback_redirect_includes_proxy_issuer
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:258
Method
test_callback_rejects_unsafe_transaction_redirect
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:312
Method
test_callback_returns_none_when_state_missing
A truly missing state still returns None (default).
tests/utilities/test_tests.py:100
Method
test_callback_uses_blank_error_description_verbatim
When the OAuth provider sends an empty error_description, surface it as "" rather than falling back to "Unknown error". The fallback is
tests/utilities/test_tests.py:107
Method
test_callback_uses_default_handler_when_none_is_provided
(self, caplog)
tests/client/test_logs.py:457
Method
test_caller_cancellation_is_not_suppressed
(self)
tests/client/test_stdio.py:188
Method
test_caller_cancellation_wins_when_connection_is_also_cancelled
(self)
tests/client/test_stdio.py:206
Function
test_callers_can_manage_connections
()
tests/client/group/test_client_group.py:168
Method
test_calls_tokeninfo_endpoint
verify_token calls the tokeninfo endpoint, not the userinfo endpoint, for verification.
tests/server/auth/providers/test_google.py:505
Method
test_camel_case
(self)
tests/cli/test_generate_cli.py:776
Method
test_can_disable_host_origin_protection
(self)
tests/server/http/test_http_auth_middleware.py:528
Method
test_cancel_mounted_task
(self)
tests/tasks/server/test_task_mount.py:528
Function
test_cancel_parked_task_reports_cancelled_and_refuses_resume
Cancelling an `input_required` task actually cancels it. A parked guard leg's Docket execution is already COMPLETED, so cancelling only that
tests/tasks/server/test_guard_reentrant.py:83
Function
test_cancel_transitions_task_to_cancelled
()
tests/tasks/server/test_extension.py:271
Method
test_cancelled_connection_task_is_cleaned_up
(self)
tests/client/test_stdio.py:177
Function
test_cancelled_context_entry_waiter_does_not_close_active_session
( fastmcp_server, )
tests/client/client/test_client.py:602
Function
test_cancelled_entry_disconnects_connected_members
Cancelling group entry while one member is still connecting must disconnect the members that already connected.
tests/client/group/test_client_group.py:534
Method
test_cancelled_initial_connect_can_reuse_starting_session
( self, stdio_script, monkeypatch )
tests/client/test_stdio.py:282
Method
test_cancelled_reload_waits_for_discovery
Cancellation must not release the lock while discovery is still running.
tests/fs/test_provider.py:351
Method
test_cancelled_scope_still_stops_unshared_subprocess
(self, stdio_script)
tests/client/test_stdio.py:445
Function
test_cancelled_startup_cleans_server
(monkeypatch)
tests/utilities/test_run_server_async_startup.py:28
Function
test_canonical_multi_client_with_transforms
Test that transforms are not applied to servers in a canonical MCPConfig.
tests/test_mcp_config.py:1017
Method
test_cant_call_disabled_tool
(self)
tests/server/providers/local_provider_tools/test_enabled.py:122
Method
test_cant_get_disabled_prompt
(self)
tests/server/providers/test_local_provider_prompts.py:408
Method
test_cant_read_disabled_resource
(self)
tests/server/providers/test_local_provider_resources.py:826
Method
test_cant_read_disabled_template
(self)
tests/server/providers/test_local_provider_resources.py:1041
Method
test_capabilities_include_ui_extension
(self)
tests/test_apps.py:402
Function
test_capability_absent_without_extension
()
tests/tasks/server/test_extension.py:91
Function
test_capability_absent_without_handler
(mode)
tests/server/test_completions.py:85
Function
test_capability_absent_without_registration
A server with no extensions advertises none of its own.
tests/server/test_extensions.py:81
Function
test_capability_advertised_to_modern_client
()
tests/tasks/server/test_extension.py:78
Function
test_capability_advertised_to_modern_client
A registered extension's settings appear under capabilities.extensions. Uses ``mode='auto'`` so the client negotiates the modern era via ``se
tests/server/test_extensions.py:59
Function
test_capability_declared_when_handler_registered
(completion_server, mode)
tests/server/test_completions.py:77
Method
test_capability_error_propagates_as_protocol_error
(self)
tests/test_exceptions.py:128
Function
test_capability_sniff_empty_settings_is_opt_in
An empty settings dict is a valid opt-in, distinct from absence (None).
tests/server/test_extensions.py:433
Function
test_capability_sniff_reads_declared_settings
()
tests/server/test_extensions.py:424
Function
test_capability_sniff_returns_none_when_not_opted_in
(meta)
tests/server/test_extensions.py:448
Method
test_case_collision
(self)
tests/cli/test_generate_cli.py:1059
Function
test_catalog_fallback_retains_provider_lookup
()
tests/server/providers/test_catalog_tool_names.py:109
Function
test_catalog_names_select_the_app_tool_version
(namespace: bool)
tests/server/providers/test_catalog_tool_names.py:76
Function
test_catalog_names_work_for_name_and_app_calls
(namespace: bool)
tests/server/providers/test_catalog_tool_names.py:33
Function
test_categories_brief_shows_tag_counts
()
tests/experimental/transforms/test_code_mode_discovery.py:91
Function
test_categories_detail_override_per_call
LLM can override default_detail on a per-call basis.
tests/experimental/transforms/test_code_mode_discovery.py:193
Function
test_categories_full_lists_tools_per_tag
()
tests/experimental/transforms/test_code_mode_discovery.py:119
Function
test_categories_includes_untagged
()
tests/experimental/transforms/test_code_mode_discovery.py:147
← previous
next →
8,001–8,100 of 15,974, ranked by callers