MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

Methodtest_disable_components_sends_notifications
Test that disable_components sends all three notification types.
tests/server/test_session_visibility.py:432
Methodtest_disable_components_stores_rule_dict
Test that disable_components stores a rule dict in session state.
tests/server/test_session_visibility.py:86
Methodtest_disable_marks_as_disabled
Visibility(False, ...) marks matching components as disabled.
tests/server/transforms/test_visibility.py:101
Methodtest_disable_overrides_enable
A disable after enable results in disabled.
tests/server/transforms/test_visibility.py:151
Methodtest_disable_prompt_route
Test disabling a prompt via the HTTP route.
tests/contrib/test_component_manager.py:219
Methodtest_disable_pruning_additional_properties
Test disabling pruning of additionalProperties.
tests/utilities/test_json_schema.py:598
Methodtest_disable_raises_not_implemented_error
Test that disable() raises NotImplementedError with migration guidance.
tests/utilities/test_components.py:289
Methodtest_disable_reset_loop
Repeated disable/reset cycles should work every time (the exact bug from #3034).
tests/server/test_session_visibility.py:707
Methodtest_disable_resource_route
Test disabling a resource via the HTTP route.
tests/contrib/test_component_manager.py:159
Methodtest_disable_resource_route_with_path
( self, client_with_path, mcp_with_path )
tests/contrib/test_component_manager.py:501
Methodtest_disable_template_route
Test disabling a resource template via the HTTP route.
tests/contrib/test_component_manager.py:189
Methodtest_disable_then_reset_restores_tools
After disable + reset within the same session, tools should reappear.
tests/server/test_session_visibility.py:670
Methodtest_disable_tool_route
Test disabling a tool via the HTTP route.
tests/contrib/test_component_manager.py:75
Methodtest_disable_tool_route_with_version
Test disabling a specific tool version via the HTTP route.
tests/contrib/test_component_manager.py:91
Methodtest_disable_transformed_tool
(self)
tests/tools/tool_transform/test_args.py:510
Methodtest_disabled_by_default
OIDCProxy without verify_id_token returns False.
tests/server/auth/test_oidc_proxy_token.py:337
Methodtest_disabled_components_stay_hidden
(self)
tests/server/test_session_scope.py:71
Methodtest_disabled_configurations
(self, ttl: int | None, max_size: int | None)
tests/utilities/test_token_cache.py:37
Functiontest_disabled_listen_is_not_served_or_advertised
With the setting off, modern-era connections look as they did before FastMCP served `subscriptions/listen`.
tests/server/test_subscriptions.py:96
Functiontest_disabled_listen_leaves_handshake_era_unchanged
( listen_disabled_server: FastMCP, )
tests/server/test_subscriptions.py:125
Functiontest_disabled_notify_is_a_noop
(listen_disabled_server: FastMCP)
tests/server/test_subscriptions.py:117
Methodtest_disabled_output_schema_no_structured_content
(self)
tests/server/providers/local_provider_tools/test_output_schema.py:89
Methodtest_disabled_protection_accepts_message
( self, unprotected_server: ASGIServer, )
tests/server/http/test_sse_host_origin_protection.py:155
Methodtest_disabled_protection_opens_stream
( self, unprotected_server: ASGIServer, )
tests/server/http/test_sse_host_origin_protection.py:122
Functiontest_disabled_references_complete_like_unknown_ones
(mode)
tests/server/test_completions.py:401
Methodtest_disabled_resource_cannot_be_read
Disabled resources cannot be read via read_resource tool.
tests/server/transforms/test_resources_as_tools.py:389
Methodtest_disabled_resource_in_mounted_server_is_not_served_by_template
( self, )
tests/server/providers/test_local_provider_resources.py:874
Methodtest_disabled_resource_is_not_served_by_matching_template
(self)
tests/server/providers/test_local_provider_resources.py:838
Methodtest_disabled_resource_is_not_served_through_proxy_template
(self)
tests/server/providers/test_local_provider_resources.py:856
Methodtest_disabled_resources_hidden_from_list
Disabled resources are not listed via list_resources tool.
tests/server/transforms/test_resources_as_tools.py:367
Methodtest_disabled_tool_excluded
(self)
tests/server/transforms/test_catalog.py:206
Functiontest_disabled_validation_preserves_unexpected_array
()
tests/server/providers/openapi/test_bodiless_success_responses.py:213
Functiontest_disconnect_with_hanging_transport_does_not_leak_session_task
A hung transport teardown must not leak the background session task. Simulates the failure mode reported in https://github.com/PrefectHQ/fast
tests/client/client/test_client.py:687
Functiontest_disconnected_pinned_client_is_not_cloned
()
tests/server/providers/proxy/test_server_metadata.py:455
Methodtest_discord_provider_threads_http_client
(self)
tests/server/auth/providers/test_http_client.py:296
Methodtest_discord_specific_scopes
Test handling of Discord-specific scope formats.
tests/server/auth/providers/test_discord.py:70
Methodtest_discover_and_import_empty
Should return empty result for empty directory.
tests/fs/test_discovery.py:330
Methodtest_discover_and_import_skips_bad_imports
Should skip files that fail to import and track them.
tests/fs/test_discovery.py:358
Methodtest_discover_and_import_with_tools
Should discover and import tools.
tests/fs/test_discovery.py:336
Methodtest_discover_files_empty_dir
Should return empty list for empty directory.
tests/fs/test_discovery.py:23
Methodtest_discover_files_nonexistent_dir
Should return empty list for nonexistent directory.
tests/fs/test_discovery.py:28
Methodtest_discover_files_recursive
Should find files in subdirectories.
tests/fs/test_discovery.py:52
Methodtest_discover_files_single_file
Should find a single Python file.
tests/fs/test_discovery.py:34
Methodtest_discover_files_skips_init
Should skip __init__.py files.
tests/fs/test_discovery.py:42
Methodtest_discover_files_skips_pycache
Should skip __pycache__ directories.
tests/fs/test_discovery.py:64
Methodtest_discover_files_sorted
Files should be returned in sorted order.
tests/fs/test_discovery.py:76
Methodtest_discover_scopes_supported_lazily
scopes_supported are discovered lazily and cached after first fetch.
tests/server/auth/providers/test_descope.py:119
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_name_colliding_with_execute_is_rejected
( math_server: FastMCP, )
tests/experimental/client/test_code_mode_client.py:265
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_reflects_tools_added_after_connect
( math_server: FastMCP, )
tests/experimental/client/test_code_mode_client.py:79
Functiontest_discovery_round_trip_preserves_bytes
()
tests/skills/test_provider.py:53
Functiontest_discovery_sees_tags_from_remote_meta
(math_server: FastMCP)
tests/experimental/client/test_code_mode_client.py:70
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:325
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:599
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:693
Methodtest_docstring_works_with_numpy_and_sphinx_styles
(self)
tests/prompts/test_prompt.py:622
Functiontest_document_scopes_never_widen_the_servers
(valid, requested)
tests/pbt/test_auth_url_guards.py:501
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:1181
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:1149
Methodtest_does_not_modify_schema_without_defs
Test that schemas with $ref but without $defs are not modified.
tests/utilities/test_json_schema.py:1172
Methodtest_does_not_modify_schema_without_ref
Test that schemas without $ref are not modified.
tests/utilities/test_json_schema.py:1162
← previousnext →10,101–10,200 of 17,519, ranked by callers