Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
Function
test_scope_pipe_separator_is_preserved
``get_task_scope`` composes ``client_id|sub`` — the ``|`` must survive.
tests/tasks/server/test_task_keys.py:109
Method
test_scope_precedence_over_scp
Test that 'scope' claim takes precedence over 'scp' claim when both are present.
tests/server/auth/test_jwt_provider_bearer.py:386
Function
test_scope_rate_limit_raises_typed_error
(status_code, headers)
tests/server/auth/providers/test_github_transient_failures.py:182
Function
test_scope_secondary_rate_limit_message_is_operational_error
()
tests/server/auth/providers/test_github_transient_failures.py:194
Function
test_scope_server_failure_does_not_grant_required_user_scope_and_recovers
( status_code, )
tests/server/auth/providers/test_github_transient_failures.py:211
Function
test_scope_transport_failure_does_not_grant_user_scope_and_recovers
()
tests/server/auth/providers/test_github_transient_failures.py:260
Function
test_scope_with_colons_is_recovered
()
tests/tasks/server/test_task_keys.py:102
Method
test_scope_within_valid_scopes_is_forwarded
A document scope inside valid_scopes still works end to end.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:769
Method
test_scope_without_ttl_raises
(self)
tests/server/test_cache_hints.py:64
Method
test_scope_without_ttl_rejected
(self, scope)
tests/server/test_cache_hints.py:53
Method
test_scopes_forwarded_as_list
(self)
tests/client/auth/test_oauth_cimd.py:116
Method
test_scopes_forwarded_as_string
(self)
tests/client/auth/test_oauth_cimd.py:126
Method
test_scopes_on_server_without_auth_return_401
( self, required_scopes: list[str] )
tests/contrib/test_component_manager.py:988
Method
test_scopes_supported_and_required_scopes_can_differ
Test that scopes_supported and required_scopes can be configured independently.
tests/server/auth/providers/test_descope.py:246
Method
test_scopes_supported_defaults_to_verifier
Test that metadata uses verifier scopes_supported when parameter not set.
tests/server/auth/test_remote_auth_provider.py:586
Method
test_scopes_supported_empty_when_no_required_scopes
(self)
tests/server/auth/providers/test_azure_scopes.py:574
Method
test_scopes_supported_overrides_metadata
Test that scopes_supported parameter overrides what's in metadata.
tests/server/auth/test_remote_auth_provider.py:557
Method
test_scopes_supported_returns_prefixed_form
(self)
tests/server/auth/providers/test_azure_scopes.py:516
Method
test_scp_claim_extraction_list
Test scope extraction from 'scp' claim with list format.
tests/server/auth/test_jwt_provider_bearer.py:368
Method
test_scp_claim_extraction_string
Test scope extraction from 'scp' claim with space-separated string.
tests/server/auth/test_jwt_provider_bearer.py:352
Method
test_screening_still_works_with_sdk
(self)
tests/resources/test_resource_security.py:182
Function
test_script
(tmp_path: Path)
tests/test_mcp_config.py:1579
Method
test_script_connects_to_the_configured_server
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, entry: dict[str, Any]
tests/cli/test_generate_cli_remote.py:151
Method
test_script_keeps_oauth
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_generate_cli_remote.py:163
Method
test_script_path_arrives_literally
(self, script: str)
tests/cli/test_install_cli_arguments.py:256
Method
test_script_receives_arguments
( self, tmp_path: Path, args: list[str] )
tests/client/test_stdio.py:1082
Method
test_sdk_elicit_result_accept_carries_its_content
An accepted SDK `ElicitResult` supplies its content to the resolver.
tests/client/client/test_input_required_driver.py:157
Function
test_sdk_failure_is_tool_error
(bridge)
examples/smart_home/tests/test_lights.py:137
Function
test_sdk_v1_constructor_params_fastmcp_rejects_are_documented
Every v1 keyword FastMCP 4 refuses must be named in the v1 guide. The guide's headline is that upgrading is a single import change. That is o
tests/docs/test_upgrade_guide_api_claims.py:178
Function
test_sdk_verifier_tokens_retain_original_client_id_after_serialization
()
tests/server/auth/test_auth_source_identities.py:401
Method
test_seam_method_emits_single_server_span
A seam-spanned method must produce exactly one SERVER span, not two.
tests/server/telemetry/test_server_tracing.py:471
Method
test_seam_span_has_protocol_version
Seam-only methods (never reaching the high-level path) also carry the protocol version. Pinned to legacy: `logging/setLevel` is a han
tests/server/telemetry/test_server_tracing.py:750
Function
test_search_applies_limits_after_ranking
( default_limit: int | None, override: dict[str, int | None], expected_count: int, )
tests/experimental/transforms/test_code_mode_search_limits.py:55
Method
test_search_by_description
(self)
tests/server/transforms/test_search.py:245
Method
test_search_by_name
(self)
tests/server/transforms/test_search.py:237
Method
test_search_by_param_description
(self)
tests/server/transforms/test_search.py:261
Method
test_search_by_param_name
(self)
tests/server/transforms/test_search.py:253
Method
test_search_case_insensitive
(self)
tests/server/transforms/test_search.py:279
Method
test_search_database_tools
(self)
tests/server/transforms/test_search.py:418
Function
test_search_default_detail_detailed_skips_get_schema
Two-stage pattern: Search(default_detail='detailed') returns schemas inline.
tests/experimental/transforms/test_code_mode_discovery.py:318
Function
test_search_default_limit_from_constructor
Search(default_limit=N) caps results by default.
tests/experimental/transforms/test_code_mode_discovery.py:505
Method
test_search_empty_query
(self)
tests/server/transforms/test_search.py:470
Function
test_search_first_result_is_the_best_match_registered_last
Ranking decides what survives a small limit, not registration order.
tests/experimental/transforms/test_code_mode_search_limits.py:92
Function
test_search_full_detail_empty_results_returns_json
Search with detail=full and no matches returns valid JSON, not plain text.
tests/experimental/transforms/test_code_mode_discovery.py:341
Function
test_search_full_detail_returns_current_schema
()
tests/experimental/transforms/test_code_mode_discovery.py:361
Method
test_search_invalid_pattern
(self)
tests/server/transforms/test_search.py:287
Function
test_search_limit_caps_results
Search with limit returns at most that many results.
tests/experimental/transforms/test_code_mode_discovery.py:476
Function
test_search_listing_still_hides_task_tool
()
tests/tasks/server/test_task_catalog_transforms.py:93
Method
test_search_max_results
(self)
tests/server/transforms/test_search.py:295
Method
test_search_max_results
(self)
tests/server/transforms/test_search.py:430
Method
test_search_no_matches
(self)
tests/server/transforms/test_search.py:304
Method
test_search_no_matches
(self)
tests/server/transforms/test_search.py:438
Function
test_search_omits_annotation_when_all_tools_returned
Search does not annotate when results include every tool.
tests/experimental/transforms/test_code_mode_discovery.py:455
Method
test_search_or_pattern
(self)
tests/server/transforms/test_search.py:269
Function
test_search_pattern_syntax
(pattern: str, expected: list[str])
tests/server/transforms/test_search_regex.py:30
Method
test_search_proxy_returns_task_tool_result
(self)
tests/tasks/server/test_task_catalog_transforms.py:121
Function
test_search_reads_a_negative_limit_as_a_count
A limit is a maximum result count, so it can never be negative. Python's slice semantics would otherwise read ``limit=-1`` as "all but the la
tests/experimental/transforms/test_code_mode_search_limits.py:75
Method
test_search_rebuilds_when_description_contains_catalog_delimiter
( self, )
tests/server/transforms/test_search.py:391
Method
test_search_rebuilds_when_names_change_but_searchable_text_matches
( self, )
tests/server/transforms/test_search.py:372
Method
test_search_relevance
(self)
tests/server/transforms/test_search.py:407
Function
test_search_repeated_alternatives
()
tests/server/transforms/test_search_regex.py:48
Method
test_search_respects_auth_middleware
Tools filtered by auth middleware should not appear in search.
tests/server/transforms/test_search.py:176
Method
test_search_respects_session_visibility
Tools disabled via session visibility should not appear in search.
tests/server/transforms/test_search.py:202
Method
test_search_respects_visibility_filtering
Tools disabled via Visibility transform should not appear in search.
tests/server/transforms/test_search.py:162
Method
test_search_returns_current_schema
(self, version: str)
tests/server/transforms/test_search.py:330
Method
test_search_returns_full_schema
(self)
tests/server/transforms/test_search.py:312
Method
test_search_returns_full_schema
(self)
tests/server/transforms/test_search.py:478
Function
test_search_shows_catalog_size_when_results_are_subset
Search annotates results with 'N of M tools' when not all tools match.
tests/experimental/transforms/test_code_mode_discovery.py:428
Method
test_search_tool_takes_a_query
(self)
tests/experimental/transforms/test_jev_search.py:131
Function
test_search_with_tags_filter
()
tests/experimental/transforms/test_code_mode_discovery.py:238
Function
test_search_with_tags_filter_no_matches
()
tests/experimental/transforms/test_code_mode_discovery.py:259
Function
test_search_with_untagged_filter
Search with tags=["untagged"] matches tools that have no tags.
tests/experimental/transforms/test_code_mode_discovery.py:296
Function
test_search_without_tags_returns_all
Search without tags parameter searches the full catalog.
tests/experimental/transforms/test_code_mode_discovery.py:274
Method
test_searches_with_different_catalogs_do_not_interfere
Two sessions can see different tools and search at the same time; neither may lose the text it needs mid-search.
tests/experimental/transforms/test_jev_search.py:342
Method
test_second_client_serves_first_clients_cache
Two independent Clients sharing one adapter-backed store: client B's first list_tools is served from the entry client A populated, with zero w
tests/client/client/test_kv_response_cache.py:232
Function
test_second_client_uses_its_own_timeout
( sleepy_server: Path, first_timeout: float | None, second_timeout: float | None )
tests/client/test_stdio_session_kwargs.py:38
Method
test_second_continuation_group_and_exploded
(self)
tests/resources/test_resource_template_level3.py:141
Method
test_second_fresh_flow_is_asked_again
A second fresh flow must be asked the same question. Serving it a cached final answer would skip the component's own per-round logic
tests/server/middleware/test_caching_guards.py:112
Method
test_second_list_tools_served_from_cache
A cached tools/list round-trip: the second call is served from the cache without a second wire request.
tests/client/client/test_response_cache.py:75
Method
test_second_page_with_cursor
Second page should continue from cursor.
tests/server/test_pagination.py:82
Method
test_second_query_block_params_are_matched
(self)
tests/resources/test_resource_template_query_params.py:511
Function
test_secondary_rate_limit_message_is_operational_error
( headers: dict[str, str], )
tests/server/auth/providers/test_github_transient_failures.py:112
Method
test_seconds_converted_to_ms
(self)
tests/server/test_cache_hints.py:35
Function
test_secret_is_not_sent_to_a_different_authorization_server
()
tests/client/auth/test_oauth_static_client_issuer.py:43
Function
test_seed_serves_highest_version_not_last_registered
Regression (#5666 review repro 1): registering an older version after a newer one must not seed the older version's schema. Dispatch serves the
tests/server/test_mcp_param_schema_cache.py:234
Function
test_seed_skipped_when_server_transform_rewrites_schema
Regression (#5666 review repro 3): with a server-level ToolTransform renaming arguments, the pre-transform schema must not be seeded. The cach
tests/server/test_mcp_param_schema_cache.py:288
Function
test_select_model_from_preferences
(prefs: Any, expected: str)
tests/client/sampling/handlers/test_openai_handler.py:315
Function
test_select_model_from_preferences
(prefs: Any, expected: str)
tests/client/sampling/handlers/test_anthropic_handler.py:199
Method
test_selected_variant_field_reaches_the_request_body
The reported failure: meowVolume must reach the upstream API.
tests/server/providers/openapi/test_openapi_discriminator.py:229
Method
test_selection_is_registration_order_independent
End-to-end: registering two PEP 440-equivalent spellings of the same tool must select the same one regardless of registration order (e
tests/server/versioning/test_versioning.py:159
Method
test_self_is_member
Test that a class is a member of itself.
tests/utilities/test_types.py:39
Method
test_self_mount_raises
(self)
tests/server/test_server_safety.py:7
Method
test_self_ref_multiple_levels
(self, self_referential)
tests/utilities/json_schema_type/test_advanced.py:378
Method
test_self_ref_single_level
(self, self_referential)
tests/utilities/json_schema_type/test_advanced.py:369
Method
test_self_referencing_dataclass_not_wrapped
Test that self-referencing dataclasses are not wrapped in result field.
tests/tools/tool/test_content.py:322
Method
test_self_referencing_model_outputschema_mcp_compliant
Test that self-referencing model schemas are MCP spec compliant. The MCP spec requires: - type: "object" at root level - prop
tests/tools/tool/test_content.py:377
Method
test_self_referencing_pydantic_model_has_type_object_at_root
Test that self-referencing Pydantic models have type: object at root. MCP spec requires outputSchema to have "type": "object" at the root lev
tests/tools/tool/test_content.py:347
Method
test_semantic_version_sorting
Versions should sort semantically, not lexicographically.
tests/server/versioning/test_mounting.py:17
Method
test_semicolon_in_scalar_does_not_add_a_cookie
(self)
tests/server/providers/openapi/test_openapi_features.py:1728
Method
test_semver_sorting
Full semver versions should sort correctly.
tests/server/versioning/test_mounting.py:50
← previous
next →
14,401–14,500 of 16,725, ranked by callers