MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_boolean_schema_true
Boolean schema True should return Any (JSON Schema draft-06+).
tests/utilities/json_schema_type/test_json_schema_type.py:249
Methodtest_boolean_true_variants
(self)
tests/cli/test_client_commands.py:56
Functiontest_bot_authored_generated_entry_is_parsed_without_crediting_bot
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:177
Methodtest_both_data_and_path_raises_error
Test that error is raised when both path and data are provided.
tests/utilities/test_types.py:188
Methodtest_both_data_and_path_raises_error
Test that error is raised when both path and data are provided.
tests/utilities/test_types.py:327
Methodtest_both_data_and_path_raises_error
Test that error is raised when both path and data are provided.
tests/utilities/test_types.py:450
Methodtest_both_result_and_content_meta
Both result-level and content-level meta are propagated.
tests/resources/test_resources.py:344
Methodtest_bound_host_name_is_case_insensitive
(self)
tests/cli/test_apps_dev_server.py:226
Methodtest_bound_method_roots_handler
(self, fastmcp_server: FastMCP)
tests/client/test_roots.py:71
Functiontest_bound_server_accessible_after_registration
()
tests/server/test_extensions.py:531
Methodtest_bound_when_mcp_url_provided
(self)
tests/client/auth/test_oauth_cimd.py:46
Methodtest_broken_ref_error
Test that broken internal references are handled gracefully.
tests/utilities/openapi/test_parser.py:440
Functiontest_browser_failure_does_not_stop_remote_login
()
tests/cli/deploy/test_authentication.py:153
Methodtest_build_basic_request
Test building a basic GET request with path parameter.
tests/utilities/openapi/test_director.py:165
Methodtest_build_complex_request
Test building a complex request with multiple parameter types.
tests/utilities/openapi/test_director.py:177
Methodtest_build_regex_normalizes_hyphens
Hyphens in param names produce valid regex with underscored groups.
tests/resources/test_resource_template.py:776
Methodtest_build_regex_normalizes_wildcard_hyphens
Wildcard params with hyphens also get underscored groups.
tests/resources/test_resource_template.py:951
Methodtest_build_regex_returns_none_for_duplicate_group_names
(self)
tests/resources/test_resource_template.py:901
Methodtest_build_regex_returns_none_for_invalid_group_names
(self, template: str)
tests/resources/test_resource_template.py:773
Methodtest_build_regex_still_works_for_valid_templates
(self)
tests/resources/test_resource_template.py:1185
Methodtest_build_request_fallback_mapping
Test fallback parameter mapping when parameter_map is not available.
tests/utilities/openapi/test_director.py:246
Methodtest_build_request_suffixed_parameters
Test handling of suffixed parameters in fallback mode.
tests/utilities/openapi/test_director.py:273
Methodtest_build_request_with_collisions
Test building request with parameter name collisions.
tests/utilities/openapi/test_director.py:205
Methodtest_build_request_with_none_values
Test that None values are skipped for optional parameters.
tests/utilities/openapi/test_director.py:223
Methodtest_build_uv_run_command
Test build_uv_run_command() method.
tests/cli/test_config.py:96
Methodtest_build_uv_run_command_basic
Test building basic uv command with no environment config.
tests/utilities/test_cli.py:11
Methodtest_build_uv_run_command_project_with_extras
Test that project flag works with additional dependencies.
tests/utilities/test_cli.py:132
Methodtest_build_uv_run_command_with_editable
Test building uv command with editable package.
tests/utilities/test_cli.py:19
Methodtest_build_uv_run_command_with_everything
Test building uv command with all options.
tests/utilities/test_cli.py:99
Methodtest_build_uv_run_command_with_packages
Test building uv command with additional packages.
tests/utilities/test_cli.py:35
Methodtest_build_uv_run_command_with_project
Test building uv command with project directory.
tests/utilities/test_cli.py:83
Methodtest_build_uv_run_command_with_python_version
Test building uv command with Python version.
tests/utilities/test_cli.py:52
Methodtest_build_uv_run_command_with_requirements
Test building uv command with requirements file.
tests/utilities/test_cli.py:67
Methodtest_building_a_proxy_client_does_not_reconfigure_a_shared_transport
(self)
tests/server/providers/proxy/test_proxy_server.py:1339
Functiontest_bundled_extension_serves_capability_and_method
(construction: str)
tests/server/test_provider_extensions.py:116
Methodtest_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
Methodtest_bypass_skips_cache
`cache_mode="bypass"` always reaches the server.
tests/client/client/test_response_cache.py:99
Methodtest_bytes
(self, tmp_path: Path)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:62
Methodtest_bytes_content
Bytes input creates binary content with octet-stream mime type.
tests/resources/test_resources.py:132
Methodtest_cache_config_custom
(self)
tests/client/client/test_response_cache.py:59
Methodtest_cache_disabled_by_default
(self)
tests/server/auth/providers/test_github.py:189
Methodtest_cache_disabled_makes_every_call
(self)
tests/server/auth/providers/test_github.py:220
Methodtest_cache_disabled_makes_every_call
Test that with caching disabled, every call makes a request.
tests/server/auth/providers/test_introspection.py:730
Methodtest_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
Methodtest_cache_disabled_with_zero_ttl
Test that cache is disabled when TTL is 0 or None.
tests/server/auth/providers/test_introspection.py:574
Methodtest_cache_enabled_with_ttl
(self)
tests/server/auth/providers/test_github.py:193
Methodtest_cache_eviction_at_max_size
Test that cache evicts entries when max size is reached.
tests/server/auth/providers/test_introspection.py:924
Methodtest_cache_expires_after_ttl
After TTL expires, _get_tool should re-fetch from the backend.
tests/server/providers/proxy/test_proxy_server.py:1045
Methodtest_cache_false_disables
(self)
tests/client/client/test_response_cache.py:55
Methodtest_cache_hit_avoids_second_api_call
(self)
tests/server/auth/providers/test_github.py:197
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:248
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:1076
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_result_is_defensive_copy
(self)
tests/server/auth/providers/test_github.py:259
Methodtest_calculate_delay
Test delay calculation.
tests/server/middleware/test_error_handling.py:325
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
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_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:532
Methodtest_call_nonexistent_tool_creates_spans
Both client and server spans should be created for nonexistent tool.
tests/client/telemetry/test_client_tracing.py:518
Methodtest_call_nonexistent_tool_sets_error
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:74
Methodtest_call_prompt
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:513
Methodtest_call_prompt_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:519
Methodtest_call_prompt_not_found
(self)
tests/cli/test_client_commands.py:528
Methodtest_call_resource_by_uri
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:499
Methodtest_call_resource_json
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_client_commands.py:505
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:50
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:476
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:325
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:158
Functiontest_call_tool_bulk_error_stops
Test call_tool_bulk stops on first error using error_tool.
tests/contrib/test_bulk_tool_caller.py:133
Functiontest_call_tool_bulk_multiple_success
Test multiple successful calls via call_tool_bulk using echo_tool.
tests/contrib/test_bulk_tool_caller.py:111
Functiontest_call_tool_bulk_single_success
Test single successful call via call_tool_bulk using echo_tool.
tests/contrib/test_bulk_tool_caller.py:93
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:409
← previousnext →6,601–6,700 of 13,374, ranked by callers