MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_cache_hit_avoids_second_api_call
A second verify_token call with the same token uses cache.
tests/server/auth/providers/test_google.py:621
Methodtest_cache_hit_avoids_second_api_call
(self)
tests/server/auth/providers/test_github.py:198
Methodtest_cache_hit_returns_cached_result
Test that cached valid tokens are returned without introspection call.
tests/server/auth/providers/test_introspection.py:628
Methodtest_cache_is_bounded
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:600
Functiontest_cache_isolated_by_configuration_class
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:116
Functiontest_cache_keys_are_portable_and_keep_boundaries
(ranking_module, tmp_path)
tests/test_issue_ranking.py:309
Methodtest_cache_none_is_disabled_by_default
Caching is opt-in: the default `cache=None` builds no cache, so a legacy connection is byte-identical to pre-v4 behavior (no handler wrapping)
tests/client/client/test_response_cache.py:42
Methodtest_cache_path_in_home_directory
Cache file should be in fastmcp home directory.
tests/utilities/test_version_check.py:23
Methodtest_cache_path_prerelease_suffix
Prerelease cache uses different file.
tests/utilities/test_version_check.py:29
Methodtest_cache_respects_token_expiration
Test that cache respects token's exp claim for TTL.
tests/server/auth/providers/test_introspection.py:865
Methodtest_cache_returns_defensive_copy
Test that cached tokens are defensive copies (mutations don't leak).
tests/server/auth/providers/test_introspection.py:662
Methodtest_cache_true_builds_default
(self)
tests/client/client/test_response_cache.py:51
Methodtest_cache_ttl_zero_disables_caching
With cache_ttl=0, every _get_tool call should re-fetch.
tests/server/providers/proxy/test_proxy_server.py:1147
Methodtest_cacheable_rename_new_name_resolves
(self)
tests/test_upgrade_from_v3.py:270
Functiontest_cached_configuration_expires_and_refetches
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:55
Functiontest_cached_configuration_is_isolated_between_callers
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:84
Methodtest_cached_index_resolves_current_tools_after_reordering
(self)
tests/server/transforms/test_search.py:354
Functiontest_cached_members_respect_initial_resolving_context
()
tests/utilities/openapi/test_composition_graphs.py:123
Methodtest_cached_raw_mcp_result_uses_edited_public_fields
(self)
tests/server/middleware/test_caching.py:727
Methodtest_cached_result_is_defensive_copy
(self)
tests/server/auth/providers/test_github.py:260
Methodtest_calculate_delay
Test delay calculation.
tests/server/middleware/test_error_handling.py:396
Methodtest_calculate_response_size
Test response size calculation.
tests/server/middleware/test_logging.py:149
Methodtest_calculate_response_size_with_token_estimation
Test response size calculation with token estimation.
tests/server/middleware/test_logging.py:163
Methodtest_call_after_session_task_fails_reports_its_error
( self, fastmcp_server )
tests/client/client/test_session.py:122
Functiontest_call_argument_cycle_raises_cycle_error
CallArgument references that form a cycle raise CycleError with the path.
tests/server/test_call_arguments.py:147
Functiontest_call_argument_in_binding
A CallArgument binding wires a tool parameter to a factory parameter.
tests/server/test_call_arguments.py:47
Methodtest_call_base_tool_still_works
Test that base server tools still work after injecting tools.
tests/server/middleware/test_tool_injection.py:104
Methodtest_call_discriminated_union_object
A JSON object reaches a discriminated ``Cat | Dog`` param as a dict.
tests/cli/test_client_commands.py:981
Methodtest_call_dynamic_tool
Test that dynamic tools can be called successfully.
tests/server/test_providers.py:165
Methodtest_call_dynamic_tool_with_config
Test that dynamic tool config (like value offset) is used.
tests/server/test_providers.py:181
Methodtest_call_excluded_tool
(self)
tests/server/providers/local_provider_tools/test_tags.py:93
Methodtest_call_included_tool
(self)
tests/server/providers/local_provider_tools/test_tags.py:85
Methodtest_call_injected_tool
Test that injected tools can be called successfully.
tests/server/middleware/test_tool_injection.py:86
Methodtest_call_missing_target
(self)
tests/cli/test_client_commands.py:946
Methodtest_call_nonexistent_tool_creates_spans
Both client and server spans should be created for nonexistent tool.
tests/client/telemetry/test_client_tracing.py:520
Methodtest_call_nonexistent_tool_sets_error
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:75
Methodtest_call_nullable_non_string_null
``null`` is passed as None for int|None params.
tests/cli/test_client_commands.py:971
Methodtest_call_prompt
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:927
Methodtest_call_prompt_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:933
Methodtest_call_prompt_not_found
(self)
tests/cli/test_client_commands.py:942
Methodtest_call_resource_by_uri
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:913
Methodtest_call_resource_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:919
Methodtest_call_static_tool_still_works
Test that static tools still work after adding dynamic tools.
tests/server/test_providers.py:197
Functiontest_call_tool
Test calling a tool with InMemoryClient.
tests/client/client/test_client.py:54
Functiontest_call_tool
Test that we can call a tool.
tests/client/auth/test_oauth_client.py:129
Methodtest_call_tool
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:881
Methodtest_call_tool
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware_nested.py:466
Methodtest_call_tool
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:169
Methodtest_call_tool
Test that caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:517
Functiontest_call_tool_bulk_blocks_self_invocation
Test call_tool_bulk blocks recursive calls to bulk tools.
tests/contrib/test_bulk_tool_caller.py:347
Functiontest_call_tool_bulk_error_continues
Test call_tool_bulk continues on error using error_tool and echo_tool.
tests/contrib/test_bulk_tool_caller.py:170
Functiontest_call_tool_bulk_error_stops
Test call_tool_bulk stops on first error using error_tool.
tests/contrib/test_bulk_tool_caller.py:145
Functiontest_call_tool_bulk_multiple_success
Test multiple successful calls via call_tool_bulk using echo_tool.
tests/contrib/test_bulk_tool_caller.py:119
Functiontest_call_tool_bulk_single_success
Test single successful call via call_tool_bulk using echo_tool.
tests/contrib/test_bulk_tool_caller.py:99
Methodtest_call_tool_cache_is_partitioned_by_component_version
( self, versioned_caching_server: tuple[FastMCP, dict[str, int]] )
tests/server/middleware/test_versioned_caching.py:64
Methodtest_call_tool_cache_key_distinguishes_arguments
(self)
tests/server/middleware/test_caching.py:324
Methodtest_call_tool_cache_key_ignores_argument_order
( self, first: dict[str, Any], second: dict[str, Any] )
tests/server/middleware/test_caching.py:304
Methodtest_call_tool_calls_tool
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:412
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:1129
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:76
Methodtest_call_tool_error_creates_spans
Both client and server spans should be created when tool fails.
tests/client/telemetry/test_client_tracing.py:376
Methodtest_call_tool_forwards_meta
Test that metadata from proxied tool results is properly forwarded.
tests/server/providers/proxy/test_proxy_server.py:476
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:887
Methodtest_call_tool_key_is_hashed_and_does_not_include_raw_input
(self)
tests/server/middleware/test_caching.py:942
Methodtest_call_tool_key_partitions_by_auth
(self)
tests/server/middleware/test_caching.py:977
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:68
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:81
Methodtest_call_tool_middleware
(self)
tests/server/middleware/test_middleware.py:459
Methodtest_call_tool_missing_args
(self)
tests/cli/test_client_commands.py:908
Methodtest_call_tool_missing_scope_names_required_scope
(self)
tests/server/auth/test_authorization.py:1197
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:275
Methodtest_call_tool_not_found
(self)
tests/cli/test_client_commands.py:903
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
Methodtest_call_tool_optional_array
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:894
Functiontest_call_tool_populates_routes_lazily
()
tests/client/group/test_client_group.py:116
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:559
Methodtest_call_tool_proxy_rejects_itself
Calling call_tool(name='call_tool') must not recurse infinitely.
tests/server/transforms/test_search.py:536
Methodtest_call_tool_proxy_rejects_search_tool
Calling call_tool(name='search_tools') must be rejected.
tests/server/transforms/test_search.py:547
Methodtest_call_tool_raises_tool_error_by_default
(self)
tests/client/client/test_error_handling.py:264
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:399
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
← previousnext →7,901–8,000 of 15,974, ranked by callers