Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Method
test_distinct_ids_are_isolated
(self)
tests/server/test_sessions.py:150
Function
test_distinct_names_survive
(claude_project, user, local, expected)
tests/cli/test_claude_code_precedence.py:62
Method
test_distinct_names_warn_independently
(self)
tests/test_compat.py:130
Method
test_distinct_partitions_do_not_share
Two clients on the same store but different partitions each hit the wire.
tests/client/client/test_kv_response_cache.py:260
Method
test_distinct_scopes_do_not_share_cached_tokens
Two providers with the same client_id but different requested scopes sharing one store each retain their own token: a token issued for one
tests/client/auth/test_client_credentials.py:394
Method
test_distinct_streams_are_not_serialized
Unrelated streams must not wait on each other's backend calls. One EventStore is shared by every session, so a store-wide lock would
tests/server/test_event_store.py:315
Function
test_distinct_subs_same_client_id_cannot_access_each_others_tasks
Fixed-OAuth case: one client_id, distinct ``sub`` claims stay isolated.
tests/tasks/server/test_task_security.py:78
Function
test_distinct_unknown_ids_share_recent_refresh
(key_data: dict[str, Any])
tests/server/auth/test_jwks_refresh.py:32
Method
test_distinct_versions_unaffected_by_tiebreak
(self)
tests/server/versioning/test_versioning.py:152
Function
test_doc_examples_quality
Doc examples should not regress in syntax or import correctness. Checks every Python code block in ``docs/*.mdx`` (excluding auto-generated `
tests/docs/test_doc_examples.py:107
Method
test_doc_scope_takes_precedence_over_default
When the CIMD document specifies scope, it wins over the default.
tests/server/auth/test_cimd_validators.py:576
Function
test_docket_and_redis_prefixes_agree_on_partition
The Docket key tag and the Redis prefix tag must always match — that is the load-bearing invariant for cross-scope isolation.
tests/tasks/server/test_task_keys.py:158
Function
test_docket_not_initialized_without_task_components
Docket is only initialized when task-enabled components exist.
tests/server/test_server_docket.py:20
Function
test_docket_settings_load_from_dotenv
`FASTMCP_DOCKET_*` in a `.env` file configures the backend. A distributed deployment that puts its Redis URL in `.env` must not silently fall
tests/tasks/server/test_task_config.py:41
Method
test_docstring_populates_argument_descriptions
Google-style docstrings should populate PromptArgument descriptions.
tests/prompts/test_prompt.py:553
Method
test_docstring_without_args_section
(self)
tests/utilities/test_docstring_parsing.py:522
Method
test_docstring_without_args_section
Summary-only docstrings produce a description with no arg descriptions.
tests/prompts/test_prompt.py:647
Method
test_docstring_works_with_numpy_and_sphinx_styles
(self)
tests/prompts/test_prompt.py:576
Method
test_does_not_leak_coroutine_when_scheduling_is_interrupted
If handing an already-created awaitable off to the task group raises partway through scheduling, that awaitable must be closed rather
tests/utilities/test_async_utils.py:145
Method
test_does_not_modify_external_ref
Test that external $refs (not pointing to $defs) are not resolved.
tests/utilities/test_json_schema.py:1180
Method
test_does_not_modify_schema_with_type_at_root
Test that schemas already having type at root are not modified.
tests/utilities/test_json_schema.py:1148
Method
test_does_not_modify_schema_without_defs
Test that schemas with $ref but without $defs are not modified.
tests/utilities/test_json_schema.py:1171
Method
test_does_not_modify_schema_without_ref
Test that schemas without $ref are not modified.
tests/utilities/test_json_schema.py:1161
Method
test_does_not_mutate_anyof_list
_convert_nullable_field should not append to the original anyOf list.
tests/utilities/openapi/test_nullable_fields.py:565
Method
test_does_not_mutate_input
Test that _prune_param does not mutate the original schema.
tests/utilities/test_json_schema.py:84
Method
test_does_not_mutate_input
compress_schema must return a new dict and leave the caller's schema untouched, even when it prunes titles, additionalProperties and unused
tests/utilities/test_json_schema.py:478
Method
test_does_not_mutate_original_tool
Middleware should not mutate the shared Tool object.
tests/server/middleware/test_dereference.py:70
Method
test_does_not_shadow_existing_snake_field
(self)
tests/test_compat.py:165
Method
test_does_not_start_duplicate_task
Test that duplicate messages from same connection don't spawn duplicates.
tests/server/middleware/test_ping.py:75
Method
test_does_not_transform_grant_type_unauthorized_to_invalid_client
Test that grant type authorization errors stay as unauthorized_client with 400.
tests/server/auth/oauth_proxy/test_tokens.py:503
Method
test_does_not_transform_other_400_errors
Test that non-invalid_grant 400 errors pass through unchanged.
tests/server/auth/oauth_proxy/test_tokens.py:548
Method
test_domain_and_prefers_border_reach_resource
(self)
tests/server/providers/test_prefab_synthesis.py:105
Method
test_domain_scheme_and_trailing_slash_stripped
Test that a scheme and trailing slashes on the domain are ignored.
tests/server/auth/providers/test_clerk.py:90
Method
test_domain_scheme_and_trailing_slash_stripped
A scheme and trailing slashes on the domain do not change request URLs.
tests/server/auth/providers/test_clerk.py:269
Method
test_dot_dot_slash_is_encoded
(self, director, path_route)
tests/utilities/openapi/test_director.py:1197
Method
test_dot_segments_still_rejected_after_normalization
(self)
tests/server/auth/test_redirect_validation.py:700
Method
test_dots_and_slashes
(self)
tests/cli/test_generate_cli.py:100
Method
test_dotted_values_encode_dots
Dots are encoded to prevent path normalization by urljoin.
tests/utilities/openapi/test_director.py:1223
Method
test_double_encoded_traversal
(self, director, path_route)
tests/utilities/openapi/test_director.py:1244
Method
test_downloads_all_skills
(self, skills_server: FastMCP, tmp_path: Path)
tests/utilities/test_skills.py:475
Method
test_downloads_blob_resources
(self, tmp_path: Path)
tests/utilities/test_skills.py:451
Method
test_downloads_skill_to_directory
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:258
Function
test_dropped_args_error_if_provided
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:188
Method
test_dropping_repeated_iss_keeps_other_query_bytes_verbatim
Collapsing the duplicates must not round-trip the rest of the query: the valueless `flag` and the non-UTF-8 `sig` stay byte for byte,
tests/server/auth/test_redirect_validation.py:178
Function
test_duplicate_close_uses_complete_evidence
( endpoint: str, scenario: str, writes: list[str], monkeypatch: pytest.MonkeyPatch )
tests/scripts/test_auto_close_duplicates.py:18
Method
test_duplicate_copies_are_not_collapsed_by_a_shared_name
Copies whose backends collide on a name are the worst case, not the safe one: two components become indistinguishable. Counting names
tests/server/providers/test_prefab_roundtrip.py:625
Function
test_duplicate_explicit_registration_still_raises
()
tests/server/test_provider_extensions.py:227
Function
test_duplicate_followup_reopens_only_current_marvin_closure
( association: str, scenario: str, expected_requests: list[str] )
tests/scripts/test_auto_close_duplicates.py:94
Function
test_duplicate_identifier_rejected
()
tests/server/test_extensions.py:465
Method
test_duplicate_names_get_numbered_suffixes
(self)
tests/server/providers/openapi/test_server.py:386
Method
test_duplicate_project_key_spellings_use_one_entry
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:344
Method
test_duplicate_rename_targets_raises_error
Test that duplicate target names in ToolTransform raises ValueError.
tests/server/providers/test_transforming_provider.py:125
Method
test_duplicate_skill_names_first_wins
Test that if a skill appears in multiple roots, first one wins.
tests/server/providers/test_skills_provider.py:907
Method
test_duplicate_tool_rename_targets_raises_error
Test that duplicate target names in tool_renames raises ValueError.
tests/server/mount/test_advanced.py:453
Function
test_duplicate_uris_are_omitted_from_list_and_get
( caplog: pytest.LogCaptureFixture, )
tests/skills/test_extension.py:416
Method
test_duration_invalid
(self, duration_format)
tests/utilities/json_schema_type/test_formats.py:165
Method
test_duration_valid
(self, duration_format)
tests/utilities/json_schema_type/test_formats.py:159
Method
test_dynamic_registration_is_a_public_client
Browser login has no secret, so registration must say so.
tests/client/auth/test_oauth_static_client.py:69
Method
test_dynamic_registration_keeps_an_explicit_auth_method
A caller who sets the method is left alone.
tests/client/auth/test_oauth_static_client.py:75
Method
test_dynamically_adding_to_proxied_server
Test that changes to the original server are reflected in the mounted proxy.
tests/server/mount/test_proxy.py:42
Function
test_dynamically_attached_descendant_inherits_all_root_restrictions
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:193
Method
test_each_helper_warns_once_with_its_replacement
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:112
Method
test_each_hook_fires_once_per_component_call
One ``tools/call`` fires ``on_message`` once and ``on_call_tool`` once — the interior dispatch is the single entry for component methods; the
tests/server/middleware/test_message_visibility.py:181
Method
test_earlier_render_still_submittable
A second render must not invalidate the form from the first one. A consent URL gets loaded twice more often than you would think: a r
tests/server/auth/test_oauth_consent_flow.py:592
Method
test_echo_log
(self, fastmcp_server: FastMCP, caplog)
tests/client/test_logs.py:70
Method
test_elicit_accept_response
Test that the proxy client correctly forwards the `elicit` accept response.
tests/server/providers/proxy/test_proxy_client.py:402
Method
test_elicit_decline_response
Test that the proxy client correctly forwards the `elicit` decline response.
tests/server/providers/proxy/test_proxy_client.py:420
Function
test_elicit_degradation_message_is_clear_on_modern
FastMCP era-gates elicit: on a 2026-07-28 connection it raises a clear, era-aware error before hitting the wire, instead of the SDK's opaque '
tests/server/test_protocol_eras.py:280
Function
test_elicit_degrades_on_modern
Elicitation is a server-initiated request, removed at 2026-07-28 (SEP-2577), so a tool that uses it must degrade to a surfaced error rather th
tests/server/test_protocol_eras.py:261
Method
test_elicit_form_params_requested_schema_bridged
(self)
tests/test_compat.py:108
Function
test_elicit_model_with_reused_enum
ctx.elicit() accepts a response type whose fields share an enum.
tests/client/test_elicitation_enums.py:187
Method
test_elicit_raises_with_guard_guidance
elicit() inside a background task raises a ToolError pointing to the guard/return pattern (InputRequiredResult).
tests/tasks/server/test_context_background_task.py:296
Method
test_elicit_request
Test that the proxy client correctly forwards the `elicit` request.
tests/server/providers/proxy/test_proxy_client.py:334
Method
test_elicit_url_request
Test that the proxy client forwards a URL-mode `elicit` request as URL mode.
tests/server/providers/proxy/test_proxy_client.py:363
Method
test_elicit_url_request_without_elicitation_id
Test that the proxy rejects a URL-mode request that has no elicitation ID.
tests/server/providers/proxy/test_proxy_client.py:387
Method
test_elicit_with_default_values
Test that the proxy client correctly handles elicitation with default values (fixes #1167).
tests/server/providers/proxy/test_proxy_client.py:607
Function
test_elicit_works_on_legacy
(push_server)
tests/server/test_protocol_eras.py:251
Function
test_elicitation
Requests user input via elicitation.
tests/conformance/server.py:207
Function
test_elicitation_accept_content
Test basic elicitation functionality.
tests/client/test_elicitation.py:59
Method
test_elicitation_bool_response
Test elicitation with boolean schema.
tests/client/test_elicitation.py:367
Function
test_elicitation_cancel_action
Test user canceling elicitation request.
tests/client/test_elicitation.py:258
Function
test_elicitation_decline
Test that elicitation handler receives correct parameters.
tests/client/test_elicitation.py:73
Method
test_elicitation_enum_response
Test elicitation with enum schema.
tests/client/test_elicitation.py:409
Method
test_elicitation_float_response
Test elicitation with number schema.
tests/client/test_elicitation.py:347
Function
test_elicitation_handler_error
Test error handling in elicitation handler.
tests/client/test_elicitation.py:454
Function
test_elicitation_handler_parameters
Test that elicitation handler receives correct parameters.
tests/client/test_elicitation.py:112
Function
test_elicitation_handler_returns_sdk_elicit_result
The SDK's ElicitResult keeps its action instead of becoming accepted content.
tests/client/test_elicitation.py:97
Function
test_elicitation_implicit_acceptance
Test that elicitation handler can return data directly without ElicitResult wrapper.
tests/client/test_elicitation_enums.py:50
Function
test_elicitation_implicit_acceptance_must_be_dict
Test that elicitation handler can return data directly without ElicitResult wrapper.
tests/client/test_elicitation_enums.py:65
Method
test_elicitation_int_response
Test elicitation with number schema.
tests/client/test_elicitation.py:327
Method
test_elicitation_list_of_strings_response
Test elicitation with list schema.
tests/client/test_elicitation.py:433
Method
test_elicitation_literal_response
Test elicitation with literal schema.
tests/client/test_elicitation.py:387
Function
test_elicitation_multiple_calls
Test multiple elicitation calls in sequence.
tests/client/test_elicitation.py:484
Function
test_elicitation_response_title_and_description_on_scalar
response_title and response_description customize the wrapped `value` field.
tests/client/test_elicitation.py:146
Function
test_elicitation_response_title_on_dict_shorthand
response_title applies to the `value` property for dict shorthand.
tests/client/test_elicitation.py:180
Function
test_elicitation_response_title_on_list_shorthand
response_title applies to the `value` property for list shorthand.
tests/client/test_elicitation.py:206
Function
test_elicitation_response_title_rejected_for_basemodel
response_title raises TypeError when response_type is a BaseModel.
tests/client/test_elicitation.py:232
Method
test_elicitation_schema
( self, schema: dict[str, Any], content: dict[str, Any] )
tests/utilities/json_schema_type/test_generated_classes.py:201
Method
test_elicitation_schema_with_any_title
(self, title: str)
tests/utilities/json_schema_type/test_generated_classes.py:229
Function
test_elicitation_sep1034_defaults
Tests elicitation with default values per SEP-1034.
tests/conformance/server.py:228
← previous
next →
9,101–9,200 of 15,974, ranked by callers