MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Functiontest_settings_can_depend_on_receiving_server
(caplog: pytest.LogCaptureFixture)
tests/server/test_provider_extensions.py:506
Methodtest_settings_property_removed
(self)
tests/deprecated/test_deprecated.py:12
Methodtest_shadowed_registered_tool_is_not_listed
Listing and calling agree when an injected tool shadows a registered one.
tests/server/middleware/test_tool_injection.py:437
Functiontest_shared_aggregate_checks_every_active_server_and_releases_scopes
()
tests/server/test_provider_extensions.py:659
Methodtest_shared_async_context_manager
Shared dependency from an async context manager stays open across calls.
tests/server/test_dependencies.py:1070
Methodtest_shared_async_function
Shared dependency from an async function resolves and is reused.
tests/server/test_dependencies.py:1044
Functiontest_shared_child_keeps_second_roots_restrictions_after_first_exits
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:143
Functiontest_shared_child_rejection_leaves_its_registrations_unchanged
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:176
Methodtest_shared_excluded_from_schema
Shared dependencies are not exposed in the tool schema.
tests/server/test_dependencies.py:1131
Methodtest_shared_in_prompt
Shared dependencies work in prompt functions.
tests/server/test_dependencies.py:1169
Methodtest_shared_in_resource
Shared dependencies work in resource functions.
tests/server/test_dependencies.py:1147
Functiontest_shared_mounted_aggregate_checks_every_root
( bundle: BundledLocalProvider, wrapped: bool )
tests/server/test_extension_runtime.py:100
Functiontest_shared_mounted_child_accepts_bundle_supported_by_all_roots
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:127
Methodtest_shared_pattern_cache_is_bounded
Template strings can come from a proxied server, so the shared cache must not grow with every template a remote ever sends.
tests/resources/test_resource_template.py:867
Methodtest_shared_references_are_converted_once
( self, monkeypatch: pytest.MonkeyPatch )
tests/utilities/json_schema_type/test_generated_classes.py:504
Methodtest_shared_resolves_on_task_capable_server
Shared() dependencies resolve on a normal request even when the server has task-enabled components. When pydocket is installed AND a
tests/server/test_dependencies.py:1197
Methodtest_shared_sync_function
Shared dependency from a sync function resolves and is reused.
tests/server/test_dependencies.py:1018
Methodtest_shared_with_depends
Shared and Depends can coexist in the same tool.
tests/server/test_dependencies.py:1099
Methodtest_shortfall_names_only_unmet_scopes
(self)
tests/server/auth/test_authorization.py:1216
Methodtest_shortfall_union_drops_already_granted_scope
(self)
tests/server/auth/test_authorization.py:1298
Methodtest_shortfall_unions_across_middleware_chain
(self)
tests/server/auth/test_authorization.py:1318
Methodtest_shortfall_unions_every_unmet_scope_check
(self)
tests/server/auth/test_authorization.py:1276
Functiontest_should_close_non_maintainer_issue_without_author_activity
()
tests/scripts/test_auto_close_needs_mre.py:38
Functiontest_should_not_close_maintainer_issues
(author_association: str)
tests/scripts/test_auto_close_needs_mre.py:25
Functiontest_should_not_close_non_maintainer_issue_with_author_activity
()
tests/scripts/test_auto_close_needs_mre.py:51
Methodtest_should_retry_checks_cause_chain
Retry should match on __cause__ since FastMCP wraps tool errors. When a tool raises ConnectionError, FastMCP catches it and raises To
tests/server/middleware/test_error_handling.py:299
Methodtest_should_retry_false
Test retry decision for non-retryable errors.
tests/server/middleware/test_error_handling.py:292
Methodtest_should_retry_true
Test retry decision for retryable errors.
tests/server/middleware/test_error_handling.py:285
Methodtest_show_banner_defaults_to_setting_true
Test that show_banner=None uses the setting (default True).
tests/server/test_server.py:362
Methodtest_show_banner_explicit_false_overrides_setting
Test that explicit show_banner=False overrides True setting.
tests/server/test_server.py:395
Methodtest_show_banner_explicit_true_overrides_setting
Test that explicit show_banner=True overrides False setting.
tests/server/test_server.py:384
Methodtest_show_banner_respects_setting_false
Test that show_banner=None uses the setting when False.
tests/server/test_server.py:372
Methodtest_show_server_banner_setting
Test that show_server_banner setting works with environment variable.
tests/cli/test_cli.py:394
Methodtest_shutdown_failure_does_not_mask_body_error
A broken teardown must never hide the failure the caller actually cares about.
tests/utilities/test_asgi_transport.py:166
Methodtest_shutdown_failure_raises
(self)
tests/utilities/test_asgi_transport.py:155
Functiontest_sibling_dependency_resolves_once
A CallArgument reference to a dependency-backed sibling shares one value.
tests/server/test_call_arguments.py:120
Functiontest_sibling_keywords_come_from_the_referenced_definition
()
tests/utilities/test_json_schema_expansion.py:225
Methodtest_signed_assertion_flow
(self)
tests/client/auth/test_client_credentials.py:570
Methodtest_simple_boolean
(self)
tests/cli/test_generate_cli.py:49
Methodtest_simple_command
(self)
tests/cli/test_client_commands.py:322
Methodtest_simple_defaults_empty_object
(self, simple_defaults)
tests/utilities/json_schema_type/test_advanced.py:59
Methodtest_simple_defaults_partial_override
(self, simple_defaults)
tests/utilities/json_schema_type/test_advanced.py:65
Methodtest_simple_direct_array_schema
Test route with direct array request body schema.
tests/utilities/openapi/test_direct_array_schemas.py:16
Functiontest_simple_initialization_hook
Test that the on_initialize hook is called.
tests/server/middleware/test_initialization_middleware.py:115
Methodtest_simple_integer
(self)
tests/cli/test_generate_cli.py:39
Methodtest_simple_merge
(self)
tests/utilities/json_schema_type/test_advanced.py:367
Methodtest_simple_name
(self)
tests/cli/test_generate_cli.py:699
Methodtest_simple_name
(self)
tests/cli/test_goose.py:17
Methodtest_simple_number
(self)
tests/cli/test_generate_cli.py:44
Methodtest_simple_output_schema
(self, annotation)
tests/server/providers/local_provider_tools/test_output_schema.py:49
Functiontest_simple_prompt
A simple prompt for conformance testing.
tests/conformance/server.py:798
Methodtest_simple_ref_to_non_object
(self)
tests/server/providers/local_provider_tools/test_output_schema.py:351
Methodtest_simple_ref_to_object
(self)
tests/server/providers/local_provider_tools/test_output_schema.py:342
Methodtest_simple_return_annotation
(self, annotation)
tests/tools/tool/test_output_schema.py:52
Functiontest_simple_sampling
(fastmcp_server: FastMCP)
tests/client/test_sampling.py:99
Methodtest_simple_string
(self)
tests/cli/test_generate_cli.py:34
Methodtest_simple_string
(self)
tests/cli/test_generate_cli.py:731
Functiontest_simple_text
A simple text tool for conformance testing.
tests/conformance/server.py:95
Methodtest_simple_with_context
(self)
tests/tools/test_tool_future_annotations.py:73
Methodtest_single_check_fails
(self)
tests/server/auth/test_authorization.py:290
Methodtest_single_check_passes
(self)
tests/server/auth/test_authorization.py:286
Functiontest_single_client_group_provides_namespacing_alone
()
tests/client/group/test_client_group.py:257
Methodtest_single_dot_segment_rejected
(self)
tests/server/auth/test_redirect_validation.py:462
Functiontest_single_human_coauthor_of_bot_pr_is_credited
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:184
Methodtest_single_json_object_as_positional
(self)
tests/cli/test_client_commands.py:135
Methodtest_single_modern_capable_server_is_not_forced_legacy
A single Streamable HTTP backend stays modern-capable under mode='auto'.
tests/test_mcp_config.py:128
Methodtest_single_path_as_list
Test that single path can be passed as a list.
tests/server/providers/test_skills_provider.py:831
Methodtest_single_path_as_string
Test that single path can be passed as string.
tests/server/providers/test_skills_provider.py:839
Methodtest_single_query_param
Test resource template with single query parameter.
tests/resources/test_resource_template_query_params.py:9
Methodtest_single_request_orders_by_choice_probability
(self)
tests/experimental/transforms/test_jev_search.py:142
Methodtest_single_round_completes
One full MRTR round: the server asks, the client's elicitation_handler answers, and the tool completes with the answered value.
tests/client/client/test_input_required_driver.py:98
Functiontest_single_server_config_include_tags_filtering
include_tags should filter tools even with a single server in the config.
tests/test_mcp_config.py:1100
Methodtest_single_server_config_target_forwards
(self, backend)
tests/server/providers/proxy/test_proxy_server.py:1416
Functiontest_single_server_config_transport
Test that single-server configs delegate directly without creating a composite.
tests/test_mcp_config.py:1303
Methodtest_single_sse_server_mirrors_legacy_only
A single SSE backend is legacy-only because SSE cannot serve modern.
tests/test_mcp_config.py:137
Methodtest_single_verifier_not_in_list
A single TokenVerifier (not in a list) is accepted.
tests/server/auth/test_multi_auth.py:58
Methodtest_size_budget_evicts_large_schemas
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:615
Methodtest_size_limit_enforced_during_streaming
Verify that size limit is enforced as chunks are received, not after.
tests/server/auth/test_ssrf_protection.py:499
Methodtest_skill_contains_tools
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:654
Methodtest_skill_file_resource_meta
SkillFileResource populates meta with skill name.
tests/server/providers/test_skills_provider.py:485
Methodtest_skill_meta_survives_mounting
Skill metadata in _meta is preserved when accessed through a mounted server.
tests/server/providers/test_skills_provider.py:496
Functiontest_skill_provider_loads_and_serves_utf8_skill_md
SKILL.md and its supporting text files must be read as utf-8. Regression test for #4084. On Windows the default encoding is cp1252, so a bare
tests/server/providers/test_skills_provider.py:1016
Methodtest_skill_references_cli_filename
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:686
Methodtest_skill_resource_meta
SkillResource populates meta with skill name and is_manifest.
tests/server/providers/test_skills_provider.py:466
Methodtest_skill_without_frontmatter_uses_header_as_description
( self, tmp_path: Path )
tests/server/providers/test_skills_provider.py:704
Functiontest_skip_count_is_pinned
A newly unrunnable example should be a deliberate choice.
tests/docs/test_upgrade_guide_examples.py:63
Functiontest_skip_names
Test that skipped parameters are not included in the schema
tests/utilities/test_typeadapter.py:180
Methodtest_skips_builtin_and_disabled
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:536
Methodtest_skips_existing_without_overwrite
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:417
Methodtest_skips_manifest_paths_that_escape_target
(self, tmp_path: Path)
tests/utilities/test_skills.py:351
Methodtest_skips_when_fastmcp_context_is_none
Test that middleware passes through when fastmcp_context is None.
tests/server/middleware/test_ping.py:113
Methodtest_skips_when_request_context_is_none
Test that middleware passes through when request_context is None.
tests/server/middleware/test_ping.py:127
Methodtest_slash_in_param_is_encoded
(self, director, path_route)
tests/utilities/openapi/test_director.py:1166
Functiontest_sleeping_tv_does_not_block_startup_and_reconnects
(monkeypatch)
examples/smart_home/tests/test_fire_tv.py:237
Methodtest_sliding_window
Test sliding window behavior.
tests/server/middleware/test_rate_limiting.py:149
Methodtest_sliding_window_rate_limiting
Test sliding window rate limiting implementation.
tests/server/middleware/test_rate_limiting.py:509
Functiontest_slow_tool_with_http_transport
Test that tools taking >5 seconds work correctly with HTTP transport. This test verifies the fix for: - Issue #2842: Client can't get result
tests/integration_tests/test_timeout_fix.py:36
Methodtest_smaller_than_page_size
List smaller than page size should return all items.
tests/server/test_pagination.py:112
Functiontest_snapshot_restored_before_user_code_runs
A tool with no declared deps finds the snapshot already cached.
tests/tasks/server/test_snapshot_restore.py:38
Methodtest_snapshot_stays_plaintext_without_a_key
No key configured is the pre-existing contract, unchanged.
tests/tasks/server/test_snapshot_encryption.py:370
← previousnext →11,701–11,800 of 13,374, ranked by callers