MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_retry_skipped_with_static_creds
When static creds are rejected, should raise immediately, not retry.
tests/client/auth/test_oauth_static_client.py:160
Methodtest_retry_still_works_without_static_creds
Without static creds, the retry behavior should be preserved.
tests/client/auth/test_oauth_static_client.py:180
Methodtest_return_exceptions_collects_exceptions
(self)
tests/utilities/test_async_utils.py:133
Methodtest_returned_error_preserves_content_when_not_raising
(self)
tests/tools/tool/test_results.py:112
Methodtest_returned_error_raises_on_client_by_default
(self)
tests/tools/tool/test_results.py:97
Methodtest_returns_azure_provider_directly
When auth is an AzureProvider, return it directly.
tests/server/auth/providers/test_azure_scopes.py:819
Methodtest_returns_cached_version_if_fresh
Uses cached version if cache is fresh.
tests/utilities/test_version_check.py:183
Methodtest_returns_copy_for_matching
Marking returns a copy to avoid mutating shared provider objects.
tests/server/transforms/test_visibility.py:123
Methodtest_returns_empty_dict_when_no_context
(self)
tests/telemetry/test_module.py:34
Methodtest_returns_false_when_no_session
(self)
tests/test_apps.py:439
Methodtest_returns_false_with_missing_scope
(self)
tests/server/auth/test_authorization.py:93
Methodtest_returns_false_with_partial_scopes
(self)
tests/server/auth/test_authorization.py:99
Methodtest_returns_false_without_token
(self)
tests/server/auth/test_authorization.py:105
Methodtest_returns_fastmcp_namespace_when_dict
(self)
tests/utilities/test_components.py:262
Methodtest_returns_first_failing_param_name
(self)
tests/resources/test_resource_security.py:132
Methodtest_returns_highest_version_only
(self)
tests/server/transforms/test_catalog.py:135
Methodtest_returns_image
(self)
tests/tools/test_tool_future_annotations.py:106
Methodtest_returns_manifest_with_files
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:196
Methodtest_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
Methodtest_returns_none_for_no_auth
When auth is None, return None.
tests/server/auth/providers/test_azure_scopes.py:844
Methodtest_returns_none_if_current
Returns None if current version is latest.
tests/utilities/test_version_check.py:256
Methodtest_returns_none_if_disabled
Returns None if check_for_updates is off.
tests/utilities/test_version_check.py:247
Methodtest_returns_none_if_older_available
Returns None if pypi version is older than current (dev version).
tests/utilities/test_version_check.py:282
Methodtest_returns_none_when_refresh_fails
If the upstream refresh call fails, load_access_token returns None.
tests/server/auth/oauth_proxy/test_tokens.py:1799
Methodtest_returns_none_when_refreshed_token_still_invalid
If the refreshed token also fails validation, returns None.
tests/server/auth/oauth_proxy/test_tokens.py:1815
Methodtest_returns_paths_to_downloaded_skills
( self, skills_server: FastMCP, tmp_path: Path )
tests/utilities/test_skills.py:512
Methodtest_returns_results_in_input_order
(self)
tests/utilities/test_async_utils.py:92
Methodtest_returns_section_excluded
(self)
tests/utilities/test_docstring_parsing.py:47
Methodtest_returns_section_excluded_no_params
A parameterless function's Returns section must not bleed into the description, same as it doesn't for functions with Args.
tests/utilities/test_docstring_parsing.py:289
Methodtest_returns_skill_summary_objects
(self, skills_server: FastMCP)
tests/utilities/test_skills.py:139
Methodtest_returns_stale_cache_if_fetch_fails
Returns stale cache if fetch fails.
tests/utilities/test_version_check.py:225
Methodtest_returns_true_with_all_required_scopes
(self)
tests/server/auth/test_authorization.py:87
Methodtest_returns_true_with_matching_scope
(self)
tests/server/auth/test_authorization.py:81
Methodtest_returns_version_if_newer
Returns new version if available.
tests/utilities/test_version_check.py:269
Methodtest_reuses_client_across_calls
Same client instance should be reused across multiple verify_token calls.
tests/server/auth/providers/test_http_client.py:94
Functiontest_review_provenance_requires_pr_head_and_current_target_baseline
( triage, monkeypatch, review, expected )
tests/test_public_triage.py:321
Functiontest_revocation_keeps_body_limit_and_cors
( proxy: OAuthProxy, jwt_verifier, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_revocation.py:214
Methodtest_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:2542
Methodtest_revoke_invalid_token
Test revoking an invalid token.
tests/server/test_auth_integration.py:875
Methodtest_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:2364
Methodtest_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:2442
Methodtest_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:2486
Methodtest_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:2586
Functiontest_revoke_uses_the_current_authenticated_key
()
tests/cli/deploy/test_horizon_client.py:194
Methodtest_revoke_with_malformed_token
(self, test_client, registered_client)
tests/server/test_auth_integration.py:888
Methodtest_revoked_id_jag_token_rejected
( self, idp_key: RSAKeyPair, httpx_mock: HTTPXMock, )
tests/server/auth/oauth_proxy/test_identity_assertion.py:885
Methodtest_rfc6598_cgnat_blocked
RFC6598 Carrier-Grade NAT addresses should be blocked.
tests/server/auth/test_ssrf_protection.py:84
Methodtest_rfc6901_escapes_are_decoded
(self)
tests/utilities/test_json_schema.py:937
Methodtest_role_denial_suppresses_scope_challenge
A caller blocked by their role is not told to obtain a scope.
tests/server/auth/test_authorization.py:203
Functiontest_room_and_scene_routing
(bridge)
examples/smart_home/tests/test_lights.py:107
Functiontest_room_filtered_discovery_and_unknown_room
(bridge)
examples/smart_home/tests/test_lights.py:148
Functiontest_root_import_does_not_load_mcp_sdk
()
tests/server/http/test_startup_imports.py:13
Methodtest_root_level_nullable_boolean
Test nullable boolean at root level.
tests/utilities/openapi/test_nullable_fields.py:33
Methodtest_root_level_nullable_integer
Test nullable integer at root level.
tests/utilities/openapi/test_nullable_fields.py:26
Methodtest_root_level_nullable_string
Test nullable string at root level.
tests/utilities/openapi/test_nullable_fields.py:19
Methodtest_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
Methodtest_root_path_cimd_url_rejected
(self)
tests/client/auth/test_oauth_cimd.py:63
Methodtest_root_path_rejected
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:161
Methodtest_root_path_rejected_when_required
Root paths should be rejected when require_path=True.
tests/server/auth/test_ssrf_protection.py:170
Methodtest_root_ref_to_boolean_schema_does_not_fail_listing
A tool whose schema has a root $ref to a boolean schema is listed. `true` is a valid JSON Schema, but dereferencing it replaces the w
tests/server/middleware/test_dereference.py:138
Functiontest_root_reference_context
(model: bool)
tests/utilities/json_schema_type/test_caching.py:47
Methodtest_roots_handler_answers_a_legacy_server
A callable `roots=` handler still answers a legacy server's request.
tests/client/test_roots.py:57
Functiontest_rotated_key_resolves_after_refresh_interval
( key_data: dict[str, Any], clock: list[float] )
tests/server/auth/test_jwks_refresh.py:70
Functiontest_round_trip_preserves_all_fields
( scope: str | None, task_id: str, task_type: str, identifier: str )
tests/tasks/server/test_task_keys.py:44
Methodtest_round_trips_a_payload
(self)
tests/tasks/server/test_snapshot_encryption.py:87
Methodtest_roundtrip_jsonrpc_message
(self)
tests/server/test_event_store.py:357
Methodtest_roundtrip_preserves_schema
Ensure schema_ field survives dump/reconstruct cycle.
tests/cli/test_config.py:494
Methodtest_roundtrip_with_all_fields
Full config survives dump/reconstruct.
tests/cli/test_config.py:501
Methodtest_route
(request)
tests/server/mount/test_advanced.py:81
Methodtest_route_defaults
Test route default values.
tests/utilities/openapi/test_models.py:320
Methodtest_route_pre_calculated_fields
Test route with pre-calculated fields.
tests/utilities/openapi/test_models.py:270
Methodtest_route_serialization
Test HTTPRoute serialization.
tests/utilities/openapi/test_models.py:416
Methodtest_route_validation
Test HTTPRoute validation.
tests/utilities/openapi/test_models.py:354
Methodtest_route_with_all_fields
Test creating route with all fields.
tests/utilities/openapi/test_models.py:211
Methodtest_route_with_empty_collections
Test route with empty collections.
tests/utilities/openapi/test_models.py:300
Methodtest_route_with_only_request_body
Test route with only request body, no parameters.
tests/utilities/openapi/test_schemas.py:575
Methodtest_route_without_request_body
Test route with only parameters, no request body.
tests/utilities/openapi/test_schemas.py:550
Methodtest_routes_from_server
(self)
tests/server/auth/test_multi_auth.py:408
Functiontest_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
Methodtest_rules_isolated_between_sessions
Test that session rules are isolated between different sessions.
tests/server/test_session_visibility.py:175
Methodtest_rules_persist_across_requests
Test that session rules persist across multiple requests.
tests/server/test_session_visibility.py:140
Methodtest_run_async_explicit_transport_overrides_setting
(self)
tests/utilities/test_tests.py:42
Methodtest_run_async_passes_log_level
Test that run_async passes log_level to transport methods.
tests/server/test_log_level.py:74
Methodtest_run_async_uses_transport_setting
(self)
tests/utilities/test_tests.py:33
Functiontest_run_cli_command_passes_argument_list
(run: Mock)
tests/cli/test_install_cli_arguments.py:469
Methodtest_run_command_calls_prepare_by_default
Test that run_command calls source.prepare() by default.
tests/cli/test_run.py:710
Methodtest_run_command_parsing_basic
Test basic run command parsing.
tests/cli/test_cli.py:163
Methodtest_run_command_parsing_partial_options
Test run command parsing with only some options.
tests/cli/test_cli.py:206
Methodtest_run_command_parsing_project_and_skip_source
Test run command parsing with --project and --skip-source flags.
tests/cli/test_cli.py:380
Methodtest_run_command_parsing_project_flag
Test run command parsing with --project flag.
tests/cli/test_cli.py:353
Methodtest_run_command_parsing_server_args_require_delimiter
Test that server args without -- delimiter are rejected.
tests/cli/test_cli.py:340
Methodtest_run_command_parsing_skip_source_flag
Test run command parsing with --skip-source flag.
tests/cli/test_cli.py:367
Methodtest_run_command_parsing_with_mixed_args
Test run command parsing with both FastMCP options and server args.
tests/cli/test_cli.py:298
Methodtest_run_command_parsing_with_new_options
Test run command parsing with new uv options.
tests/cli/test_cli.py:228
Methodtest_run_command_parsing_with_options
Test run command parsing with various options.
tests/cli/test_cli.py:177
Methodtest_run_command_parsing_with_positional_server_args
Test run command parsing with positional server arguments.
tests/cli/test_cli.py:322
Methodtest_run_command_parsing_with_server_args
Test run command parsing with server arguments after --.
tests/cli/test_cli.py:280
Methodtest_run_command_skips_prepare_with_flag
Test that run_command skips source.prepare() when skip_source=True.
tests/cli/test_run.py:741
Methodtest_run_command_transport_aliases
Test that both 'http' and 'streamable-http' are accepted as valid transport options.
tests/cli/test_cli.py:254
Methodtest_run_creates_mcp_config_server
(self, tmp_path: Path)
tests/cli/test_config_encoding.py:71
← previousnext →13,501–13,600 of 15,974, ranked by callers