MCPcopy Create free account

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

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

↓ 10 callersMethodadd_mcp_stdio_server
Add tools from an MCP stdio server. Args: command: Command to start the MCP server. env: Optional environment variabl
libs/arcade-evals/arcade_evals/_evalsuite/_convenience.py:142
↓ 10 callersMethodcall_tool
(self, call_tool_request)
libs/tests/worker/test_worker_base.py:427
↓ 10 callersMethodclose
(self)
libs/arcade-core/arcade_core/network/org_transport.py:43
↓ 10 callersFunctiondenormalize_tool_name
Reverse the normalization of a tool name. This converts provider-format names back to Arcade's dot notation. Note: This is a best-effort
libs/arcade-core/arcade_core/converters/utils.py:35
↓ 10 callersFunctionget_auth_headers
Get authorization headers for API calls. Args: coordinator_url: Coordinator URL for token refresh (optional for legacy) Returns
libs/arcade-cli/arcade_cli/utils.py:647
↓ 10 callersMethodget_prompt
( self, name: str, arguments: dict[str, str] | None = None )
libs/arcade-mcp-server/arcade_mcp_server/managers/prompt.py:74
↓ 10 callersFunctiongraceful_terminate_process
Terminate a process with Windows-friendly graceful fallback behavior. On Windows, try ``CTRL_BREAK_EVENT`` first (when supported) so child pr
libs/arcade-core/arcade_core/subprocess_utils.py:51
↓ 10 callersMethodhas_tool
(self, tool_name: str)
libs/arcade-evals/arcade_evals/_evalsuite/_tool_registry.py:243
↓ 10 callersMethodload_from_file
Load the configuration from the YAML file in the configuration directory. Returns: Config: The loaded configuration.
libs/arcade-core/arcade_core/config_model.py:214
↓ 10 callersFunctionparse_output_paths
Parse --output/-o paths into base path and format list. Supports: - Single file with extension: "results.json" → ("results", ["json"]) -
libs/arcade-cli/arcade_cli/utils.py:107
↓ 10 callersFunctionread_update_cache
Read the update cache from disk. Returns None if missing or corrupt.
libs/arcade-cli/arcade_cli/update.py:52
↓ 10 callersMethodsend_response
Send a response to a server-initiated request.
libs/tests/arcade_mcp_server/integration/test_end_to_end.py:364
↓ 10 callersFunctionversion_has_feature
Check if a protocol version supports a given feature.
libs/arcade-mcp-server/arcade_mcp_server/types.py:61
↓ 9 callersMethod__init__
( self, message: str, developer_message: str | None = None, *, status_
libs/arcade-core/arcade_core/errors.py:347
↓ 9 callersMethod_clean_up_memory_streams
Clean up memory streams for a request.
libs/arcade-mcp-server/arcade_mcp_server/transports/http_streamable.py:350
↓ 9 callersFunction_create_transport_error_response
Create a transport-level error response. The body MUST OMIT the id field entirely — transport errors have no associated request id. Uses a ra
libs/arcade-mcp-server/arcade_mcp_server/transports/http_session_manager.py:33
↓ 9 callersFunction_extract_scopes
Legacy helper: normalize scope extraction across OAuth provider formats. Retained as a thin shim around the validator's ``_extract_granted_sc
libs/arcade-mcp-server/arcade_mcp_server/server.py:169
↓ 9 callersMethod_format_value
Format a value for display, truncating if too long.
libs/arcade-cli/arcade_cli/formatters/text.py:1153
↓ 9 callersMethod_get_configuration_overrides
Get configuration overrides from environment variables.
libs/arcade-mcp-server/arcade_mcp_server/mcp_app.py:700
↓ 9 callersFunction_now
()
examples/mcp_servers/pctx_code_mode/src/pctx_code_mode/store.py:13
↓ 9 callersMethod_parse_retry_ms
Parses a rate limit header and returns the number of milliseconds until the rate limit resets. Args: headers: A
libs/arcade-tdk/arcade_tdk/providers/http/error_adapter.py:73
↓ 9 callersFunction_run
( cmd: list[str], *, cwd: Path, capture_output: bool = False, )
tests/integration/no_auth_cli_smoke.py:22
↓ 9 callersMethod_run_with_reload
Run with file watching for auto-reload. This method runs as the parent process that watches for file changes and spawns/rest
libs/arcade-mcp-server/arcade_mcp_server/mcp_app.py:596
↓ 9 callersMethodadd_arcade_gateway
Add tools from an Arcade MCP gateway. Args: gateway_slug: The Arcade gateway slug. arcade_api_key: Optional API key.
libs/arcade-evals/arcade_evals/_evalsuite/_convenience.py:173
↓ 9 callersMethodadd_mcp_server
Add tools from an MCP HTTP server. Args: url: The MCP server URL. headers: Optional HTTP headers. timeout
libs/arcade-evals/arcade_evals/_evalsuite/_convenience.py:109
↓ 9 callersFunctionconvert_content_to_structured_content
Convert a Python value to MCP-compatible structured content (JSON object). According to the MCP specification, structuredContent should be a
libs/arcade-mcp-server/arcade_mcp_server/convert.py:137
↓ 9 callersFunctionconvert_mcp_to_anthropic_tool
Convert an MCP tool definition to Anthropic tool format. This is a minimal conversion since Anthropic accepts standard JSON Schema. Chan
libs/arcade-evals/arcade_evals/_evalsuite/_anthropic_schema.py:19
↓ 9 callersFunctionenforce_scopes
Assert the request's resource owner has every required OAuth scope. Reads ``ResourceOwner`` from ``scope[RESOURCE_OWNER_SCOPE_KEY]`` (populat
libs/arcade-mcp-server/arcade_mcp_server/resource_server/scope_enforcement.py:15
↓ 9 callersFunctionexpand_provider_configs
Expand provider configs into individual ModelSpecs with resolved API keys. Args: configs: List of ProviderConfig from parsed --use-provid
libs/arcade-cli/arcade_cli/utils.py:282
↓ 9 callersMethodget_tool_count
Get the number of tools in the catalog.
libs/arcade-core/arcade_core/catalog.py:429
↓ 9 callersFunctionget_windows_no_window_creationflags
Return Windows creation flags to suppress phantom console windows. Args: new_process_group: When true, include ``CREATE_NEW_PROCESS_GROUP
libs/arcade-core/arcade_core/subprocess_utils.py:12
↓ 9 callersFunctiongroup_comparative_by_case
Group comparative results by model, suite, and case name. This allows showing the same case across different tracks side-by-side. Args:
libs/arcade-cli/arcade_cli/formatters/base.py:140
↓ 9 callersMethodhas_track
Check if a track exists. Args: name: The track name. Returns: True if track exists, False otherwise.
libs/arcade-evals/arcade_evals/_evalsuite/_tracks.py:72
↓ 9 callersFunctionis_valid_tool_name
Check whether a tool name conforms to the MCP name constraints. Rules: 1-128 chars, only ``[A-Za-z0-9_.-]``. This is a MCP SHOULD rule, so we
libs/arcade-mcp-server/arcade_mcp_server/validation.py:27
↓ 9 callersMethodlist
(self)
libs/arcade-mcp-server/arcade_mcp_server/context.py:524
↓ 9 callersFunctionmake_results_with_context
Create mock results with system_message and additional_messages.
libs/tests/cli/test_formatters.py:2419
↓ 9 callersFunctionnormalize_name
(name: str, separators: str = "-_.")
libs/arcade-evals/arcade_evals/eval.py:1218
↓ 9 callersMethodrun
Run the session manager with lifecycle management. This creates and manages the task group for all session operations. Important: Th
libs/arcade-mcp-server/arcade_mcp_server/transports/http_session_manager.py:247
↓ 9 callersMethodshutdown
(self)
libs/arcade-serve/arcade_serve/fastapi/telemetry.py:192
↓ 9 callersMethodstart
Start the transport.
libs/arcade-mcp-server/arcade_mcp_server/transports/stdio.py:86
↓ 9 callersMethodstop
Stop the transport.
libs/arcade-mcp-server/arcade_mcp_server/transports/stdio.py:126
↓ 9 callersMethodterminate
Terminate the current session.
libs/arcade-mcp-server/arcade_mcp_server/transports/http_streamable.py:731
↓ 9 callersMethodvalidate_token
Validate the given token against each configured authorization server. Tries each validator until one succeeds. If all fail, raises InvalidTo
libs/arcade-mcp-server/arcade_mcp_server/resource_server/validators/auth.py:221
↓ 8 callersFunction_call
(erroring_server: MCPServer, tool_name: str)
libs/tests/arcade_mcp_server/test_debug_exposure_integration.py:138
↓ 8 callersFunction_configure_windows_utf8
Ensure Windows console encoding won't raise UnicodeEncodeError.
libs/arcade-cli/arcade_cli/console.py:17
↓ 8 callersFunction_create_mock_capture_with_runs
Create a mock CaptureResult with multiple runs per case.
libs/tests/cli/test_capture_formatters.py:1035
↓ 8 callersFunction_create_mock_capture_with_tracks
Create a mock CaptureResult with track information for testing.
libs/tests/cli/test_capture_formatters.py:838
↓ 8 callersMethod_make_tool_with_output
Helper to create a materialized tool with a given output ValueSchema.
libs/tests/arcade_mcp_server/test_convert.py:434
↓ 8 callersMethod_map_http_error
Map Google HttpError to appropriate ToolRuntimeError.
libs/arcade-tdk/arcade_tdk/providers/google/error_adapter.py:56
↓ 8 callersMethod_minimal_kwargs
Minimal valid ``ResourceServerAuth`` kwargs (no scope arg).
libs/tests/arcade_mcp_server/test_resource_server_auth.py:1606
↓ 8 callersMethod_project_for_version
Project list items for the negotiated version. ``strip_fields`` maps each field name to the feature that gates it. Passing a plain li
libs/arcade-mcp-server/arcade_mcp_server/server.py:967
↓ 8 callersMethod_strip_arcade_prefix
Strip the 'arcade_' prefix from the name if it exists.
libs/arcade-core/arcade_core/toolkit.py:47
↓ 8 callersFunction_write_entrypoint
(tmp_path: Path)
libs/tests/cli/test_configure.py:33
↓ 8 callersMethodadd
Add or update a tool at runtime if server is bound; otherwise queue via app.add_tool decorator.
libs/arcade-mcp-server/arcade_mcp_server/mcp_app.py:748
↓ 8 callersFunctionconfigure_codex_arcade
Configure Codex CLI to connect to an Arcade Cloud MCP gateway. Writes a ``[mcp_servers.<name>]`` section to ``~/.codex/config.toml``. Codex s
libs/arcade-cli/arcade_cli/configure.py:858
↓ 8 callersFunctionfetch_latest_pypi_version
Query PyPI for the latest stable version of the package. Returns None only if the fetch fails or no stable version exists. If ``data["info"][
libs/arcade-cli/arcade_cli/update.py:153
↓ 8 callersMethodfind_all_arcade_toolkits
Find and load as Toolkits all installed packages in the current Python interpreter's environment that either 1. Have a regist
libs/arcade-core/arcade_core/toolkit.py:261
↓ 8 callersFunctiongroup_results_by_model
Group evaluation results by model and suite, collecting statistics. This is the shared logic used by all formatters and display functions.
libs/arcade-cli/arcade_cli/formatters/base.py:51
↓ 8 callersFunctionis_strict_optional
Returns True if the given type is a strict optional type, i.e. a union with exactly two types where one type is None. This covers Optional[T]
libs/arcade-core/arcade_core/utils.py:65
↓ 8 callersFunctionis_tracking_enabled
Check if usage tracking is enabled via environment variable. Returns: bool: True if tracking is enabled (default), False if explicitly di
libs/arcade-core/arcade_core/usage/utils.py:6
↓ 8 callersMethodlist_prompts
(self)
libs/arcade-mcp-server/arcade_mcp_server/managers/prompt.py:70
↓ 8 callersFunctionload_dotenv
Load variables from *path* into os.environ. Args: path: .env file path override: replace existing env vars if True Retu
libs/arcade-cli/arcade_cli/utils.py:1069
↓ 8 callersMethodlog
( self, level: str, message: str, logger_name: str | None = None, extr
libs/arcade-mcp-server/arcade_mcp_server/context.py:411
↓ 8 callersFunctionparse_api_key_spec
Parse --api-key value into (provider, key). Args: spec: API key spec string. Format: "provider:key" Examples: "openai:sk-..
libs/arcade-cli/arcade_cli/utils.py:161
↓ 8 callersMethodread_response
Read a response from the server.
libs/tests/arcade_mcp_server/integration/test_end_to_end.py:377
↓ 8 callersMethodrun
( self, host: str = "127.0.0.1", port: int = 8000, reload: bool = False,
libs/arcade-mcp-server/arcade_mcp_server/mcp_app.py:519
↓ 8 callersMethodtools_from_directory
Load a Toolkit from a directory.
libs/arcade-core/arcade_core/toolkit.py:286
↓ 8 callersMethodtrack_tool_call
Track MCP tool call event. Args: success: Whether the tool call succeeded (True) or failed (False) reason: The reason
libs/arcade-mcp-server/arcade_mcp_server/usage/server_tracker.py:140
↓ 8 callersFunctiontruncate_field_value
Truncate long field values for display. Args: value: The string value to potentially truncate. max_length: Maximum allowed l
libs/arcade-cli/arcade_cli/formatters/base.py:35
↓ 8 callersFunctionwait_for_health
Wait for the server to become healthy. Args: base_url: Base URL of the server process: The server process timeout: M
libs/arcade-cli/arcade_cli/deploy.py:503
↓ 7 callersFunction_aggregate_critic_stats
( run_field_scores: list[dict[str, dict[str, float]]], )
libs/arcade-evals/arcade_evals/eval.py:194
↓ 7 callersFunction_build_request
( method: str, params: dict[str, Any] | None = None, req_id: int | None = None, )
tests/integration/mcp_protocol_smoke.py:67
↓ 7 callersFunction_compute_mean_std
(values: list[float])
libs/arcade-evals/arcade_evals/eval.py:155
↓ 7 callersMethod_create_json_response
Create a JSON response. Inspects JSONRPCError responses for ``_transport`` metadata. When the error code is ``INSUFFICIENT_SCOPE_ERRO
libs/arcade-mcp-server/arcade_mcp_server/transports/http_streamable.py:247
↓ 7 callersMethod_extract_error_details
Extract error message and developer details from Microsoft Graph APIError. Microsoft Graph errors always have this structure:
libs/arcade-tdk/arcade_tdk/providers/microsoft/error_adapter.py:101
↓ 7 callersMethod_get_retry_after_milliseconds
Extract retry-after from Microsoft Graph API errors. Returns milliseconds to wait before retry. Defaults to 1000ms if not fou
libs/arcade-tdk/arcade_tdk/providers/microsoft/error_adapter.py:69
↓ 7 callersMethod_map_status_to_error
Map HTTP status code to appropriate Arcade error.
libs/arcade-tdk/arcade_tdk/providers/http/error_adapter.py:125
↓ 7 callersFunction_mock_list_gw
()
libs/tests/cli/test_connect.py:376
↓ 7 callersFunction_open_browser
Open a URL in the default browser without flashing a CMD window on Windows. On Windows, both ``webbrowser.open`` and ``os.startfile`` call ``
libs/arcade-cli/arcade_cli/authn.py:546
↓ 7 callersFunction_prior
Build additional_messages from [(user_msg, tool_name, args_json, response_json)].
examples/evals/eval_project_tracker_mcp.py:1312
↓ 7 callersFunction_raise_for_status
Translate ServiceNow HTTP errors into descriptive ValueErrors.
examples/mcp_servers/servicenow/src/servicenow/tools/tools_incidents.py:50
↓ 7 callersFunction_result
(response)
libs/tests/arcade_mcp_server/test_tool_error_meta.py:21
↓ 7 callersFunction_validate_accept_header
Validate Accept header. Client MUST include Accept header listing both application/json AND text/event-stream. Wildcards satisfy. Returns
libs/arcade-mcp-server/arcade_mcp_server/transports/http_session_manager.py:114
↓ 7 callersFunction_validate_schema_dialect
Validate that a JSON Schema uses a supported dialect (2020-12). If ``$schema`` is absent, the schema is treated as 2020-12 (valid). If ``$sch
libs/arcade-mcp-server/arcade_mcp_server/validation.py:38
↓ 7 callersMethodadd_module
Add all the tools in a module to the catalog. Args: module: The module to add. name: Optionally override the
libs/arcade-core/arcade_core/catalog.py:274
↓ 7 callersMethodcheck_client_capability
Check if client has a specific capability. Args: capability: Capability to check Returns: True if c
libs/arcade-mcp-server/arcade_mcp_server/session.py:351
↓ 7 callersFunctionconfigure_client_toolkit
Configure an MCP client for Arcade toolkits. When *transport* is ``"stdio"`` (default), writes a config that launches ``arcade mcp stdio --to
libs/arcade-cli/arcade_cli/configure.py:1054
↓ 7 callersFunctioncreate_arcade_mcp
Create a FastAPI app exposing MCP HTTP endpoints and Arcade Worker endpoints if a secret is provided. MCP is always enabled in this inte
libs/arcade-mcp-server/arcade_mcp_server/worker.py:131
↓ 7 callersFunctioncreate_new_toolkit_minimal
Create a new toolkit from a template with user input.
libs/arcade-cli/arcade_cli/new.py:166
↓ 7 callersFunctiondetect_install_method
Auto-detect how the user originally installed the CLI. Detection order: 1. uv tool — check ``uv tool list`` for the package 2. pipx — che
libs/arcade-cli/arcade_cli/update.py:195
↓ 7 callersMethodfrom_success
Create a successful result.
libs/arcade-cli/arcade_cli/evals_runner.py:91
↓ 7 callersFunctionget_arcade_client
Create an Arcade client with proper authentication and org-scoped URL rewriting. Requests are automatically rewritten to include org/project
libs/arcade-cli/arcade_cli/utils.py:707
↓ 7 callersFunctionget_default_model
Get the default model for a provider. Args: provider: The provider to get the default model for. Returns: The default model
libs/arcade-cli/arcade_cli/utils.py:88
↓ 7 callersMethodget_task
(self, task_id: str)
examples/mcp_servers/pctx_code_mode/src/pctx_code_mode/store.py:422
↓ 7 callersFunctionget_valid_access_token
Get a valid access token, refreshing if necessary. Returns: Valid access token Raises: ValueError: If not logged in or
libs/arcade-core/arcade_core/auth_tokens.py:65
↓ 7 callersMethodhandle_request
Handle incoming HTTP requests.
libs/arcade-mcp-server/arcade_mcp_server/transports/http_streamable.py:361
↓ 7 callersMethodhas_feature
Whether negotiated version supports a specific feature.
libs/arcade-mcp-server/arcade_mcp_server/session.py:313
↓ 7 callersMethodinstrument_app
(self, app: FastAPI)
libs/arcade-serve/arcade_serve/fastapi/telemetry.py:70
↓ 7 callersFunctionis_comparative_result
Check if results contain comparative evaluations. Comparative results have a 'track_name' field that indicates they came from a multi-tr
libs/arcade-cli/arcade_cli/formatters/base.py:106
↓ 7 callersFunctionis_multi_model_comparative
Check if comparative results contain multiple models. Args: results: Nested list of evaluation results. Returns: True i
libs/arcade-cli/arcade_cli/formatters/base.py:322
← previousnext →201–300 of 5,311, ranked by callers