Connect through browser sign-in
Use OAuth when the hosted settings offer Connect an AI agent and your client supports browser authentication. An Owner or Admin selects an eligible account and approves its scopes.
- Copy the MCP endpoint from Settings → Developer → Connected apps.
- Add a Streamable HTTP server named
pingstackto your client. - Leave Authorization headers empty.
- Start/reload the connection, then follow the browser sign-in.
- Select the intended account, review permissions and approve. Agents that register themselves show “(unverified)” next to their name, because Pingstack can’t confirm the name they give. Continue only if you just started this connection yourself.
- Return to the client and request account capabilities to verify the binding.
Access tokens (pso_) last 15 minutes and the client renews them with rotating refresh tokens (psr_) within the approved connection lifetime, up to
90 days. These tokens work for MCP only, never for the REST API. In Pingstack settings, inspect connected apps, approving user,
expiry, permissions and last use. Disconnect immediately revokes the
connection and its tokens.
The consent screen lists permissions by area. Six are sensitive: heartbeat ping URLs, pausing checks, deleting checks, deleting dashboards, deleting notification groups and unpublishing dashboards. They carry a Sensitive badge and start unticked, so a connection gets them only if you tick them. Review what you approve; many tools write to your account. Browser authorization doesn’t bypass account role checks: publishing still needs an Admin, whatever the connection was granted.
Connections approved before a permission existed don’t gain it. Disconnect and sign in again to grant new permissions.
Client examples
Section titled “Client examples”Connect your coding agent has setup steps for Copilot CLI, Claude Code, Cursor, VS Code, OpenAI Codex, Google Antigravity and Gemini CLI.
For Copilot CLI, merge a header-free entry into private user config:
{ "mcpServers": { "pingstack": { "type": "http", "url": "https://app.pingstack.io/mcp", "tools": ["*"] } }}For Claude Code:
claude mcp add --transport http pingstack https://app.pingstack.io/mcpUse /mcp inside Claude Code and authenticate the connection. Refer to the
official Claude Code instructions
for current client controls.
Pingstack exposes OAuth resource/authorization-server discovery and uses browser authorization with PKCE. Let a compatible client handle discovery and token lifecycle; do not send an MCP OAuth access token to the REST API.
If OAuth is not offered or supported, follow API key setup rather than adding a made-up client secret.
When OAuth is disabled
Section titled “When OAuth is disabled”If the deployment sets PINGSTACK_MCP_OAUTH_ENABLED=false, Connected apps
hides the browser sign-in setup and shows a notice that OAuth is disabled.
The Advanced: connect with an API key instructions expand automatically.
Existing connected apps stay listed so an owner or admin can still
Disconnect them.