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_supported_scopes_from_verifier_only_configuration
(self)
tests/server/auth/test_multi_auth.py:144
Method
test_supporting_files_as_resources
Test that supporting_files='resources' shows all files.
tests/server/providers/test_skills_provider.py:721
Method
test_supporting_files_as_resources_no_templates
In resources mode, no templates should be exposed.
tests/server/providers/test_skills_provider.py:737
Method
test_supporting_files_parameter
(self)
tests/server/providers/test_skills_provider.py:882
Method
test_suppress_block_silences_a_single_call
The scoped form suppresses one call and leaves the next instrumented.
tests/telemetry/test_interop.py:261
Method
test_suppress_cannot_override_off
`off` means FastMCP touches nothing. A narrower request to skip FastMCP's spans must not re-enable the propagation `off` omits.
tests/telemetry/test_interop.py:70
Method
test_suppress_downgrades_native_to_propagation_only
(self)
tests/telemetry/test_interop.py:64
Method
test_suppress_nests
(self)
tests/telemetry/test_interop.py:77
Method
test_suppress_restores_on_exception
(self)
tests/telemetry/test_interop.py:85
Method
test_suppresses_shortfall_disclosure_of_sibling_scope_checks
One opaque check withholds the whole list's scope requirements.
tests/server/auth/test_authorization.py:158
Method
test_survives_a_collapsed_catalog
Tool search and code mode replace tools/list wholesale, so there is no better name to bind to. The reference stays identity-addressed and
tests/server/providers/test_prefab_roundtrip.py:337
Method
test_survives_model_copy
(self)
tests/test_compat.py:147
Method
test_survives_model_validate
(self)
tests/test_compat.py:154
Method
test_survives_namespace_transform
get_app_tool bypasses namespace transforms.
tests/test_fastmcp_app.py:379
Method
test_symmetric_algorithm_accepts_bytes_secret
HS* algorithms accept bytes secrets without TypeError.
tests/server/auth/test_jwt_provider.py:361
Method
test_symmetric_algorithm_rejects_jwks_uri
HS* algorithms must not be configured with JWKS/public key endpoints.
tests/server/auth/test_jwt_provider.py:343
Method
test_symmetric_algorithm_rejects_pem_public_key
HS* algorithms must use a shared secret, not PEM public key material.
tests/server/auth/test_jwt_provider.py:352
Method
test_symmetric_token_algorithm_mismatch
Test that tokens with mismatched algorithms are rejected.
tests/server/auth/test_jwt_provider.py:511
Method
test_symmetric_token_audience_validation
Test audience validation with symmetric key tokens.
tests/server/auth/test_jwt_provider.py:435
Method
test_symmetric_token_expiration
Test expiration validation with symmetric key tokens.
tests/server/auth/test_jwt_provider.py:472
Method
test_symmetric_token_invalid_signature
Test rejection of tokens with invalid signatures.
tests/server/auth/test_jwt_provider.py:496
Method
test_symmetric_token_issuer_validation
Test issuer validation with symmetric key tokens.
tests/server/auth/test_jwt_provider.py:413
Method
test_symmetric_token_scope_extraction
Test scope extraction from symmetric key tokens.
tests/server/auth/test_jwt_provider.py:457
Method
test_symmetric_token_with_different_algorithms
Test that different HMAC algorithms work correctly.
tests/server/auth/test_jwt_provider.py:390
Method
test_sync_body_pydantic_error_propagates
(self)
tests/tools/tool/test_argument_validation.py:77
Function
test_sync_callable_class_tool_with_task_true_raises
Callable class with sync __call__ and task=True should raise.
tests/tasks/server/test_sync_function_task_disabled.py:88
Function
test_sync_completion_handler_runs_off_event_loop_thread
A sync handler is offloaded to a threadpool so blocking work in it can't stall the event loop, matching how sync tools/prompts/resources run.
tests/server/test_completions.py:187
Method
test_sync_constraint_violation
(self)
tests/tools/tool/test_argument_validation.py:35
Function
test_sync_context_functions_work_in_background_with_context
Sync helpers work via ContextVar when Context loads the snapshot.
tests/tasks/server/test_concurrent_dependencies.py:211
Function
test_sync_context_functions_work_in_background_without_deps
Sync helpers like get_http_headers() work in a background task even when the tool declares no Context or CurrentRequest dependency. This exer
tests/tasks/server/test_concurrent_dependencies.py:187
Method
test_sync_default_runs_in_worker_thread
Default sync dispatch runs on a thread distinct from the loop's.
tests/tools/test_tool_run_in_thread.py:27
Method
test_sync_function_returning_awaitable_is_awaited
Test sync wrappers that return awaitables.
tests/resources/test_function_resources.py:165
Method
test_sync_function_with_forbidden_mode_ok
Sync functions should work fine with mode='forbidden'.
tests/tasks/server/test_task_config.py:293
Method
test_sync_function_with_optional_mode_raises
Sync functions should raise ValueError with mode='optional'.
tests/tasks/server/test_task_config.py:283
Method
test_sync_function_with_required_mode_raises
Sync functions should raise ValueError with mode='required'.
tests/tasks/server/test_task_config.py:273
Method
test_sync_function_with_task_true_raises
Sync functions should raise ValueError when task=True.
tests/tasks/server/test_task_config.py:263
Method
test_sync_only_mounted_tool_runs_synchronously
A task=False mounted tool runs sync even when the client opts in.
tests/tasks/server/test_task_mount.py:102
Method
test_sync_only_tool_runs_sync_through_proxy
A sync-only tool also runs sync through the proxy with the opt-in.
tests/tasks/server/test_task_proxy.py:96
Method
test_sync_only_tool_works
A sync-only tool works through the proxy.
tests/tasks/server/test_task_proxy.py:72
Method
test_sync_partial_with_task_true_raises
(self)
tests/utilities/test_async_utils.py:252
Function
test_sync_prompt_context_manager_stays_open
Test that sync context manager dependencies work with prompts.
tests/server/test_dependencies.py:553
Method
test_sync_prompt_runs_concurrently
Test that sync prompts run in threadpool and don't block each other.
tests/prompts/test_prompt.py:899
Function
test_sync_resource_context_manager_stays_open
Test that sync context manager dependencies work with resources.
tests/server/test_dependencies.py:505
Method
test_sync_resource_runs_concurrently
Test that sync resources run in threadpool and don't block each other.
tests/resources/test_function_resources.py:332
Function
test_sync_resource_template_context_manager_stays_open
Test that sync context manager dependencies work with resource templates.
tests/server/test_dependencies.py:527
Method
test_sync_run_accepts_log_level
Test that the synchronous run method accepts log_level.
tests/server/test_log_level.py:94
Method
test_sync_run_in_thread_false_rejects_timeout
Combining timeout with run_in_thread=False on a sync fn is rejected. Inline execution has no cancellation checkpoints, so anyio.fail_after
tests/tools/test_tool_run_in_thread.py:77
Method
test_sync_run_in_thread_false_runs_on_loop_thread
run_in_thread=False runs the sync fn on the event loop thread.
tests/tools/test_tool_run_in_thread.py:41
Method
test_sync_timeout_exceeded
Sync tool timeout works with CPU-bound operations.
tests/tools/test_tool_timeout.py:85
Function
test_sync_tool_context_manager_stays_open
Test that sync context manager dependencies work with tools.
tests/server/test_dependencies.py:479
Function
test_sync_tool_with_async_dependency
Test that sync tools work with async dependencies.
tests/server/test_dependencies.py:195
Method
test_sync_tool_with_context_runs_concurrently
Test that sync tools with Context dependency also run concurrently.
tests/tools/tool/test_callable.py:80
Function
test_sync_tool_with_explicit_task_true_raises
Sync tool with task=True raises ValueError.
tests/tasks/server/test_sync_function_task_disabled.py:15
Function
test_sync_tool_with_inherited_task_true_raises
Sync tool inheriting task=True from server raises ValueError.
tests/tasks/server/test_sync_function_task_disabled.py:29
Function
test_sync_tool_with_task_false_works
Sync tool with explicit task=False works (no error).
tests/tasks/server/test_sync_function_task_disabled.py:57
Method
test_sync_tools_run_concurrently
Test that sync tools run in threadpool and don't block each other. Uses a threading barrier to prove concurrent execution: all calls must
tests/tools/tool/test_callable.py:45
Function
test_sync_transform_fn
Sync transform_fn should not crash when called (was unconditionally awaited).
tests/tools/tool_transform/test_tool_transform.py:787
Method
test_sync_valid_call
(self)
tests/tools/tool/test_argument_validation.py:128
Method
test_sync_validator_can_reject_tokens
(self)
tests/server/auth/providers/test_debug.py:24
Method
test_sync_with_context_runs_on_loop_thread
run_in_thread=False must also apply to sync tools with injected Context (or Depends). Without this, without_injected_parameters() wra
tests/tools/test_tool_run_in_thread.py:54
Function
test_synchronous_tool_call_without_opt_in
A tool called without a tasks opt-in executes synchronously as before.
tests/tasks/server/test_task_tools.py:199
Method
test_synthetic_client_can_allow_unregistered_redirect_uris
Synthetic clients can opt in to broad redirect URI compatibility.
tests/server/auth/test_oauth_proxy_redirect_validation.py:80
Method
test_synthetic_tools_have_titles
Synthetic search/call tools must carry a title. Some MCP clients (e.g. ChatGPT) drop tools with no `title` field, which breaks tool-s
tests/server/transforms/test_search.py:143
Method
test_syspath_not_polluted_after_import
sys.path should not contain the file's parent after import_module_from_file returns.
tests/fs/test_discovery.py:494
Method
test_syspath_not_polluted_after_package_import
sys.path should not contain the package root's parent after a package import.
tests/fs/test_discovery.py:501
Function
test_tagged_resource_metadata
Test that resource metadata is preserved in MCP format.
tests/client/client/test_client.py:799
Function
test_tagged_template_functionality
Test that tagged templates function correctly when accessed.
tests/client/client/test_client.py:827
Function
test_tagged_template_metadata
Test that template metadata is preserved in MCP format.
tests/client/client/test_client.py:813
Method
test_tags_deduplication
Test that tags are deduplicated when passed as a sequence.
tests/utilities/test_components.py:171
Method
test_tags_with_none_values
Test tags behavior with various input types.
tests/utilities/test_components.py:348
Method
test_tampered_cookie_is_ignored
Verify tampered approval cookie is ignored and consent page shown.
tests/server/auth/test_oauth_consent_flow.py:1146
Method
test_tampered_request_state_rejected
A modified requestState echo fails the boundary's integrity check with the frozen wire error, before the tool runs.
tests/server/test_mrtr_guards.py:752
Function
test_task
(progress: Progress = Progress())
tests/tasks/server/test_progress_dependency.py:41
Function
test_task_arguments_are_coerced_like_sync_path
()
tests/tasks/server/test_extension.py:234
Function
test_task_arguments_are_coerced_like_sync_path
A string-for-int arg coerces on the task path exactly as on the sync path.
tests/tasks/server/test_task_tools.py:93
Function
test_task_basic_types_match_sync
Task mode returns basic types identically to the synchronous path.
tests/tasks/server/test_task_return_types.py:133
Function
test_task_binary_types_match_sync
Task mode handles binary and special types identically to sync.
tests/tasks/server/test_task_return_types.py:175
Function
test_task_collection_types_match_sync
Task mode handles collection types identically to sync.
tests/tasks/server/test_task_return_types.py:217
Method
test_task_config_passed_directly
TaskConfig should be preserved when passed directly.
tests/tasks/server/test_task_config.py:110
Function
test_task_discovery_lists_one_tool_for_a_shared_name
()
tests/tasks/server/test_task_middleware.py:135
Function
test_task_discovery_skips_a_registered_tool_shadowed_by_a_synchronous_injected_tool
()
tests/tasks/server/test_task_middleware.py:223
Method
test_task_enabled_tool_runs_sync_through_proxy
A backend `task=True` tool runs sync through the forbidden proxy.
tests/tasks/server/test_task_proxy.py:82
Function
test_task_execution_auto_populated_for_task_enabled_tool
Test that execution.task_support is automatically set when tool has task=True.
tests/server/test_tool_annotations.py:224
Function
test_task_execution_omitted_for_task_disabled_tool
Test that execution is not set when tool has task=False or default.
tests/server/test_tool_annotations.py:245
Method
test_task_false_normalizes_to_forbidden
task=False should normalize to TaskConfig(mode='forbidden').
tests/tasks/server/test_task_config.py:98
Method
test_task_id_has_docstring
task_id property should have documentation.
tests/tasks/server/test_context_background_task.py:324
Function
test_task_ids_are_server_generated_and_distinct
()
tests/tasks/server/test_extension.py:168
Function
test_task_mcp_content_types_match_sync
Task mode handles MCP content block types identically to sync.
tests/tasks/server/test_task_return_types.py:422
Function
test_task_media_types_match_sync
Task mode handles media types (Image, Audio, File) identically to sync.
tests/tasks/server/test_task_return_types.py:268
Function
test_task_metadata_includes_task_id_and_ttl
A submitted task carries a server-generated id and a positive TTL.
tests/tasks/server/test_task_protocol.py:35
Function
test_task_method_without_capability_raises_missing_capability
tasks/get from a client that did not declare the extension gets -32021.
tests/tasks/server/test_extension.py:425
Function
test_task_started_during_hashed_lookup_resolves_names_normally
()
tests/server/test_hashed_tool_dispatch.py:368
Function
test_task_structured_types_match_sync
Task mode handles TypedDict, dataclass, union and optional returns.
tests/tasks/server/test_task_return_types.py:340
Function
test_task_submission_honors_field_level_strictness
A lax server still rejects coercion the parameter itself declared strict.
tests/tasks/server/test_task_tools.py:148
Function
test_task_submission_honors_strict_input_validation
Strict input validation rejects lax coercion on the task path too. With ``strict_input_validation=True`` a lax coercion like ``{"n": "1"}`` for
tests/tasks/server/test_task_tools.py:109
Function
test_task_teardown_does_not_hang
In-memory transport must tear down in under 2 seconds after a task call. This is a regression test for a teardown ordering bug where the Docket
tests/client/transports/test_memory_transport.py:24
Function
test_task_tool_added_by_catalog_transform_is_registered
()
tests/tasks/server/test_task_catalog_transforms.py:101
Function
test_task_tool_coerces_model_arguments
Model-typed args are coerced to model instances on the task path (#4349). The synchronous path validates arguments through the function's TypeAda
tests/tasks/server/test_task_tools.py:68
Function
test_task_tool_without_extension_fails_at_serve_time
()
tests/tasks/server/test_extension.py:304
Function
test_task_tools_with_distinct_names_all_run_as_background_tasks
()
tests/tasks/server/test_task_middleware.py:195
← previous
next →
12,001–12,100 of 13,374, ranked by callers