Use OAuth for interactive clients. Use MCP Setup for client commands. Settings lists active MCP sessions and lets you revoke them.
curl https://mcp.getstack.run/.well-known/oauth-protected-resource
curl https://api.getstack.run/.well-known/oauth-authorization-serverThe first response names the API authorization server. The second response names the authorization, token, registration, and device endpoints. A healthy discovery response does not prove that a stored client session can refresh.
The stored refresh-token family is no longer valid. Sign out or remove the STACK MCP connection in that client. Add it again. Sign in if required. Approve the requested scopes. Start a new client session. Then call a read-only tool such as stack_list_agents.
A restart alone does not create a new refresh-token family. A client status such as "Auth unknown" also does not prove recovery. Verify with a real tool call.
Use a raw sk_live_ key only for CI or a service that cannot complete OAuth. Store it in the service secret store and send it as an Authorization Bearer header. Do not paste it into prompts or commit it to client configuration.