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
Function
test_result_claims_merge_with_extension_claims
Explicit result_claims merge with an advertised extension's own claims.
tests/client/test_client_extensions.py:208
Method
test_retry_actually_retries_through_server_pipeline
Retry middleware should retry tool calls that raise retryable errors. FastMCP wraps tool exceptions as ToolError(...) from <original>,
tests/server/middleware/test_error_handling.py:572
Method
test_retry_middleware_with_permanent_failures
A tool error whose cause is not in ``retry_exceptions`` should fail on the first attempt — no retries.
tests/server/middleware/test_error_handling.py:604
Method
test_retry_skipped_with_static_creds
When static creds are rejected, should raise immediately, not retry.
tests/client/auth/test_oauth_static_client.py:133
Method
test_retry_still_works_without_static_creds
Without static creds, the retry behavior should be preserved.
tests/client/auth/test_oauth_static_client.py:153
Method
test_return_exceptions_collects_exceptions
(self)
tests/utilities/test_async_utils.py:81
Method
test_returned_error_preserves_content_when_not_raising
(self)
tests/tools/tool/test_results.py:111
Method
test_returned_error_raises_on_client_by_default
(self)
tests/tools/tool/test_results.py:96
Method
test_returns_azure_provider_directly
When auth is an AzureProvider, return it directly.
tests/server/auth/providers/test_azure_scopes.py:819
Method
test_returns_cached_version_if_fresh
Uses cached version if cache is fresh.
tests/utilities/test_version_check.py:178
Method
test_returns_copy_for_matching
Marking returns a copy to avoid mutating shared provider objects.
tests/server/transforms/test_visibility.py:123
Method
test_returns_empty_dict_when_no_context
(self)
tests/telemetry/test_module.py:34
Method
test_returns_false_when_no_session
(self)
tests/test_apps.py:438
Method
test_returns_false_with_missing_scope
(self)
tests/server/auth/test_authorization.py:76
Method
test_returns_false_with_partial_scopes
(self)
tests/server/auth/test_authorization.py:82
Method
test_returns_false_without_token
(self)
tests/server/auth/test_authorization.py:88
Method
test_returns_fastmcp_namespace_when_dict
(self)
tests/utilities/test_components.py:262
Method
test_returns_first_failing_param_name
(self)
tests/resources/test_resource_security.py:132
Method
test_returns_highest_version_only
(self)
tests/server/transforms/test_catalog.py:135
Method
test_returns_image
(self)
tests/tools/test_tool_future_annotations.py:106
Method
test_returns_manifest_with_files
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:170
Method
test_returns_none_for_multiauth_without_azure_server
When MultiAuth has no server or a non-Azure server, return None.
tests/server/auth/providers/test_azure_scopes.py:848
Method
test_returns_none_for_no_auth
When auth is None, return None.
tests/server/auth/providers/test_azure_scopes.py:844
Method
test_returns_none_if_current
Returns None if current version is latest.
tests/utilities/test_version_check.py:251
Method
test_returns_none_if_disabled
Returns None if check_for_updates is off.
tests/utilities/test_version_check.py:242
Method
test_returns_none_if_older_available
Returns None if pypi version is older than current (dev version).
tests/utilities/test_version_check.py:277
Method
test_returns_none_when_refresh_fails
If the upstream refresh call fails, load_access_token returns None.
tests/server/auth/oauth_proxy/test_tokens.py:1537
Method
test_returns_none_when_refreshed_token_still_invalid
If the refreshed token also fails validation, returns None.
tests/server/auth/oauth_proxy/test_tokens.py:1553
Method
test_returns_paths_to_downloaded_skills
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:442
Method
test_returns_results_in_input_order
(self)
tests/utilities/test_async_utils.py:59
Method
test_returns_section_excluded
(self)
tests/utilities/test_docstring_parsing.py:45
Method
test_returns_skill_summary_objects
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:113
Method
test_returns_stale_cache_if_fetch_fails
Returns stale cache if fetch fails.
tests/utilities/test_version_check.py:220
Method
test_returns_true_with_all_required_scopes
(self)
tests/server/auth/test_authorization.py:70
Method
test_returns_true_with_matching_scope
(self)
tests/server/auth/test_authorization.py:64
Method
test_returns_version_if_newer
Returns new version if available.
tests/utilities/test_version_check.py:264
Method
test_reuses_client_across_calls
Same client instance should be reused across multiple verify_token calls.
tests/server/auth/providers/test_http_client.py:94
Method
test_revoke_expired_refresh_token_warns_and_skips_upstream
Refresh JWT verification failure is warned about after local deletion.
tests/server/auth/oauth_proxy/test_tokens.py:2211
Method
test_revoke_invalid_token
Test revoking an invalid token.
tests/server/test_auth_integration.py:875
Method
test_revoke_refresh_token_posts_upstream_token
The upstream POST contains the provider's refresh token, not the FastMCP JWT.
tests/server/auth/oauth_proxy/test_tokens.py:2033
Method
test_revoke_refresh_token_without_mapping_skips_upstream
A missing JTI mapping warns and never sends the FastMCP JWT upstream.
tests/server/auth/oauth_proxy/test_tokens.py:2111
Method
test_revoke_refresh_token_without_upstream_record_skips_upstream
A mapping to an absent upstream record warns and skips the POST.
tests/server/auth/oauth_proxy/test_tokens.py:2155
Method
test_revoke_refresh_token_without_upstream_refresh_skips_upstream
A missing or empty upstream refresh token never falls back to the JWT.
tests/server/auth/oauth_proxy/test_tokens.py:2255
Function
test_revoke_uses_the_current_authenticated_key
()
tests/cli/deploy/test_horizon_client.py:194
Method
test_revoke_with_malformed_token
(self, test_client, registered_client)
tests/server/test_auth_integration.py:888
Method
test_revoked_id_jag_token_rejected
( self, idp_key: RSAKeyPair, httpx_mock: HTTPXMock, )
tests/server/auth/oauth_proxy/test_identity_assertion.py:885
Method
test_rfc6598_cgnat_blocked
RFC6598 Carrier-Grade NAT addresses should be blocked.
tests/server/auth/test_ssrf_protection.py:82
Method
test_role_denial_suppresses_scope_challenge
A caller blocked by their role is not told to obtain a scope.
tests/server/auth/test_authorization.py:186
Function
test_room_and_scene_routing
(bridge)
examples/smart_home/tests/test_lights.py:107
Function
test_room_filtered_discovery_and_unknown_room
(bridge)
examples/smart_home/tests/test_lights.py:148
Function
test_root_import_does_not_load_mcp_sdk
()
tests/server/http/test_startup_imports.py:13
Method
test_root_level_nullable_boolean
Test nullable boolean at root level.
tests/utilities/openapi/test_nullable_fields.py:33
Method
test_root_level_nullable_integer
Test nullable integer at root level.
tests/utilities/openapi/test_nullable_fields.py:26
Method
test_root_level_nullable_string
Test nullable string at root level.
tests/utilities/openapi/test_nullable_fields.py:19
Method
test_root_middleware_wraps_task_submission
For a tasked call, the root's middleware wraps submission. The interceptor composes at the registering (parent) server and short-circ
tests/tasks/server/test_task_mount.py:484
Method
test_root_path_cimd_url_rejected
(self)
tests/client/auth/test_oauth_cimd.py:63
Method
test_root_path_rejected
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:161
Method
test_root_path_rejected_when_required
Root paths should be rejected when require_path=True.
tests/server/auth/test_ssrf_protection.py:168
Method
test_roots_handler_answers_a_legacy_server
A callable `roots=` handler still answers a legacy server's request.
tests/client/test_roots.py:57
Function
test_round_trip_preserves_all_fields
( scope: str | None, task_id: str, task_type: str, identifier: str )
tests/tasks/server/test_task_keys.py:44
Method
test_round_trips_a_payload
(self)
tests/tasks/server/test_snapshot_encryption.py:87
Method
test_roundtrip_jsonrpc_message
(self)
tests/server/test_event_store.py:350
Method
test_roundtrip_preserves_schema
Ensure schema_ field survives dump/reconstruct cycle.
tests/cli/test_config.py:443
Method
test_roundtrip_with_all_fields
Full config survives dump/reconstruct.
tests/cli/test_config.py:450
Method
test_route
(request)
tests/server/mount/test_advanced.py:81
Method
test_route_defaults
Test route default values.
tests/utilities/openapi/test_models.py:320
Method
test_route_pre_calculated_fields
Test route with pre-calculated fields.
tests/utilities/openapi/test_models.py:270
Method
test_route_serialization
Test HTTPRoute serialization.
tests/utilities/openapi/test_models.py:416
Method
test_route_validation
Test HTTPRoute validation.
tests/utilities/openapi/test_models.py:354
Method
test_route_with_all_fields
Test creating route with all fields.
tests/utilities/openapi/test_models.py:211
Method
test_route_with_empty_collections
Test route with empty collections.
tests/utilities/openapi/test_models.py:300
Method
test_route_with_only_request_body
Test route with only request body, no parameters.
tests/utilities/openapi/test_schemas.py:573
Method
test_route_without_request_body
Test route with only parameters, no request body.
tests/utilities/openapi/test_schemas.py:548
Method
test_routes_from_server
(self)
tests/server/auth/test_multi_auth.py:331
Function
test_routing_headers_survive_host_origin_protection
The Host/Origin request guard does not strip the routing headers.
tests/server/http/test_routable_headers.py:61
Method
test_rules_isolated_between_sessions
Test that session rules are isolated between different sessions.
tests/server/test_session_visibility.py:175
Method
test_rules_persist_across_requests
Test that session rules persist across multiple requests.
tests/server/test_session_visibility.py:140
Method
test_run_async_explicit_transport_overrides_setting
(self)
tests/utilities/test_tests.py:36
Method
test_run_async_passes_log_level
Test that run_async passes log_level to transport methods.
tests/server/test_log_level.py:74
Method
test_run_async_uses_transport_setting
(self)
tests/utilities/test_tests.py:27
Function
test_run_cli_command_passes_argument_list
(run: Mock)
tests/cli/test_install_cli_arguments.py:469
Method
test_run_command_calls_prepare_by_default
Test that run_command calls source.prepare() by default.
tests/cli/test_run.py:499
Method
test_run_command_parsing_basic
Test basic run command parsing.
tests/cli/test_cli.py:161
Method
test_run_command_parsing_partial_options
Test run command parsing with only some options.
tests/cli/test_cli.py:204
Method
test_run_command_parsing_project_and_skip_source
Test run command parsing with --project and --skip-source flags.
tests/cli/test_cli.py:378
Method
test_run_command_parsing_project_flag
Test run command parsing with --project flag.
tests/cli/test_cli.py:351
Method
test_run_command_parsing_server_args_require_delimiter
Test that server args without -- delimiter are rejected.
tests/cli/test_cli.py:338
Method
test_run_command_parsing_skip_source_flag
Test run command parsing with --skip-source flag.
tests/cli/test_cli.py:365
Method
test_run_command_parsing_with_mixed_args
Test run command parsing with both FastMCP options and server args.
tests/cli/test_cli.py:296
Method
test_run_command_parsing_with_new_options
Test run command parsing with new uv options.
tests/cli/test_cli.py:226
Method
test_run_command_parsing_with_options
Test run command parsing with various options.
tests/cli/test_cli.py:175
Method
test_run_command_parsing_with_positional_server_args
Test run command parsing with positional server arguments.
tests/cli/test_cli.py:320
Method
test_run_command_parsing_with_server_args
Test run command parsing with server arguments after --.
tests/cli/test_cli.py:278
Method
test_run_command_skips_prepare_with_flag
Test that run_command skips source.prepare() when skip_source=True.
tests/cli/test_run.py:530
Method
test_run_command_transport_aliases
Test that both 'http' and 'streamable-http' are accepted as valid transport options.
tests/cli/test_cli.py:252
Method
test_run_creates_mcp_config_server
(self, tmp_path: Path)
tests/cli/test_config_encoding.py:70
Method
test_run_dev_apps_log_panel_propagation
Test run command can run a dev app with below new options for issue 4121. - toggle log-panel option to hide log/debug message in normal cases.
tests/cli/test_run.py:1200
Method
test_run_dev_apps_with_host
Test run command can run a dev app with below new options for issue 4121. - host option to support binding specific address other than localho
tests/cli/test_run.py:1143
Method
test_run_http_accepts_log_level
Test that run_http_async accepts log_level parameter.
tests/server/test_log_level.py:35
Method
test_run_http_passes_sockets_to_uvicorn
Test that run_http_async forwards pre-bound sockets to Uvicorn.
tests/server/test_log_level.py:54
← previous
next →
11,301–11,400 of 13,374, ranked by callers