How the OAuth Flow Works
The flow is entirely driven by your MCP client — you don’t need to manage tokens or credentials manually.- Add
https://hyperlink.gethyper.space/mcpas an MCP server in your client. - Your client detects that authentication is required and opens the OAuth prompt.
- Sign in with Google — use the same Google account associated with your Hyper workspace.
- After a successful sign-in, Hyper issues an API token and your client stores it at
~/.hyper/token. - All future MCP connections read from that file automatically.
The token stored at
~/.hyper/token is a Hyper API token, not a raw OAuth token. Hyper exchanges your OAuth grant for its own session token behind the scenes, so the file contains a Hyper-specific credential rather than a Google access token.Verifying Your Authentication
The fastest way to check whether you’re authenticated and connected to the right workspace is to callconnect:
action: not_set_up, open the Hyper desktop app to complete onboarding first. If it returns action: no_workspace, you may need to join a workspace (see below).
Token Storage
| Location | Contents |
|---|---|
~/.hyper/token | Your Hyper API token, written after first successful OAuth sign-in |
~/.hyper/join_token | A workspace join token, if one was placed there by your team admin |
Token Rotation
Hyper API tokens do not expire on a fixed schedule. Your token remains valid until you explicitly revoke it or re-authenticate. If your token stops working — for example, after a security rotation or account change — re-authenticate through the Hyper desktop app:- Open the Hyper desktop app.
- Navigate to Settings → Account.
- Click Re-authenticate to go through the OAuth flow again.
- The desktop app overwrites
~/.hyper/tokenwith the new token automatically.
Joining Multiple Workspaces
Each Hyper token is scoped to a single workspace by default. To join an additional workspace — for example, if you’re a contractor working across two organizations — pass ajoin_token to the connect tool:
~/.hyper/join_token, the connect tool will pick it up automatically without you needing to pass it explicitly.
After joining a new workspace, subsequent
connect calls will load that workspace’s briefing. To switch back to a different workspace, call connect again with that workspace’s join token.Local Development
If you’re running a local Hyper server, usehttp://localhost:8000/mcp as your MCP server URL. Authentication works identically — the same ~/.hyper/token file is used, and the OAuth flow is initiated by your client if the token is missing or invalid.