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
Function
test_settings_can_depend_on_receiving_server
(caplog: pytest.LogCaptureFixture)
tests/server/test_provider_extensions.py:506
Method
test_settings_property_removed
(self)
tests/deprecated/test_deprecated.py:12
Method
test_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
Function
test_shared_aggregate_checks_every_active_server_and_releases_scopes
()
tests/server/test_provider_extensions.py:659
Method
test_shared_async_context_manager
Shared dependency from an async context manager stays open across calls.
tests/server/test_dependencies.py:1070
Method
test_shared_async_function
Shared dependency from an async function resolves and is reused.
tests/server/test_dependencies.py:1044
Function
test_shared_child_keeps_second_roots_restrictions_after_first_exits
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:143
Function
test_shared_child_rejection_leaves_its_registrations_unchanged
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:176
Method
test_shared_excluded_from_schema
Shared dependencies are not exposed in the tool schema.
tests/server/test_dependencies.py:1131
Method
test_shared_in_prompt
Shared dependencies work in prompt functions.
tests/server/test_dependencies.py:1169
Method
test_shared_in_resource
Shared dependencies work in resource functions.
tests/server/test_dependencies.py:1147
Function
test_shared_mounted_aggregate_checks_every_root
( bundle: BundledLocalProvider, wrapped: bool )
tests/server/test_extension_runtime.py:100
Function
test_shared_mounted_child_accepts_bundle_supported_by_all_roots
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:127
Method
test_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
Method
test_shared_references_are_converted_once
( self, monkeypatch: pytest.MonkeyPatch )
tests/utilities/json_schema_type/test_generated_classes.py:504
Method
test_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
Method
test_shared_sync_function
Shared dependency from a sync function resolves and is reused.
tests/server/test_dependencies.py:1018
Method
test_shared_with_depends
Shared and Depends can coexist in the same tool.
tests/server/test_dependencies.py:1099
Method
test_shortfall_names_only_unmet_scopes
(self)
tests/server/auth/test_authorization.py:1216
Method
test_shortfall_union_drops_already_granted_scope
(self)
tests/server/auth/test_authorization.py:1298
Method
test_shortfall_unions_across_middleware_chain
(self)
tests/server/auth/test_authorization.py:1318
Method
test_shortfall_unions_every_unmet_scope_check
(self)
tests/server/auth/test_authorization.py:1276
Function
test_should_close_non_maintainer_issue_without_author_activity
()
tests/scripts/test_auto_close_needs_mre.py:38
Function
test_should_not_close_maintainer_issues
(author_association: str)
tests/scripts/test_auto_close_needs_mre.py:25
Function
test_should_not_close_non_maintainer_issue_with_author_activity
()
tests/scripts/test_auto_close_needs_mre.py:51
Method
test_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
Method
test_should_retry_false
Test retry decision for non-retryable errors.
tests/server/middleware/test_error_handling.py:292
Method
test_should_retry_true
Test retry decision for retryable errors.
tests/server/middleware/test_error_handling.py:285
Method
test_show_banner_defaults_to_setting_true
Test that show_banner=None uses the setting (default True).
tests/server/test_server.py:362
Method
test_show_banner_explicit_false_overrides_setting
Test that explicit show_banner=False overrides True setting.
tests/server/test_server.py:395
Method
test_show_banner_explicit_true_overrides_setting
Test that explicit show_banner=True overrides False setting.
tests/server/test_server.py:384
Method
test_show_banner_respects_setting_false
Test that show_banner=None uses the setting when False.
tests/server/test_server.py:372
Method
test_show_server_banner_setting
Test that show_server_banner setting works with environment variable.
tests/cli/test_cli.py:394
Method
test_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
Method
test_shutdown_failure_raises
(self)
tests/utilities/test_asgi_transport.py:155
Function
test_sibling_dependency_resolves_once
A CallArgument reference to a dependency-backed sibling shares one value.
tests/server/test_call_arguments.py:120
Function
test_sibling_keywords_come_from_the_referenced_definition
()
tests/utilities/test_json_schema_expansion.py:225
Method
test_signed_assertion_flow
(self)
tests/client/auth/test_client_credentials.py:570
Method
test_simple_boolean
(self)
tests/cli/test_generate_cli.py:49
Method
test_simple_command
(self)
tests/cli/test_client_commands.py:322
Method
test_simple_defaults_empty_object
(self, simple_defaults)
tests/utilities/json_schema_type/test_advanced.py:59
Method
test_simple_defaults_partial_override
(self, simple_defaults)
tests/utilities/json_schema_type/test_advanced.py:65
Method
test_simple_direct_array_schema
Test route with direct array request body schema.
tests/utilities/openapi/test_direct_array_schemas.py:16
Function
test_simple_initialization_hook
Test that the on_initialize hook is called.
tests/server/middleware/test_initialization_middleware.py:115
Method
test_simple_integer
(self)
tests/cli/test_generate_cli.py:39
Method
test_simple_merge
(self)
tests/utilities/json_schema_type/test_advanced.py:367
Method
test_simple_name
(self)
tests/cli/test_generate_cli.py:699
Method
test_simple_name
(self)
tests/cli/test_goose.py:17
Method
test_simple_number
(self)
tests/cli/test_generate_cli.py:44
Method
test_simple_output_schema
(self, annotation)
tests/server/providers/local_provider_tools/test_output_schema.py:49
Function
test_simple_prompt
A simple prompt for conformance testing.
tests/conformance/server.py:798
Method
test_simple_ref_to_non_object
(self)
tests/server/providers/local_provider_tools/test_output_schema.py:351
Method
test_simple_ref_to_object
(self)
tests/server/providers/local_provider_tools/test_output_schema.py:342
Method
test_simple_return_annotation
(self, annotation)
tests/tools/tool/test_output_schema.py:52
Function
test_simple_sampling
(fastmcp_server: FastMCP)
tests/client/test_sampling.py:99
Method
test_simple_string
(self)
tests/cli/test_generate_cli.py:34
Method
test_simple_string
(self)
tests/cli/test_generate_cli.py:731
Function
test_simple_text
A simple text tool for conformance testing.
tests/conformance/server.py:95
Method
test_simple_with_context
(self)
tests/tools/test_tool_future_annotations.py:73
Method
test_single_check_fails
(self)
tests/server/auth/test_authorization.py:290
Method
test_single_check_passes
(self)
tests/server/auth/test_authorization.py:286
Function
test_single_client_group_provides_namespacing_alone
()
tests/client/group/test_client_group.py:257
Method
test_single_dot_segment_rejected
(self)
tests/server/auth/test_redirect_validation.py:462
Function
test_single_human_coauthor_of_bot_pr_is_credited
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:184
Method
test_single_json_object_as_positional
(self)
tests/cli/test_client_commands.py:135
Method
test_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
Method
test_single_path_as_list
Test that single path can be passed as a list.
tests/server/providers/test_skills_provider.py:831
Method
test_single_path_as_string
Test that single path can be passed as string.
tests/server/providers/test_skills_provider.py:839
Method
test_single_query_param
Test resource template with single query parameter.
tests/resources/test_resource_template_query_params.py:9
Method
test_single_request_orders_by_choice_probability
(self)
tests/experimental/transforms/test_jev_search.py:142
Method
test_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
Function
test_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
Method
test_single_server_config_target_forwards
(self, backend)
tests/server/providers/proxy/test_proxy_server.py:1416
Function
test_single_server_config_transport
Test that single-server configs delegate directly without creating a composite.
tests/test_mcp_config.py:1303
Method
test_single_sse_server_mirrors_legacy_only
A single SSE backend is legacy-only because SSE cannot serve modern.
tests/test_mcp_config.py:137
Method
test_single_verifier_not_in_list
A single TokenVerifier (not in a list) is accepted.
tests/server/auth/test_multi_auth.py:58
Method
test_size_budget_evicts_large_schemas
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:615
Method
test_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
Method
test_skill_contains_tools
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:654
Method
test_skill_file_resource_meta
SkillFileResource populates meta with skill name.
tests/server/providers/test_skills_provider.py:485
Method
test_skill_meta_survives_mounting
Skill metadata in _meta is preserved when accessed through a mounted server.
tests/server/providers/test_skills_provider.py:496
Function
test_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
Method
test_skill_references_cli_filename
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:686
Method
test_skill_resource_meta
SkillResource populates meta with skill name and is_manifest.
tests/server/providers/test_skills_provider.py:466
Method
test_skill_without_frontmatter_uses_header_as_description
( self, tmp_path: Path )
tests/server/providers/test_skills_provider.py:704
Function
test_skip_count_is_pinned
A newly unrunnable example should be a deliberate choice.
tests/docs/test_upgrade_guide_examples.py:63
Function
test_skip_names
Test that skipped parameters are not included in the schema
tests/utilities/test_typeadapter.py:180
Method
test_skips_builtin_and_disabled
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:536
Method
test_skips_existing_without_overwrite
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:417
Method
test_skips_manifest_paths_that_escape_target
(self, tmp_path: Path)
tests/utilities/test_skills.py:351
Method
test_skips_when_fastmcp_context_is_none
Test that middleware passes through when fastmcp_context is None.
tests/server/middleware/test_ping.py:113
Method
test_skips_when_request_context_is_none
Test that middleware passes through when request_context is None.
tests/server/middleware/test_ping.py:127
Method
test_slash_in_param_is_encoded
(self, director, path_route)
tests/utilities/openapi/test_director.py:1166
Function
test_sleeping_tv_does_not_block_startup_and_reconnects
(monkeypatch)
examples/smart_home/tests/test_fire_tv.py:237
Method
test_sliding_window
Test sliding window behavior.
tests/server/middleware/test_rate_limiting.py:149
Method
test_sliding_window_rate_limiting
Test sliding window rate limiting implementation.
tests/server/middleware/test_rate_limiting.py:509
Function
test_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
Method
test_smaller_than_page_size
List smaller than page size should return all items.
tests/server/test_pagination.py:112
Function
test_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
Method
test_snapshot_stays_plaintext_without_a_key
No key configured is the pre-existing contract, unchanged.
tests/tasks/server/test_snapshot_encryption.py:370
← previous
next →
11,701–11,800 of 13,374, ranked by callers