Connect STACK to your AI client, sign in, and start using it.
npx @getstackrun/cli setupThe 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 mcp add --transport http --scope user stack https://mcp.getstack.run/mcpOpen /mcp in Claude Code and authenticate.
codex mcp add stack --url https://mcp.getstack.run/mcp
codex mcp login stackAdd a remote Streamable HTTP server named stack with this endpoint:
https://mcp.getstack.run/mcpSTACK 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.
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:
https://mcp.getstack.run/mcp?groups=agents,messagingThe 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.
The STACK connector listed in the Claude and ChatGPT directories uses a separate endpoint:
https://mcp.getstack.run/directoryIt 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.
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-serverAsk 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.
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.