MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_call_tool_crazy_value
Test that caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:568
Methodtest_call_tool_creates_span
(self, trace_exporter: InMemorySpanExporter)
tests/client/telemetry/test_client_tracing.py:18
Methodtest_call_tool_creates_span
(self, trace_exporter: InMemorySpanExporter)
tests/server/telemetry/test_server_tracing.py:20
Methodtest_call_tool_default_implementation
Test that default call_tool uses get_tool and runs the tool.
tests/server/test_providers.py:369
Methodtest_call_tool_denied_by_component_auth
(self)
tests/server/auth/test_authorization.py:1112
Methodtest_call_tool_error_caught_by_client_span
Tool error should be reflected on the client span via isError check.
tests/client/telemetry/test_client_tracing.py:75
Methodtest_call_tool_error_creates_spans
Both client and server spans should be created when tool fails.
tests/client/telemetry/test_client_tracing.py:374
Methodtest_call_tool_forwards_meta
Test that metadata from proxied tool results is properly forwarded.
tests/server/providers/proxy/test_proxy_server.py:473
Methodtest_call_tool_invalid_version_not_found
Calling with non-existent version should raise NotFoundError.
tests/server/versioning/test_calls.py:252
Methodtest_call_tool_invokes_highest_version
Calling a tool by name should invoke the highest version.
tests/server/versioning/test_versioning.py:271
Methodtest_call_tool_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:482
Methodtest_call_tool_key_is_hashed_and_does_not_include_raw_input
(self)
tests/server/middleware/test_caching.py:895
Methodtest_call_tool_key_partitions_by_auth
(self)
tests/server/middleware/test_caching.py:930
Methodtest_call_tool_key_partitions_by_component_version
(self)
tests/server/middleware/test_versioned_caching.py:128
Methodtest_call_tool_ko
Test calling a non-existing tool
tests/integration_tests/test_github_mcp_remote.py:119
Methodtest_call_tool_list_commits
Test calling a list_commit tool
tests/integration_tests/test_github_mcp_remote.py:128
Functiontest_call_tool_mcp
Test the call_tool_mcp method that returns raw MCP protocol objects.
tests/client/client/test_client.py:64
Methodtest_call_tool_mcp_resolves_claimed_result
`call_tool_mcp` resolves a claimed result through the extension resolver. The server emits a claimed shape; the client's registered extension
tests/client/test_client_extensions.py:245
Functiontest_call_tool_mcp_returns_completed_result
call_tool_mcp resolves the tasked call into an ordinary CallToolResult.
tests/tasks/client/test_transparent_tasks.py:67
Methodtest_call_tool_middleware
(self)
tests/server/middleware/test_middleware.py:430
Methodtest_call_tool_missing_args
(self)
tests/cli/test_client_commands.py:494
Methodtest_call_tool_missing_scope_names_required_scope
(self)
tests/server/auth/test_authorization.py:1180
Methodtest_call_tool_model_visible_uses_display_name
Tools with visibility=['app','model'] are callable by display name.
tests/test_fastmcp_app.py:479
Methodtest_call_tool_no_raise_returns_error_result
(self)
tests/client/client/test_error_handling.py:197
Methodtest_call_tool_not_found
(self)
tests/cli/test_client_commands.py:489
Methodtest_call_tool_on_nested_server
( self, mcp_server: FastMCP, nested_mcp_server: FastMCP, recording_middleware:
tests/server/middleware/test_middleware_nested.py:228
Methodtest_call_tool_on_parent_server
( self, mcp_server: FastMCP, nested_mcp_server: FastMCP, recording_middleware:
tests/server/middleware/test_middleware_nested.py:208
Functiontest_call_tool_populates_routes_lazily
()
tests/client/group/test_client_group.py:102
Methodtest_call_tool_proxy_executes
(self)
tests/server/transforms/test_search.py:116
Functiontest_call_tool_proxy_refuses_undiscoverable_tools
The proxy takes a model-supplied name, so it is a second door in.
tests/server/transforms/test_model_visibility_boundary.py:107
Methodtest_call_tool_proxy_rejects_custom_names
Guard works when synthetic tools have custom names.
tests/server/transforms/test_search.py:481
Methodtest_call_tool_proxy_rejects_itself
Calling call_tool(name='call_tool') must not recurse infinitely.
tests/server/transforms/test_search.py:458
Methodtest_call_tool_proxy_rejects_search_tool
Calling call_tool(name='search_tools') must be rejected.
tests/server/transforms/test_search.py:469
Methodtest_call_tool_raises_tool_error_by_default
(self)
tests/client/client/test_error_handling.py:186
Methodtest_call_tool_resolves_claimed_result
The high-level `call_tool` also returns the resolver's CallToolResult.
tests/client/test_client_extensions.py:261
Methodtest_call_tool_result_is_error_bridged
(self)
tests/test_compat.py:73
Methodtest_call_tool_result_return_annotation_no_output_schema
(self)
tests/tools/tool/test_output_schema.py:143
Methodtest_call_tool_result_same_as_original
( self, fastmcp_server: FastMCP, proxy_server: FastMCPProxy )
tests/server/providers/proxy/test_proxy_server.py:396
Methodtest_call_tool_result_structured_content_bridged
(self)
tests/test_compat.py:78
Methodtest_call_tool_span_attributes
( self, trace_exporter: InMemorySpanExporter )
tests/client/telemetry/test_client_tracing.py:36
Functiontest_call_tool_structured_output_both_eras
(dual_era_server, mode)
tests/server/test_protocol_eras.py:101
Methodtest_call_tool_sufficient_scope_passes
(self)
tests/server/auth/test_authorization.py:1201
Functiontest_call_tool_task_forwards_requested_version
`call_tool_task(..., version=...)` tasks the requested version, not the highest.
tests/tasks/client/test_transparent_tasks.py:83
Functiontest_call_tool_task_returns_tool_task
(tool_task_server: FastMCP)
tests/tasks/client/test_client_tool_tasks.py:45
Methodtest_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:1109
Functiontest_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:197
Functiontest_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
Functiontest_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:59
Methodtest_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
Methodtest_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
Methodtest_call_tool_version_selection
Client.call_tool routes to correct version via request meta.
tests/server/versioning/test_calls.py:284
Methodtest_call_tool_very_large_value
Test that caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:548
Methodtest_call_tool_via_client
Test calling a tool through a server using the provider.
tests/server/providers/test_fastmcp_provider.py:115
Methodtest_call_tool_with_error_sets_status
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:50
Methodtest_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
Functiontest_call_tool_with_meta
Test that meta parameter is properly passed from client to server.
tests/client/client/test_client.py:84
Methodtest_call_tool_with_reordered_arguments_hits_cache
( self, caching_server: FastMCP, tracking_calculator: TrackingCalculator, )
tests/server/middleware/test_caching.py:536
Methodtest_call_tool_with_run_middleware_false
Middleware is NOT applied when run_middleware=False.
tests/server/middleware/test_middleware.py:489
Methodtest_call_tool_with_run_middleware_true
Middleware is applied when run_middleware=True (default).
tests/server/middleware/test_middleware.py:473
Methodtest_call_tool_with_version
call_tool should use specified version.
tests/server/versioning/test_calls.py:179
Functiontest_call_tools_bulk_blocks_self_invocation
Test call_tools_bulk blocks recursive calls to bulk tools.
tests/contrib/test_bulk_tool_caller.py:291
Functiontest_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:260
Functiontest_call_tools_bulk_error_stops
Test call_tools_bulk stops on first error using error_tool.
tests/contrib/test_bulk_tool_caller.py:232
Functiontest_call_tools_bulk_multiple_success
Test multiple successful calls via call_tools_bulk with different tools.
tests/contrib/test_bulk_tool_caller.py:207
Functiontest_call_tools_bulk_single_success
Test single successful call via call_tools_bulk using echo_tool.
tests/contrib/test_bulk_tool_caller.py:190
Methodtest_call_transformed_tools
Test calling a transformed tool through a proxy.
tests/server/providers/proxy/test_proxy_server.py:363
Methodtest_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:525
Methodtest_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:548
Methodtest_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:503
Methodtest_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:612
Methodtest_callable_fields_not_in_any_schema
Verify no callable fields appear in any generated schema.
tests/test_json_schema_generation.py:189
Methodtest_callable_object
(self)
tests/tools/tool/test_tool.py:109
Methodtest_callable_object
(self)
tests/prompts/test_prompt.py:40
Methodtest_callable_object_as_template
Test that a callable object can be used as a template.
tests/resources/test_resource_template.py:388
Methodtest_callable_object_async
Test that callable objects with async __call__ work.
tests/tools/tool/test_callable.py:27
Methodtest_callable_object_async
Test that callable objects with async __call__ work.
tests/resources/test_function_resources.py:316
Methodtest_callable_object_async
Test that callable objects with async __call__ work.
tests/prompts/test_prompt.py:885
Methodtest_callable_object_roots_handler
(self, fastmcp_server: FastMCP)
tests/client/test_roots.py:96
Methodtest_callable_object_sync
Test that callable objects with sync __call__ work.
tests/tools/tool/test_callable.py:13
Methodtest_callable_object_sync
Test that callable objects with sync __call__ work.
tests/resources/test_function_resources.py:302
Methodtest_callable_object_sync
Test that callable objects with sync __call__ work.
tests/prompts/test_prompt.py:871
Methodtest_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
Methodtest_callback_closes_upstream_oauth_client
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:203
Methodtest_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
Functiontest_callback_html_escapes_error_message
Test that XSS payloads in error messages are properly escaped.
tests/client/test_oauth_callback_xss.py:48
Functiontest_callback_html_escapes_server_url
Test that XSS payloads in server_url are properly escaped.
tests/client/test_oauth_callback_xss.py:57
Functiontest_callback_html_escapes_title
Test that XSS payloads in title are properly escaped.
tests/client/test_oauth_callback_xss.py:66
Functiontest_callback_html_event_handlers
Test that event handler attributes are escaped.
tests/client/test_oauth_callback_xss.py:86
Functiontest_callback_html_mixed_content
Test that legitimate text mixed with XSS attempts is properly escaped.
tests/client/test_oauth_callback_xss.py:75
Functiontest_callback_html_special_characters
Test that special HTML characters are properly escaped.
tests/client/test_oauth_callback_xss.py:95
Methodtest_callback_invokes_custom_handler
(self)
tests/client/test_logs.py:348
Methodtest_callback_preserves_blank_state
An explicitly-empty state must round-trip as "" rather than None.
tests/utilities/test_tests.py:64
Methodtest_callback_redirect_includes_proxy_issuer
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:253
Methodtest_callback_rejects_unsafe_transaction_redirect
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:307
Methodtest_callback_returns_none_when_state_missing
A truly missing state still returns None (default).
tests/utilities/test_tests.py:73
Methodtest_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:80
Methodtest_callback_uses_default_handler_when_none_is_provided
(self, caplog)
tests/client/test_logs.py:365
Methodtest_caller_cancellation_is_not_suppressed
(self)
tests/client/test_stdio.py:177
Methodtest_caller_cancellation_wins_when_connection_is_also_cancelled
(self)
tests/client/test_stdio.py:195
Functiontest_callers_can_manage_connections
()
tests/client/group/test_client_group.py:154
← previousnext →6,701–6,800 of 13,374, ranked by callers