MCPcopy Create free account

hub / github.com/ArcadeAI/arcade-mcp / functions

Functions5,311 in github.com/ArcadeAI/arcade-mcp

Methodtest_require_mcp_error_message
Should raise helpful ImportError when MCP SDK is not installed.
libs/tests/arcade_evals/test_loaders.py:384
Functiontest_require_mcp_raises_helpful_error_when_missing
Calling _require_mcp should raise a helpful ImportError if MCP isn't available.
libs/tests/sdk/test_loaders.py:16
Methodtest_required_field_has_no_default_in_model
The Pydantic field metadata for a required param should not declare a default value.
libs/tests/core/test_input_model_strictness.py:183
Methodtest_required_nullable_nested_field_allows_null
A nested field that is required yet nullable (`str | None` with no default) must stay in `required` while its type unions `null`, so a null va
libs/tests/core/converters/test_anthropic.py:479
Methodtest_required_nullable_nested_field_end_to_end
A Pydantic field typed `str | None` with no default is required and nullable; Anthropic must emit it nullable rather than a bare single-type s
libs/tests/core/converters/test_anthropic.py:525
Methodtest_required_parameter_schema
Test required parameter schema generation.
libs/tests/core/converters/test_openai.py:116
Methodtest_required_parameter_schema
Test required parameter schema generation.
libs/tests/core/converters/test_anthropic.py:124
Methodtest_required_policy_not_enforced_for_non_task_capable_sessions
Pin spec compliance: a 2025-06-18 session (or any session that did not declare ``tasks.requests.tools.call``) MUST receive synchronous
libs/tests/arcade_mcp_server/test_server.py:3763
Methodtest_required_tool_rejects_non_task_call
( self, mcp_server, initialized_server_session )
libs/tests/arcade_mcp_server/test_server.py:3669
Methodtest_reserved_and_missing_secrets_reported_separately
A mix of reserved and genuinely-missing secrets keeps each in its own section: only the genuinely-missing one gets the actionable .env guidanc
libs/tests/arcade_mcp_server/test_server.py:1433
Methodtest_reserved_secret_reported_as_reserved_not_missing
A declared reserved secret yields a 'reserved' error, not the misleading 'add it to .env' guidance (the variable may be set but is deliberatel
libs/tests/arcade_mcp_server/test_server.py:1400
Methodtest_reserved_secrets_not_injected_from_environment
The os.environ fallback must not hand reserved credentials to tools.
libs/tests/arcade_mcp_server/test_server.py:1356
Methodtest_reserved_secrets_not_injected_from_pool
A reserved key sitting in the tool pool is still withheld at injection.
libs/tests/arcade_mcp_server/test_server.py:1382
Methodtest_reset_restores_previous
(self)
libs/tests/arcade_mcp_server/test_request_context.py:41
Methodtest_resets_to_anonymous_when_was_authenticated
Test that logout resets to anonymous when user was authenticated.
libs/tests/cli/usage/test_command_tracker.py:236
Methodtest_resolve_float_weight
Test resolving float weight (passthrough).
libs/tests/sdk/test_fuzzy_weight.py:186
Methodtest_resolve_fuzzy_weight
Test resolving FuzzyWeight to float.
libs/tests/sdk/test_fuzzy_weight.py:176
Methodtest_resolve_normalized_name
Test that normalized names (underscores) resolve to original.
libs/tests/arcade_evals/test_schema_converters.py:729
Methodtest_resolve_original_name
Test that original names resolve correctly.
libs/tests/arcade_evals/test_schema_converters.py:722
Functiontest_resolve_provider_api_key
(monkeypatch)
libs/tests/cli/test_utils.py:198
Methodtest_resolve_unknown_name_returns_none
Test that unknown names return None.
libs/tests/arcade_evals/test_schema_converters.py:737
Functiontest_resolve_windows_appdata_delegates_to_platformdirs
_resolve_windows_appdata returns whatever platformdirs resolves.
libs/tests/cli/test_configure.py:115
Functiontest_resolve_windows_appdata_handles_older_platformdirs
Falls back to positional args when platformdirs raises TypeError. The positional signature is user_data_dir(appname, appauthor, version, roaming)
libs/tests/cli/test_configure.py:130
Methodtest_resolved_weight_returns_float
Test that resolved_weight property returns float.
libs/tests/arcade_evals/test_critics.py:304
Methodtest_resolved_weight_with_fuzzy_weight
Test resolved_weight with FuzzyWeight enum.
libs/tests/arcade_evals/test_critics.py:310
Methodtest_resource_decorator_name_defaults_to_function_name
Name defaults to fn.__name__ when using decorator.
libs/tests/arcade_mcp_server/test_mcp_app.py:955
Methodtest_resource_decorator_preserves_function
Decorated function is still directly callable.
libs/tests/arcade_mcp_server/test_mcp_app.py:966
Methodtest_resource_decorator_registers_resource
@app.resource(uri) stores (Resource, fn).
libs/tests/arcade_mcp_server/test_mcp_app.py:942
Methodtest_resource_decorator_template_listed_as_template
(self)
libs/tests/arcade_mcp_server/test_mcp_app.py:1150
Methodtest_resource_decorator_with_annotations
(self)
libs/tests/arcade_mcp_server/test_mcp_app.py:1110
Methodtest_resource_decorator_with_meta
(self)
libs/tests/arcade_mcp_server/test_mcp_app.py:1124
Methodtest_resource_decorator_with_template_uri
(self)
libs/tests/arcade_mcp_server/test_mcp_app.py:1137
Methodtest_resource_decorator_with_title
Verify title is passed through from the decorator.
libs/tests/arcade_mcp_server/test_mcp_app.py:931
Methodtest_resource_handlers
Test adding and using resource handlers.
libs/tests/arcade_mcp_server/test_resource.py:100
Methodtest_resource_metadata_includes_scopes_supported
When ``scopes_supported`` is configured, the RFC 9728 Protected Resource Metadata document MUST include the field so clients without a
libs/tests/arcade_mcp_server/test_resource_server_auth.py:1242
Methodtest_resource_metadata_multiple_as
Test that resource metadata returns all AS URLs.
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2204
Methodtest_resource_metadata_omits_scopes_supported_when_unset
When ``scopes_supported`` is not configured, the RFC 9728 metadata document MUST NOT include ``scopes_supported`` (the field is OPTION
libs/tests/arcade_mcp_server/test_resource_server_auth.py:1263
Methodtest_resource_owner_default_factory_yields_empty_frozenset
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:3112
Methodtest_resource_owner_scope_key_constant
The constant is part of the contract: middleware writes to it, ``enforce_scopes`` reads from it. A rename must be deliberate.
libs/tests/arcade_mcp_server/test_resource_server_scope_enforcement.py:15
Methodtest_resource_reading
Test resource reading through context.
libs/tests/arcade_mcp_server/test_context.py:190
Methodtest_resource_server_all_env_vars
Test ResourceServerAuth with all env vars, no parameters.
libs/tests/arcade_mcp_server/test_resource_server_auth.py:1987
Methodtest_resource_server_auth_accepts_canonical_url_http_for_127_0_0_1
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2306
Methodtest_resource_server_auth_accepts_canonical_url_http_for_ipv6_loopback
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2318
Methodtest_resource_server_auth_accepts_canonical_url_http_for_localhost
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2312
Methodtest_resource_server_auth_accepts_canonical_url_http_for_localhost_uppercase
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2324
Methodtest_resource_server_auth_accepts_canonical_url_with_port
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2408
Methodtest_resource_server_auth_accepts_canonical_url_with_query
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2402
Methodtest_resource_server_auth_accepts_canonical_url_with_well_formed_percent_escape
( self, )
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2368
Methodtest_resource_server_auth_accepts_well_formed_canonical_url
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2396
Methodtest_resource_server_auth_rejects_canonical_url_http_for_0_0_0_0
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2290
Methodtest_resource_server_auth_rejects_canonical_url_http_for_mdns_local
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2300
Methodtest_resource_server_auth_rejects_canonical_url_http_for_non_loopback_host
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2286
Methodtest_resource_server_auth_rejects_canonical_url_http_for_private_ip
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2294
Methodtest_resource_server_auth_rejects_canonical_url_with_bare_hash
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2382
Methodtest_resource_server_auth_rejects_canonical_url_with_dquote
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2330
Methodtest_resource_server_auth_rejects_canonical_url_with_fragment
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2376
Methodtest_resource_server_auth_rejects_canonical_url_with_malformed_percent_escape
( self, )
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2352
Methodtest_resource_server_auth_rejects_canonical_url_with_non_http_scheme
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2282
Methodtest_resource_server_auth_rejects_canonical_url_with_path_and_fragment
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2388
Methodtest_resource_server_auth_rejects_canonical_url_with_space
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2270
Methodtest_resource_server_auth_rejects_canonical_url_with_truncated_percent_escape
( self, )
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2360
Methodtest_resource_server_auth_rejects_canonical_url_with_unencoded_whitespace_in_host
( self, )
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2336
Methodtest_resource_server_auth_rejects_canonical_url_with_unencoded_whitespace_in_path
( self, )
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2344
Methodtest_resource_server_auth_rejects_canonical_url_without_scheme
(self)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2278
Methodtest_resource_server_missing_required
Test that missing required fields raise ValueError.
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2001
Methodtest_resource_server_multiple_as_different_jwks
Test multiple AS with different JWKS (multi-IdP).
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2086
Methodtest_resource_server_multiple_as_shared_jwks
Test multiple AS URLs with same JWKS
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2048
Methodtest_resource_server_param_precedence
Test that explicit parameters take precedence over environment variables.
libs/tests/arcade_mcp_server/test_resource_server_auth.py:1962
Methodtest_resource_server_rejects_unconfigured_as
Test that tokens from unlisted AS are rejected.
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2152
Methodtest_resource_template_with_icons
(self)
libs/tests/arcade_mcp_server/test_types_v2025_11_25.py:407
Methodtest_resource_template_without_icons_excludes_from_dump
(self)
libs/tests/arcade_mcp_server/test_types_v2025_11_25.py:415
Methodtest_resource_with_icons
(self)
libs/tests/arcade_mcp_server/test_types_v2025_11_25.py:397
Methodtest_resources_api
Test the resources API.
libs/tests/arcade_mcp_server/test_mcp_app.py:402
Functiontest_resources_raises_error
Test that accessing context.resources raises RuntimeError.
libs/tests/core/test_schema_mcp_degradation.py:86
Methodtest_response_logging
Test that responses are logged.
libs/tests/arcade_mcp_server/test_logging_middleware.py:62
Functiontest_retryable_error_emits_retry_meta
RetryableToolError -> errorKind=TOOL_RUNTIME_RETRY, canRetry=true, additionalPromptContent present.
libs/tests/arcade_mcp_server/test_tool_error_meta.py:35
Methodtest_returns_401_and_omits_error_description_when_crlf
(self, jwks_data)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:3009
Methodtest_returns_401_and_omits_error_description_when_dquote
(self, jwks_data)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:2999
Methodtest_returns_401_and_omits_error_description_when_non_ascii
(self, jwks_data)
libs/tests/arcade_mcp_server/test_resource_server_auth.py:3016
Methodtest_returns_account_id_from_oauth_whoami
Test that get_principal_id returns account_id using OAuth access token.
libs/tests/cli/usage/test_identity.py:258
Methodtest_returns_anon_id
Test that anon_id property returns the anon_id.
libs/tests/cli/usage/test_identity.py:400
Methodtest_returns_anon_id_when_not_authenticated
Test that get_distinct_id returns anon_id when not authenticated.
libs/tests/cli/usage/test_identity.py:171
Methodtest_returns_dict_list
Test executing a tool that returns a list of dicts.
libs/tests/core/test_typeddict_output_execution.py:255
Methodtest_returns_empty_on_error
(self, _ctx: MagicMock, mock_get: MagicMock)
libs/tests/cli/test_connect.py:252
Methodtest_returns_false_if_everything_fails
If all methods fail, _open_browser should return False.
libs/tests/cli/test_authn_callback.py:328
Methodtest_returns_false_when_already_linked
Test that should_alias returns False when principal_id already linked.
libs/tests/cli/usage/test_identity.py:298
Methodtest_returns_false_when_cache_fresh
(self)
libs/tests/cli/test_update.py:385
Methodtest_returns_false_when_disabled_env_var
(self)
libs/tests/cli/test_update.py:389
Methodtest_returns_false_when_not_authenticated
Test that should_alias returns False when not authenticated.
libs/tests/cli/usage/test_identity.py:316
Methodtest_returns_gateway_dict
(self, _ctx: MagicMock, mock_post: MagicMock)
libs/tests/cli/test_connect.py:269
Methodtest_returns_items
(self, _ctx: MagicMock, mock_get: MagicMock)
libs/tests/cli/test_connect.py:240
Methodtest_returns_linked_principal_id_when_persisted
Test that get_distinct_id returns persisted linked_principal_id.
libs/tests/cli/usage/test_identity.py:144
Methodtest_returns_list_of_typeddict
Test executing a tool that returns a list of TypedDict.
libs/tests/core/test_typeddict_output_execution.py:151
Methodtest_returns_nested_typeddict
Test executing a tool that returns a nested TypedDict.
libs/tests/core/test_typeddict_output_execution.py:210
Methodtest_returns_none_for_empty_gateways
(self)
libs/tests/cli/test_connect.py:204
Methodtest_returns_none_on_api_failure
Test that get_principal_id returns None on API failure.
libs/tests/cli/usage/test_identity.py:217
Methodtest_returns_none_on_http_error
(self)
libs/tests/cli/test_update.py:122
Methodtest_returns_none_on_non_200_status
Test that get_principal_id returns None on non-200 status code.
libs/tests/cli/usage/test_identity.py:242
Methodtest_returns_none_when_api_key_missing
Test that get_principal_id returns None when API key is missing.
libs/tests/cli/usage/test_identity.py:230
Methodtest_returns_none_when_credentials_file_not_exists
Test that get_principal_id returns None when credentials file doesn't exist.
libs/tests/cli/usage/test_identity.py:186
← previousnext →4,401–4,500 of 5,311, ranked by callers