platform_connect
Establish a live session connection to begin receiving execution traces for debugging. Authenticates automatically, accepts a server URL, and reports active environment details.
Instructions
[Arch Debug] Arch connects to live sessions, traces failures, and inspects execution state. Connect to the server WebSocket to start receiving traces. Call this first before using other Arch debug tools. Auth is automatic — stored credentials or device auth are tried in order. If device auth is needed, the browser opens automatically and the tool polls until approved (single call, no two-phase). Credentials are saved to the MCP-owned credential store for future sessions. If already connected and a new authToken is provided, the authenticated WebSocket is safely replaced before the token is committed. Changing environments while connected is rejected unless force=true is explicitly provided. Every successful response includes activeTarget identity and environment metadata; surface it to the user when context changes. If no serverUrl is given and AGENTS_URL is unset, ask the user which environment to connect to (production/dev/staging/qa) instead of guessing. If it fails, report the error as-is to the user. Do NOT try alternative approaches like REST calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force reconnection even if already connected. Use when the auth token has expired or you need to re-authenticate. | |
| wsUrl | No | Deprecated: use serverUrl instead. Runtime WebSocket URL. | |
| httpUrl | No | Deprecated: use serverUrl instead. Runtime HTTP API URL. | |
| authToken | No | JWT auth token. If not provided, authentication is automatic (stored credentials → device auth with browser launch). | |
| serverUrl | No | Runtime server URL. If the user has not specified an environment, ask which one to connect to before proceeding — production (https://agents.kore.ai), dev (https://agents-dev.kore.ai), staging (https://agents-staging.kore.ai), or qa (https://agents-qa.kore.ai). Falls back to the AGENTS_URL env var if not provided. | |
| deviceCode | No | Deprecated. Device auth now auto-polls in a single call. Only needed if resuming a previously interrupted flow. |