Sign in to BriefGate
loginSign in without pasting an API key: opens a browser approval page, then stores the issued key locally. Call when tools report not signed in or a revoked/expired key; call again after approval.
Instructions
Sign in without pasting an API key, the same way snyk_auth works: this opens a browser page where a human approves this device, then stores the issued key locally.
Call this whenever a tool reports "Not signed in" or that the stored key was revoked or expired.
This is a TWO-PHASE tool because approval can take minutes — longer than a single tool call should block for:
The first call starts the sign-in and returns immediately with a URL and a short code (e.g. "WDJB-MJHT"). Tell the user to open the URL and confirm the code; a browser is also opened automatically when possible.
Call
loginagain (no arguments change) to check progress. While the human hasn't approved yet, it replies that it's still waiting. Once approved, the same call reports success and the key is saved — no further action needed, other tools start working immediately.
Do not wait silently for minutes on one call — call this tool again after telling the user to approve, and again if they say they've clicked Allow.
Has no effect if a key is already supplied via the --api-key flag or the BRIEFGATE_API_KEY environment variable — those always take priority over a locally stored one, so this tool says so instead of running the flow. Not available when this server is running as the shared hosted endpoint (mcp.briefgate.dev): there, connecting a client already triggers OAuth automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||