MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

Methodtest_discovered_tool_meta_includes_version
get_meta() should include version for tools discovered via filesystem.
tests/fs/test_discovery.py:481
Methodtest_discovered_tool_runs_through_the_proxy
(self)
tests/experimental/transforms/test_jev_search.py:377
Functiontest_discovery_on_a_legacy_provider
( tmp_path: Path, supporting_files: Literal["template", "resources"] )
tests/skills/test_list_skill_resources.py:52
Functiontest_discovery_records_extraction_failure
( tmp_path: Path, invalid_component: tuple[str, str] )
tests/fs/test_extraction_failures.py:54
Functiontest_discovery_round_trip_preserves_bytes
()
tests/skills/test_provider.py:53
Methodtest_discriminator_keyword_is_dropped
The mapping points at $defs that get pruned, so it cannot survive.
tests/server/providers/openapi/test_openapi_discriminator.py:199
Methodtest_discriminator_property_describes_the_variants
The discriminator names which fields belong to which variant.
tests/server/providers/openapi/test_openapi_discriminator.py:191
Methodtest_discriminator_property_remains_required_after_inlining
(self)
tests/utilities/test_json_schema.py:324
Functiontest_discriminator_property_remains_required_when_removed
()
tests/utilities/openapi/test_discriminator.py:6
Functiontest_discussion_after_first_page_and_historical_review
(triage, monkeypatch)
tests/test_public_triage.py:60
Functiontest_discussion_failure_preserves_successful_head_observation
(triage, monkeypatch)
tests/test_public_triage.py:202
Methodtest_dispatcher_with_fastmcp1x
Test that the main get_fastmcp_info function correctly dispatches to v1.
tests/utilities/test_inspect.py:540
Methodtest_dispatcher_with_fastmcp2x
Test that the main get_fastmcp_info function correctly dispatches to v2.
tests/utilities/test_inspect.py:557
Methodtest_display_name_call_is_unchanged
(self)
tests/server/auth/test_authorization.py:1740
Methodtest_display_name_shaped_like_hashed_address_wins
A display tool whose name parses as a hashed address resolves by display name before hashed dispatch is tried.
tests/test_fastmcp_app.py:550
Functiontest_disposition_labels_still_reduce_attention
(ranking_module, label)
tests/test_issue_ranking.py:144
Methodtest_distinct_app_names_route_independently_through_a_gateway
The multi-tenant gateway shape: distinct app names stay unambiguous no matter how many backends sit behind one proxy.
tests/server/providers/test_prefab_roundtrip.py:747
Methodtest_distinct_apps_sharing_a_backend_name
Identity and name must agree in both directions. Two apps can each expose `save`: the identities differ and each has one candidate, but
tests/server/providers/test_prefab_roundtrip.py:486
Methodtest_distinct_client_ids_do_not_share_cached_tokens
Two providers with different client_ids sharing one store against the same endpoint each retain their own token instead of clobbering one
tests/client/auth/test_client_credentials.py:349
Functiontest_distinct_clients_cannot_access_each_others_tasks
Two distinct client_ids live in disjoint scopes: a peer's id is 'not found'.
tests/tasks/server/test_task_security.py:64
Methodtest_distinct_created_ids_are_isolated
(self)
tests/server/test_session_provider.py:375
Methodtest_distinct_hashes_resolve_independently
Two apps sharing a name but with different tool names hash differently, so each tool resolves to itself.
tests/server/providers/test_prefab_roundtrip.py:700
Methodtest_distinct_ids_are_isolated
(self)
tests/server/test_sessions.py:150
Functiontest_distinct_names_survive
(claude_project, user, local, expected)
tests/cli/test_claude_code_precedence.py:62
Methodtest_distinct_names_warn_independently
(self)
tests/test_compat.py:130
Methodtest_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
Methodtest_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:396
Methodtest_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
Functiontest_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
Functiontest_distinct_unknown_ids_share_recent_refresh
(key_data: dict[str, Any])
tests/server/auth/test_jwks_refresh.py:32
Methodtest_distinct_versions_unaffected_by_tiebreak
(self)
tests/server/versioning/test_versioning.py:152
Functiontest_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
Functiontest_doc_imports_handle_comments_aliases_and_skip_archived_docs
(pbt, tmp_path)
tests/test_pbt_coverage.py:64
Methodtest_doc_scope_is_intersected_with_valid_scopes
Only the allowlisted portion of a document scope is granted.
tests/server/auth/test_cimd_validators.py:645
Methodtest_doc_scope_outside_valid_scopes_is_not_granted
A document-declared scope outside the server's allowlist is unusable.
tests/server/auth/test_cimd_validators.py:616
Methodtest_doc_scope_takes_precedence_over_default
When the CIMD document specifies scope, it wins over the default.
tests/server/auth/test_cimd_validators.py:592
Methodtest_doc_scope_within_valid_scopes_is_preserved
A document scope that is fully allowlisted keeps working.
tests/server/auth/test_cimd_validators.py:674
Functiontest_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
Functiontest_docket_not_initialized_without_task_components
Docket is only initialized when task-enabled components exist.
tests/server/test_server_docket.py:20
Functiontest_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
Methodtest_docstring_populates_argument_descriptions
Google-style docstrings should populate PromptArgument descriptions.
tests/prompts/test_prompt.py:553
Methodtest_docstring_without_args_section
(self)
tests/utilities/test_docstring_parsing.py:522
Methodtest_docstring_without_args_section
Summary-only docstrings produce a description with no arg descriptions.
tests/prompts/test_prompt.py:647
Methodtest_docstring_works_with_numpy_and_sphinx_styles
(self)
tests/prompts/test_prompt.py:576
Methodtest_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
Methodtest_does_not_modify_external_ref
Test that external $refs (not pointing to $defs) are not resolved.
tests/utilities/test_json_schema.py:1180
Methodtest_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
Methodtest_does_not_modify_schema_without_defs
Test that schemas with $ref but without $defs are not modified.
tests/utilities/test_json_schema.py:1171
Methodtest_does_not_modify_schema_without_ref
Test that schemas without $ref are not modified.
tests/utilities/test_json_schema.py:1161
Methodtest_does_not_mutate_anyof_list
_convert_nullable_field should not append to the original anyOf list.
tests/utilities/openapi/test_nullable_fields.py:565
Methodtest_does_not_mutate_input
Test that _prune_param does not mutate the original schema.
tests/utilities/test_json_schema.py:84
Methodtest_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
Methodtest_does_not_mutate_original_tool
Middleware should not mutate the shared Tool object.
tests/server/middleware/test_dereference.py:70
Methodtest_does_not_shadow_existing_snake_field
(self)
tests/test_compat.py:165
Methodtest_does_not_start_duplicate_task
Test that duplicate messages from same connection don't spawn duplicates.
tests/server/middleware/test_ping.py:75
Methodtest_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
Methodtest_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
Methodtest_domain_and_prefers_border_reach_resource
(self)
tests/server/providers/test_prefab_synthesis.py:105
Methodtest_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
Methodtest_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
Methodtest_dot_dot_slash_is_encoded
(self, director, path_route)
tests/utilities/openapi/test_director.py:1197
Methodtest_dot_segments_still_rejected_after_normalization
(self)
tests/server/auth/test_redirect_validation.py:864
Methodtest_dots_and_slashes
(self)
tests/cli/test_generate_cli.py:100
Methodtest_dotted_values_encode_dots
Dots are encoded to prevent path normalization by urljoin.
tests/utilities/openapi/test_director.py:1223
Methodtest_double_encoded_traversal
(self, director, path_route)
tests/utilities/openapi/test_director.py:1244
Methodtest_downloads_all_skills
(self, skills_server: FastMCP, tmp_path: Path)
tests/utilities/test_skills.py:475
Methodtest_downloads_blob_resources
(self, tmp_path: Path)
tests/utilities/test_skills.py:451
Methodtest_downloads_skill_to_directory
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:258
Functiontest_dropped_args_error_if_provided
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:188
Methodtest_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
Functiontest_duplicate_close_uses_complete_evidence
( endpoint: str, scenario: str, writes: list[str], monkeypatch: pytest.MonkeyPatch )
tests/scripts/test_auto_close_duplicates.py:18
Methodtest_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
Functiontest_duplicate_event_name_is_rejected
()
tests/experimental/events/test_extension.py:596
Functiontest_duplicate_explicit_registration_still_raises
()
tests/server/test_provider_extensions.py:227
Functiontest_duplicate_followup_reopens_only_current_bot_closure
( association: str, scenario: str, expected_requests: list[str], closer: int )
tests/scripts/test_auto_close_duplicates.py:99
Functiontest_duplicate_identifier_rejected
()
tests/server/test_extensions.py:465
Methodtest_duplicate_names_get_numbered_suffixes
(self)
tests/server/providers/openapi/test_server.py:386
Methodtest_duplicate_project_key_spellings_use_one_entry
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:344
Methodtest_duplicate_rename_targets_raises_error
Test that duplicate target names in ToolTransform raises ValueError.
tests/server/providers/test_transforming_provider.py:125
Methodtest_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
Methodtest_duplicate_tool_rename_targets_raises_error
Test that duplicate target names in tool_renames raises ValueError.
tests/server/mount/test_advanced.py:453
Functiontest_duplicate_uris_are_omitted_from_list_and_get
( caplog: pytest.LogCaptureFixture, )
tests/skills/test_extension.py:408
Methodtest_duration_invalid
(self, duration_format)
tests/utilities/json_schema_type/test_formats.py:165
Methodtest_duration_valid
(self, duration_format)
tests/utilities/json_schema_type/test_formats.py:159
Methodtest_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
Methodtest_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
Methodtest_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
Functiontest_dynamically_attached_descendant_inherits_all_root_restrictions
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:193
Functiontest_each_event_kind_reaches_listener
( server: FastMCP, listen_kwargs, publish, expected )
tests/server/test_subscriptions.py:209
Methodtest_each_helper_warns_once_with_its_replacement
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:112
Methodtest_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
Methodtest_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
Methodtest_echo_log
(self, fastmcp_server: FastMCP, caplog)
tests/client/test_logs.py:70
Methodtest_elicit_accept_response
Test that the proxy client correctly forwards the `elicit` accept response.
tests/server/providers/proxy/test_proxy_client.py:477
Methodtest_elicit_decline_response
Test that the proxy client correctly forwards the `elicit` decline response.
tests/server/providers/proxy/test_proxy_client.py:495
Functiontest_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
Functiontest_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
Methodtest_elicit_form_params_requested_schema_bridged
(self)
tests/test_compat.py:108
Functiontest_elicit_model_with_reused_enum
ctx.elicit() accepts a response type whose fields share an enum.
tests/client/test_elicitation_enums.py:187
Methodtest_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
← previousnext →9,601–9,700 of 16,725, ranked by callers