Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
Method
test_structured_logging_middleware_produces_json
Test that structured logging middleware produces parseable JSON logs.
tests/server/middleware/test_logging.py:539
Function
test_structured_middleware_shares_the_filter
()
tests/server/middleware/test_logging_methods_filter.py:70
Method
test_structured_output_schema
(self, annotation)
tests/server/providers/local_provider_tools/test_output_schema.py:71
Function
test_structured_response_type
Test elicitation with dataclass response type.
tests/client/test_elicitation.py:549
Method
test_structured_unstructured_and_meta_content
(self, client)
tests/tools/tool/test_results.py:63
Method
test_sub_half_rate_default_burst_admits_requests
( self, mock_context, mock_call_next, monkeypatch, global_limit )
tests/server/middleware/test_rate_limiting.py:313
Method
test_sub_lifespan_is_executed
(self)
tests/server/mount/test_proxy.py:201
Method
test_sub_pointer_names_the_container_definition
(self)
tests/utilities/test_json_schema.py:946
Method
test_subclass_is_instance
Test that subclasses are instances of Provider.
tests/server/test_providers.py:293
Function
test_subclass_lock_around_inherited_lookup_does_not_deadlock
( key_data: dict[str, Any], )
tests/server/auth/test_jwks_refresh.py:227
Method
test_subdomain_wildcard
Test wildcard matching for subdomains.
tests/server/auth/test_redirect_validation.py:330
Method
test_subject_carried_over_when_converting_sdk_access_token
A raw SDK AccessToken with a populated subject survives conversion.
tests/server/http/test_stale_access_token.py:181
Method
test_subject_is_none_without_sub_claim
A JWT with no 'sub' claim yields subject=None instead of crashing.
tests/server/auth/test_jwt_provider.py:629
Method
test_subject_none_when_converting_sdk_access_token_without_subject
A raw SDK AccessToken with no subject converts cleanly to subject=None.
tests/server/http/test_stale_access_token.py:203
Method
test_subject_populated_from_sub_claim
A JWT bearing a 'sub' claim results in a populated subject.
tests/server/auth/test_jwt_provider.py:614
Method
test_submit_boolean_false_omitted
Unchecked checkboxes omit the field; submit_form should still succeed.
tests/apps/test_form.py:98
Method
test_submit_boolean_true_preserved
When a boolean field is explicitly True, it should be preserved.
tests/apps/test_form.py:111
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:502
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
← previous
next →
14,401–14,500 of 16,098, ranked by callers