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_boolean_schema_true
Boolean schema True should return Any (JSON Schema draft-06+).
tests/utilities/json_schema_type/test_json_schema_type.py:249
Method
test_boolean_true_variants
(self)
tests/cli/test_client_commands.py:56
Function
test_bot_authored_generated_entry_is_parsed_without_crediting_bot
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:177
Method
test_both_data_and_path_raises_error
Test that error is raised when both path and data are provided.
tests/utilities/test_types.py:188
Method
test_both_data_and_path_raises_error
Test that error is raised when both path and data are provided.
tests/utilities/test_types.py:327
Method
test_both_data_and_path_raises_error
Test that error is raised when both path and data are provided.
tests/utilities/test_types.py:450
Method
test_both_result_and_content_meta
Both result-level and content-level meta are propagated.
tests/resources/test_resources.py:344
Method
test_bound_host_name_is_case_insensitive
(self)
tests/cli/test_apps_dev_server.py:226
Method
test_bound_method_roots_handler
(self, fastmcp_server: FastMCP)
tests/client/test_roots.py:71
Function
test_bound_server_accessible_after_registration
()
tests/server/test_extensions.py:531
Method
test_bound_when_mcp_url_provided
(self)
tests/client/auth/test_oauth_cimd.py:46
Method
test_broken_ref_error
Test that broken internal references are handled gracefully.
tests/utilities/openapi/test_parser.py:440
Function
test_browser_failure_does_not_stop_remote_login
()
tests/cli/deploy/test_authentication.py:153
Method
test_build_basic_request
Test building a basic GET request with path parameter.
tests/utilities/openapi/test_director.py:165
Method
test_build_complex_request
Test building a complex request with multiple parameter types.
tests/utilities/openapi/test_director.py:177
Method
test_build_regex_normalizes_hyphens
Hyphens in param names produce valid regex with underscored groups.
tests/resources/test_resource_template.py:776
Method
test_build_regex_normalizes_wildcard_hyphens
Wildcard params with hyphens also get underscored groups.
tests/resources/test_resource_template.py:951
Method
test_build_regex_returns_none_for_duplicate_group_names
(self)
tests/resources/test_resource_template.py:901
Method
test_build_regex_returns_none_for_invalid_group_names
(self, template: str)
tests/resources/test_resource_template.py:773
Method
test_build_regex_still_works_for_valid_templates
(self)
tests/resources/test_resource_template.py:1185
Method
test_build_request_fallback_mapping
Test fallback parameter mapping when parameter_map is not available.
tests/utilities/openapi/test_director.py:246
Method
test_build_request_suffixed_parameters
Test handling of suffixed parameters in fallback mode.
tests/utilities/openapi/test_director.py:273
Method
test_build_request_with_collisions
Test building request with parameter name collisions.
tests/utilities/openapi/test_director.py:205
Method
test_build_request_with_none_values
Test that None values are skipped for optional parameters.
tests/utilities/openapi/test_director.py:223
Method
test_build_uv_run_command
Test build_uv_run_command() method.
tests/cli/test_config.py:96
Method
test_build_uv_run_command_basic
Test building basic uv command with no environment config.
tests/utilities/test_cli.py:11
Method
test_build_uv_run_command_project_with_extras
Test that project flag works with additional dependencies.
tests/utilities/test_cli.py:132
Method
test_build_uv_run_command_with_editable
Test building uv command with editable package.
tests/utilities/test_cli.py:19
Method
test_build_uv_run_command_with_everything
Test building uv command with all options.
tests/utilities/test_cli.py:99
Method
test_build_uv_run_command_with_packages
Test building uv command with additional packages.
tests/utilities/test_cli.py:35
Method
test_build_uv_run_command_with_project
Test building uv command with project directory.
tests/utilities/test_cli.py:83
Method
test_build_uv_run_command_with_python_version
Test building uv command with Python version.
tests/utilities/test_cli.py:52
Method
test_build_uv_run_command_with_requirements
Test building uv command with requirements file.
tests/utilities/test_cli.py:67
Method
test_building_a_proxy_client_does_not_reconfigure_a_shared_transport
(self)
tests/server/providers/proxy/test_proxy_server.py:1339
Function
test_bundled_extension_serves_capability_and_method
(construction: str)
tests/server/test_provider_extensions.py:116
Method
test_burst_capacity_below_one_is_deprecated
Values below 1 warn but keep their 4.x behavior until FastMCP 5 (#5292).
tests/server/middleware/test_rate_limiting.py:191
Method
test_bypass_skips_cache
`cache_mode="bypass"` always reaches the server.
tests/client/client/test_response_cache.py:99
Method
test_bytes
(self, tmp_path: Path)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:62
Method
test_bytes_content
Bytes input creates binary content with octet-stream mime type.
tests/resources/test_resources.py:132
Method
test_cache_config_custom
(self)
tests/client/client/test_response_cache.py:59
Method
test_cache_disabled_by_default
(self)
tests/server/auth/providers/test_github.py:189
Method
test_cache_disabled_makes_every_call
(self)
tests/server/auth/providers/test_github.py:220
Method
test_cache_disabled_makes_every_call
Test that with caching disabled, every call makes a request.
tests/server/auth/providers/test_introspection.py:730
Method
test_cache_disabled_with_zero_max_size
Test that cache is disabled when max_cache_size is 0.
tests/server/auth/providers/test_introspection.py:594
Method
test_cache_disabled_with_zero_ttl
Test that cache is disabled when TTL is 0 or None.
tests/server/auth/providers/test_introspection.py:574
Method
test_cache_enabled_with_ttl
(self)
tests/server/auth/providers/test_github.py:193
Method
test_cache_eviction_at_max_size
Test that cache evicts entries when max size is reached.
tests/server/auth/providers/test_introspection.py:924
Method
test_cache_expires_after_ttl
After TTL expires, _get_tool should re-fetch from the backend.
tests/server/providers/proxy/test_proxy_server.py:1045
Method
test_cache_false_disables
(self)
tests/client/client/test_response_cache.py:55
Method
test_cache_hit_avoids_second_api_call
(self)
tests/server/auth/providers/test_github.py:197
Method
test_cache_hit_returns_cached_result
Test that cached valid tokens are returned without introspection call.
tests/server/auth/providers/test_introspection.py:628
Method
test_cache_is_bounded
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:600
Function
test_cache_isolated_by_configuration_class
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:116
Function
test_cache_keys_are_portable_and_keep_boundaries
(ranking_module, tmp_path)
tests/test_issue_ranking.py:248
Method
test_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
Method
test_cache_path_in_home_directory
Cache file should be in fastmcp home directory.
tests/utilities/test_version_check.py:23
Method
test_cache_path_prerelease_suffix
Prerelease cache uses different file.
tests/utilities/test_version_check.py:29
Method
test_cache_respects_token_expiration
Test that cache respects token's exp claim for TTL.
tests/server/auth/providers/test_introspection.py:865
Method
test_cache_returns_defensive_copy
Test that cached tokens are defensive copies (mutations don't leak).
tests/server/auth/providers/test_introspection.py:662
Method
test_cache_true_builds_default
(self)
tests/client/client/test_response_cache.py:51
Method
test_cache_ttl_zero_disables_caching
With cache_ttl=0, every _get_tool call should re-fetch.
tests/server/providers/proxy/test_proxy_server.py:1076
Method
test_cacheable_rename_new_name_resolves
(self)
tests/test_upgrade_from_v3.py:270
Function
test_cached_configuration_expires_and_refetches
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:55
Function
test_cached_configuration_is_isolated_between_callers
(discovery_document)
tests/server/auth/test_oidc_discovery_cache.py:84
Method
test_cached_result_is_defensive_copy
(self)
tests/server/auth/providers/test_github.py:259
Method
test_calculate_delay
Test delay calculation.
tests/server/middleware/test_error_handling.py:325
Method
test_calculate_response_size
Test response size calculation.
tests/server/middleware/test_logging.py:149
Method
test_calculate_response_size_with_token_estimation
Test response size calculation with token estimation.
tests/server/middleware/test_logging.py:163
Function
test_call_argument_cycle_raises_cycle_error
CallArgument references that form a cycle raise CycleError with the path.
tests/server/test_call_arguments.py:147
Function
test_call_argument_in_binding
A CallArgument binding wires a tool parameter to a factory parameter.
tests/server/test_call_arguments.py:47
Method
test_call_base_tool_still_works
Test that base server tools still work after injecting tools.
tests/server/middleware/test_tool_injection.py:104
Method
test_call_dynamic_tool
Test that dynamic tools can be called successfully.
tests/server/test_providers.py:165
Method
test_call_dynamic_tool_with_config
Test that dynamic tool config (like value offset) is used.
tests/server/test_providers.py:181
Method
test_call_excluded_tool
(self)
tests/server/providers/local_provider_tools/test_tags.py:93
Method
test_call_included_tool
(self)
tests/server/providers/local_provider_tools/test_tags.py:85
Method
test_call_injected_tool
Test that injected tools can be called successfully.
tests/server/middleware/test_tool_injection.py:86
Method
test_call_missing_target
(self)
tests/cli/test_client_commands.py:532
Method
test_call_nonexistent_tool_creates_spans
Both client and server spans should be created for nonexistent tool.
tests/client/telemetry/test_client_tracing.py:518
Method
test_call_nonexistent_tool_sets_error
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:74
Method
test_call_prompt
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:513
Method
test_call_prompt_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:519
Method
test_call_prompt_not_found
(self)
tests/cli/test_client_commands.py:528
Method
test_call_resource_by_uri
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:499
Method
test_call_resource_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:505
Method
test_call_static_tool_still_works
Test that static tools still work after adding dynamic tools.
tests/server/test_providers.py:197
Function
test_call_tool
Test calling a tool with InMemoryClient.
tests/client/client/test_client.py:50
Function
test_call_tool
Test that we can call a tool.
tests/client/auth/test_oauth_client.py:129
Method
test_call_tool
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:476
Method
test_call_tool
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware_nested.py:466
Method
test_call_tool
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:169
Method
test_call_tool
Test that caching works with a real FastMCP server.
tests/server/middleware/test_caching.py:517
Function
test_call_tool_bulk_blocks_self_invocation
Test call_tool_bulk blocks recursive calls to bulk tools.
tests/contrib/test_bulk_tool_caller.py:325
Function
test_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:158
Function
test_call_tool_bulk_error_stops
Test call_tool_bulk stops on first error using error_tool.
tests/contrib/test_bulk_tool_caller.py:133
Function
test_call_tool_bulk_multiple_success
Test multiple successful calls via call_tool_bulk using echo_tool.
tests/contrib/test_bulk_tool_caller.py:111
Function
test_call_tool_bulk_single_success
Test single successful call via call_tool_bulk using echo_tool.
tests/contrib/test_bulk_tool_caller.py:93
Method
test_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
Method
test_call_tool_cache_key_distinguishes_arguments
(self)
tests/server/middleware/test_caching.py:324
Method
test_call_tool_cache_key_ignores_argument_order
( self, first: dict[str, Any], second: dict[str, Any] )
tests/server/middleware/test_caching.py:304
Method
test_call_tool_calls_tool
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:409
← previous
next →
6,601–6,700 of 13,374, ranked by callers