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_submit_no_data_does_not_crash
When data is omitted entirely, the tool should not raise a missing argument error.
tests/apps/test_form.py:123
Method
test_submit_validates_and_returns_json
(self)
tests/apps/test_form.py:57
Method
test_submit_with_callback
(self)
tests/apps/test_form.py:70
Method
test_subtype_body_is_unaffected
A body referencing the child still resolves through allOf only.
tests/server/providers/openapi/test_openapi_discriminator.py:281
Method
test_subtype_fields_are_advertised
Fields reachable only through discriminator.mapping reach the schema.
tests/server/providers/openapi/test_openapi_discriminator.py:179
Method
test_subtype_fields_are_optional
Only the discriminator is required; variant fields never are.
tests/server/providers/openapi/test_openapi_discriminator.py:185
Method
test_succeeds_with_redis_url
Test that it succeeds with Redis URL.
tests/cli/test_tasks.py:43
Method
test_success
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:167
Method
test_success
(self, mock_print, mock_open)
tests/cli/test_goose.py:188
Method
test_success_delegates_to_assertion_validator
On success, validate_private_key_jwt delegates to the assertion validator.
tests/server/auth/test_cimd_validators.py:693
Method
test_success_redirect_does_not_duplicate_iss_already_in_redirect_uri
RFC 9207 P2 regression: a registered redirect_uri may already carry its own `iss` query parameter — distinct from the provider adding
tests/server/auth/test_enhanced_error_responses.py:402
Method
test_success_redirect_does_not_duplicate_iss_already_in_redirect_uri
RFC 9207 P2 regression at the success-redirect call site: a registered redirect_uri already carrying `iss` must end up with exactly on
tests/server/auth/oauth_proxy/test_oauth_proxy.py:535
Method
test_success_redirect_from_authorize_override_includes_issuer
RFC 9207 regression: a `code` redirect returned directly by `authorize()` (bypassing consent/upstream) must carry `iss` too, not just
tests/server/auth/test_enhanced_error_responses.py:339
Method
test_success_redirect_with_matching_iss_not_duplicated
If a provider's `authorize()` override already stamped the correct `iss` on its redirect, `handle()` must not append a second one — RF
tests/server/auth/test_enhanced_error_responses.py:470
Method
test_success_redirect_with_mismatched_iss_is_corrected
A provider's `authorize()` override can put an `iss` on its redirect that doesn't match what this server advertises in its own discove
tests/server/auth/test_enhanced_error_responses.py:521
Method
test_success_uses_uvx
(self, mock_print, mock_open)
tests/cli/test_goose.py:203
Method
test_successful_authorization_not_enhanced
Test that successful authorizations are not modified by enhancement.
tests/server/auth/test_enhanced_error_responses.py:220
Method
test_successful_none_result
(self)
tests/utilities/test_async_utils.py:98
Method
test_successful_result_is_still_cached
(self)
tests/server/middleware/test_caching.py:802
Function
test_successful_scope_verification_is_cached
()
tests/server/auth/providers/test_github_transient_failures.py:321
Method
test_suffix_does_not_reuse_an_existing_name
( self, routes: list[tuple[str, str]] )
tests/server/providers/openapi/test_server.py:410
Method
test_summary_and_detail_are_truncated
(self)
tests/experimental/transforms/test_jev_search.py:320
Function
test_summary_counts_unique_humans_and_flags_first_time_candidates
()
tests/scripts/test_release_contributor_credit.py:195
Method
test_summary_only
(self)
tests/utilities/test_docstring_parsing.py:198
Method
test_supported_pattern_still_enforced
Valid patterns are not affected by the fallback logic.
tests/utilities/json_schema_type/test_json_schema_type.py:472
Method
test_supported_scopes_from_server
(self)
tests/server/auth/test_multi_auth.py:164
Method
test_supported_scopes_from_verifier_only_configuration
(self)
tests/server/auth/test_multi_auth.py:183
Function
test_supporting_file_preserves_content
( tmp_path: Path, supporting_files: Literal["template", "resources"], filename: str, content:
tests/server/providers/test_skill_supporting_reads.py:29
Method
test_supporting_files_as_resources
Test that supporting_files='resources' shows all files.
tests/server/providers/test_skills_provider.py:835
Method
test_supporting_files_as_resources_no_templates
In resources mode, no templates should be exposed.
tests/server/providers/test_skills_provider.py:851
Method
test_supporting_files_parameter
(self)
tests/server/providers/test_skills_provider.py:996
Function
test_supporting_files_stay_in_the_loaded_directory_after_a_link_swap
( tmp_path: Path, )
tests/server/providers/test_skill_main_files.py:164
Function
test_supporting_skill_files_are_not_discovered
( tmp_path: Path, provider: str, prefix: str )
tests/skills/test_list_skill_resources.py:30
Function
test_supporting_text_still_rejects_invalid_utf8
( tmp_path: Path, supporting_files: Literal["template", "resources"] )
tests/server/providers/test_skill_supporting_reads.py:55
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:175
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:370
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
Function
test_symlink_inside_a_skill_rejects_it
(tmp_path: Path)
tests/skills/test_directory_provider.py:137
Function
test_symlink_named_differently_from_its_skill_is_rejected
(tmp_path: Path)
tests/skills/test_directory_provider.py:181
Function
test_symlinked_config_anchors_paths_beside_the_link
A symlinked fastmcp.json resolves relative paths beside the link, not its target.
tests/cli/test_run_config.py:375
Function
test_symlinked_skill_folder_is_followed
(tmp_path: Path)
tests/skills/test_directory_provider.py:127
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:36
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
Function
test_sync_factory_generator_obeys_thread_dispatch
( run_in_thread: bool, )
tests/tools/test_generator_thread_dispatch.py:60
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
Function
test_sync_function_with_task_true_still_raises
()
tests/tasks/server/test_task_async_generator_tools.py:104
Function
test_sync_generator_consumed_before_dependency_cleanup
()
tests/tools/test_generator_thread_dispatch.py:150
Function
test_sync_generator_obeys_thread_dispatch
( run_in_thread: bool, inject_context: bool )
tests/tools/test_generator_thread_dispatch.py:29
Function
test_sync_generator_runs_on_worker
( injection: Literal["none", "context", "dependency"], )
tests/tools/tool_transform/test_generator_execution.py:15
Method
test_sync_generator_sees_open_dependency
Sync generators share the same lifetime requirement.
tests/server/test_dependencies_advanced.py:317
Function
test_sync_generator_tool_with_task_true_still_raises
()
tests/tasks/server/test_task_async_generator_tools.py:94
Function
test_sync_installs_supporting_skill_files
(tmp_path: Path)
tests/skills/test_list_skill_resources.py:70
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:304
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:1034
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_template_runs_concurrently
Sync template functions run in the threadpool and don't block each other.
tests/resources/test_resource_template.py:249
Method
test_sync_timeout_exceeded
A sync result returned after the deadline is a timeout error.
tests/tools/test_tool_timeout.py:88
Method
test_sync_timeout_preserves_dependency_lifetime
Dependencies remain available until a timed-out worker finishes.
tests/tools/test_tool_timeout.py:103
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
← previous
next →
14,301–14,400 of 15,974, ranked by callers