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
Method
test_different_tokens_different_hashes
(self)
tests/utilities/test_token_cache.py:220
Method
test_different_tool_names_different_hash
(self)
tests/server/providers/test_addressing.py:31
Method
test_differing_options_do_not_disturb_a_session_in_use
Tearing down a live session would break the client already on it.
tests/client/client/test_session.py:287
Method
test_differing_options_rebuild_an_idle_session
(self, monkeypatch)
tests/client/client/test_session.py:277
Method
test_digit_prefix
(self)
tests/cli/test_generate_cli.py:709
Function
test_dir
Create a temporary directory with test files.
tests/server/test_file_server.py:12
Method
test_direct_array_no_title
Test direct array schema without title.
tests/utilities/openapi/test_direct_array_schemas.py:139
Method
test_direct_array_optional
Test direct array schema that's not required.
tests/utilities/openapi/test_direct_array_schemas.py:196
Method
test_direct_array_title_sanitization
Test that titles with special characters are sanitized.
tests/utilities/openapi/test_direct_array_schemas.py:222
Method
test_direct_array_title_starting_with_number
Test that titles starting with numbers are handled.
tests/utilities/openapi/test_direct_array_schemas.py:247
Method
test_direct_client_still_enforces_the_schema
The behavior change is scoped to proxies, not clients generally.
tests/server/providers/proxy/test_proxy_server.py:1277
Method
test_direct_lookup
FastMCPApp.get_app_tool finds tools by app name + tool name.
tests/test_fastmcp_app.py:326
Method
test_direct_multi_server_client_drives_modern_guard_round_trips
The config-based client itself stays modern through every backend leg.
tests/server/test_mrtr_guards.py:638
Method
test_direct_primitive_schema
Test direct primitive (non-array) request body schema.
tests/utilities/openapi/test_direct_array_schemas.py:169
Function
test_direct_tool_annotations_in_client_api
Test direct ToolAnnotations object is correctly accessible via client API.
tests/server/test_tool_annotations.py:140
Function
test_direct_tool_annotations_in_tool_manager
Test direct ToolAnnotations object is correctly stored in tool manager.
tests/server/test_tool_annotations.py:112
Method
test_director_initialization
Test RequestDirector initialization.
tests/utilities/openapi/test_director.py:157
Method
test_directory_exits
Directories should not be treated as file paths.
tests/cli/test_client_commands.py:270
Method
test_disable_all
match_all=True disables all components.
tests/server/transforms/test_visibility.py:132
Method
test_disable_components_sends_notifications
Test that disable_components sends all three notification types.
tests/server/test_session_visibility.py:432
Method
test_disable_components_stores_rule_dict
Test that disable_components stores a rule dict in session state.
tests/server/test_session_visibility.py:86
Method
test_disable_marks_as_disabled
Visibility(False, ...) marks matching components as disabled.
tests/server/transforms/test_visibility.py:101
Method
test_disable_overrides_enable
A disable after enable results in disabled.
tests/server/transforms/test_visibility.py:151
Method
test_disable_prompt_route
Test disabling a prompt via the HTTP route.
tests/contrib/test_component_manager.py:167
Method
test_disable_pruning_additional_properties
Test disabling pruning of additionalProperties.
tests/utilities/test_json_schema.py:508
Method
test_disable_raises_not_implemented_error
Test that disable() raises NotImplementedError with migration guidance.
tests/utilities/test_components.py:289
Method
test_disable_reset_loop
Repeated disable/reset cycles should work every time (the exact bug from #3034).
tests/server/test_session_visibility.py:673
Method
test_disable_resource_route
Test disabling a resource via the HTTP route.
tests/contrib/test_component_manager.py:107
Method
test_disable_resource_route_with_path
( self, client_with_path, mcp_with_path )
tests/contrib/test_component_manager.py:449
Method
test_disable_template_route
Test disabling a resource template via the HTTP route.
tests/contrib/test_component_manager.py:137
Method
test_disable_then_reset_restores_tools
After disable + reset within the same session, tools should reappear.
tests/server/test_session_visibility.py:636
Method
test_disable_tool_route
Test disabling a tool via the HTTP route.
tests/contrib/test_component_manager.py:74
Method
test_disable_transformed_tool
(self)
tests/tools/tool_transform/test_args.py:433
Method
test_disabled_by_default
OIDCProxy without verify_id_token returns False.
tests/server/auth/test_oidc_proxy_token.py:337
Method
test_disabled_configurations
(self, ttl: int | None, max_size: int | None)
tests/utilities/test_token_cache.py:37
Method
test_disabled_output_schema_no_structured_content
(self)
tests/server/providers/local_provider_tools/test_output_schema.py:90
Method
test_disabled_protection_accepts_message
( self, unprotected_server: ASGIServer, )
tests/server/http/test_sse_host_origin_protection.py:155
Method
test_disabled_protection_opens_stream
( self, unprotected_server: ASGIServer, )
tests/server/http/test_sse_host_origin_protection.py:122
Method
test_disabled_resource_cannot_be_read
Disabled resources cannot be read via read_resource tool.
tests/server/transforms/test_resources_as_tools.py:345
Method
test_disabled_resources_hidden_from_list
Disabled resources are not listed via list_resources tool.
tests/server/transforms/test_resources_as_tools.py:323
Method
test_disabled_tool_excluded
(self)
tests/server/transforms/test_catalog.py:206
Function
test_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:630
Function
test_disconnected_pinned_client_is_not_cloned
()
tests/server/providers/proxy/test_server_metadata.py:452
Method
test_discord_provider_threads_http_client
(self)
tests/server/auth/providers/test_http_client.py:296
Method
test_discord_specific_scopes
Test handling of Discord-specific scope formats.
tests/server/auth/providers/test_discord.py:70
Method
test_discover_and_import_empty
Should return empty result for empty directory.
tests/fs/test_discovery.py:298
Method
test_discover_and_import_skips_bad_imports
Should skip files that fail to import and track them.
tests/fs/test_discovery.py:326
Method
test_discover_and_import_with_tools
Should discover and import tools.
tests/fs/test_discovery.py:304
Method
test_discover_files_empty_dir
Should return empty list for empty directory.
tests/fs/test_discovery.py:22
Method
test_discover_files_nonexistent_dir
Should return empty list for nonexistent directory.
tests/fs/test_discovery.py:27
Method
test_discover_files_recursive
Should find files in subdirectories.
tests/fs/test_discovery.py:51
Method
test_discover_files_single_file
Should find a single Python file.
tests/fs/test_discovery.py:33
Method
test_discover_files_skips_init
Should skip __init__.py files.
tests/fs/test_discovery.py:41
Method
test_discover_files_skips_pycache
Should skip __pycache__ directories.
tests/fs/test_discovery.py:63
Method
test_discover_files_sorted
Files should be returned in sorted order.
tests/fs/test_discovery.py:75
Method
test_discover_scopes_supported_lazily
scopes_supported are discovered lazily and cached after first fetch.
tests/server/auth/providers/test_descope.py:119
Method
test_discovered_tool_meta_includes_version
get_meta() should include version for tools discovered via filesystem.
tests/fs/test_discovery.py:449
Method
test_discovered_tool_runs_through_the_proxy
(self)
tests/experimental/transforms/test_jev_search.py:377
Method
test_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
Method
test_discriminator_property_describes_the_variants
The discriminator names which fields belong to which variant.
tests/server/providers/openapi/test_openapi_discriminator.py:191
Method
test_discriminator_property_remains_required_after_inlining
(self)
tests/utilities/test_json_schema.py:323
Function
test_discriminator_property_remains_required_when_removed
()
tests/utilities/openapi/test_discriminator.py:6
Method
test_dispatcher_with_fastmcp1x
Test that the main get_fastmcp_info function correctly dispatches to v1.
tests/utilities/test_inspect.py:538
Method
test_dispatcher_with_fastmcp2x
Test that the main get_fastmcp_info function correctly dispatches to v2.
tests/utilities/test_inspect.py:555
Method
test_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:714
Method
test_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:453
Method
test_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:304
Function
test_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
Method
test_distinct_created_ids_are_isolated
(self)
tests/server/test_session_provider.py:322
Method
test_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:667
Method
test_distinct_ids_are_isolated
(self)
tests/server/test_sessions.py:150
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:258
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:351
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:308
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
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:466
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:18
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:505
Method
test_docstring_without_args_section
(self)
tests/utilities/test_docstring_parsing.py:411
Method
test_docstring_without_args_section
Summary-only docstrings produce a description with no arg descriptions.
tests/prompts/test_prompt.py:599
Method
test_docstring_works_with_numpy_and_sphinx_styles
(self)
tests/prompts/test_prompt.py:528
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:93
Method
test_does_not_modify_external_ref
Test that external $refs (not pointing to $defs) are not resolved.
tests/utilities/test_json_schema.py:985
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:953
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:976
Method
test_does_not_modify_schema_without_ref
Test that schemas without $ref are not modified.
tests/utilities/test_json_schema.py:966
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:83
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:389
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:72
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:381
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:426
Method
test_domain_trailing_slash_stripped
Test that trailing slashes are stripped from the domain.
tests/server/auth/providers/test_clerk.py:79
← previous
next →
7,601–7,700 of 13,374, ranked by callers