STACK
MENU
DOCS / MCP / MCP SETUP

Connect STACK

Connect STACK to your AI client, sign in, and start using it.

Guided setup

bash
npx @getstackrun/cli setup

The setup command detects supported clients, lets you choose one or several, configures https://mcp.getstack.run/mcp, and guides you through OAuth. It does not request or handle provider credentials. Add --groups agents,messaging to choose the tool groups the client lists from its first list; without it the client gets the plain URL.

Claude Code

bash
claude mcp add --transport http --scope user stack https://mcp.getstack.run/mcp

Open /mcp in Claude Code and authenticate.

OpenAI Codex

bash
codex mcp add stack --url https://mcp.getstack.run/mcp
codex mcp login stack

Other MCP clients

Add a remote Streamable HTTP server named stack with this endpoint:

text
https://mcp.getstack.run/mcp

STACK is listed in the official MCP Registry. Use the registry entry when your client can install registered remote servers directly.

Use OAuth for a person signing in through an MCP client. Automated fleet workers use a short-lived agent session. Keep provider sign-in and credential entry in the Console, provider browser flow or CLI stdin.

Choose which tools your client lists

STACK's tools are in groups. A session starts with a small set and one tool, stack_load_tools, that lists the tools of more groups when the model asks for them. Some clients do not refresh their tool list when it changes. For those, put the groups in the URL:

text
https://mcp.getstack.run/mcp?groups=agents,messaging

The session lists its starting set and the tools of those groups from its first list, and the loader still works on top. groups=all lists every tool. A name that is not a group is refused when the client connects, and the error names the valid ones. A group lists only the tools that apply to who is connected and which account pieces are on, and every tool still checks its own permissions when it runs. The setup command takes the same choice: npx @getstackrun/cli setup --groups agents,messaging.

  • agents: register, set up, update, unblock and retire agents
  • connections: connect services, give agents access to them, connect links
  • missions: passports, missions and their reviews, authority requests, checkpoints
  • proxy: calls through connected services, intents and their approval
  • team: team members, single sign-on, identity checks, workload identities, MCP sessions
  • controls: control policies, the control socket, the trust switch, message access, approvals
  • security: content scans, security events, detector and PII settings, the audit log, signed records
  • network: self-hosted installs, their keys and revocations
  • notifications: delivery methods, notification rules, inbound webhooks, chat identities
  • fleets: fleet policies and their members
  • partners: partner-managed accounts and their release
  • wake: what starts an agent: its queue, rules, schedules and webhook
  • account-setup: open and close agent accounts, pieces, budget, identity, signing keys, the catalogue
  • messaging: read, search, send and delete email, SMS and Telegram; do-not-contact lists
  • calls: phone calls: place, answer, speak, hang up, voice; blocked callers
  • calendar: calendar events, invites and feeds; meetings
  • workspace: a machine with a shell and git: run commands, read and write files
  • browser: browse and act on web pages; card checkout
  • wallet: wallet payments and caps, top-up, usage, LLM spend, models, paid tools, RentAHuman
  • files: drive files, the searchable brain, drop-offs
  • memory: the account's memory: add, search, history, undo, entity types
  • physical: the postal address and letters; print-on-demand orders
  • skills: find, invoke, publish and settle skills
  • website: publish and price a website; payment links and Stripe

Claude and ChatGPT connector directories

The STACK connector listed in the Claude and ChatGPT directories uses a separate endpoint:

text
https://mcp.getstack.run/directory

It serves the same catalog as the full endpoint, except the platform-staff tools. A sign-in from ChatGPT does not list the tools that pay, buy, top up or move money (wallet payments, card checkout, wallet top-up, RentAHuman funding and print orders). Every other sign-in lists them, and each of them is held for the person's approval every time, whatever the account's trust setting says. Every tool carries a title and read-only, destructive and open-world hints. See the directory tool list.

Sign-in is separate per endpoint. A token granted for the directory endpoint is refused on /mcp, and a /mcp token is refused on the directory endpoint. A directory token carries the same default scopes as a /mcp sign-in from a chat. The authorization server intersects every directory request with that list, so a directory token never carries credentials:read, credentials:write, team:write, identity:write, authority:write, skills:publish, partner:write or admin.

OAuth discovery

text
GET https://mcp.getstack.run/.well-known/oauth-protected-resource
GET https://mcp.getstack.run/.well-known/oauth-protected-resource/directory
GET https://api.getstack.run/.well-known/oauth-authorization-server
  • Each MCP resource advertises the STACK authorization server.
  • The client identifies itself with a Client ID Metadata Document URL or registers dynamically, creates a PKCE S256 challenge, and opens the authorization page.
  • You sign in and approve the requested scopes.
  • The client exchanges the code and rotates its refresh token as needed.

Verify the session

Ask the client to list your STACK agents. An empty list is a successful response. A status label or completed browser page does not prove that the MCP call works.

Headless fallback

A fleet worker requests a session with its local agent key, then passes the returned access token as the MCP bearer token. Sessions last up to five minutes. Request a fresh session and reconnect when one expires. The worker keeps its existing Mission and usage.

See MCP Authentication Troubleshooting for discovery, refresh revocation, 401, and 403 errors.

An approved provisioner includes fleet_policy_id when requesting its session. That session can enroll workers for the named policy. Each worker proves possession of its own private key and requests its own session after enrollment.

Workloads using SPIFFE or WIMSE can enroll through the workload endpoints when their issuer, audience and exact subject are listed in the fleet policy. The workload token establishes who may enroll. The new agent's signed challenge proves which key it controls.

MCP Setup | Docs