Connect with OAuth
OAuth is the recommended way in: the client registers, starts authorization, and renews tokens by itself. You approve once in the browser. Nothing is created on the platform, and no secret goes into a configuration file.
Before you start
- An assume agent and its MCP address. See Assume agents to create one.
- A client that supports MCP OAuth. Claude Code, Codex, and Cursor all do; update the client to its latest version first.
- A browser, and membership in the agent’s organization.
Sign in by client
Add the agent’s address in the terminal; the server name is praxis-assume:
claude mcp add --transport http praxis-assume https://api.deepraxis.com/agent/v1/agents/K7Q2M9XA/mcpThen type /mcp in a session, pick praxis-assume, and approve in the browser as prompted. Without a graphical session, or when the browser does not open, sign in from the command line:
claude mcp login praxis-assumeOn a machine without a browser (SSH, headless), add --no-browser: it prints the authorization address, and you paste the full callback address from the browser back into the terminal.
Check the status:
claude mcp list✔ connected next to praxis-assume means you are signed in; ! Needs authentication means authorization is not finished.
Add the server and sign in from the terminal:
codex mcp add praxis-assume --url https://api.deepraxis.com/agent/v1/agents/K7Q2M9XA/mcpcodex mcp login praxis-assumeLogin opens the browser. Without one, add --no-browser, open the printed address, and paste the full callback address back into the terminal. The equivalent hand-written entry in ~/.codex/config.toml (or a trusted project’s .codex/config.toml):
[mcp_servers.praxis-assume]url = "https://api.deepraxis.com/agent/v1/agents/K7Q2M9XA/mcp"codex mcp list shows configured servers; /mcp inside the session shows connection state.
Add the address to the project’s .cursor/mcp.json (or the global ~/.cursor/mcp.json) with no headers:
{ "mcpServers": { "praxis-assume": { "url": "https://api.deepraxis.com/agent/v1/agents/K7Q2M9XA/mcp" } }}After saving, open the MCP page in Cursor’s settings (Customize), find praxis-assume, click Connect, and approve in the browser. Cursor’s local callback is http://localhost:8787/callback. When a connection fails, open the Output panel (Cmd+Shift+U / Ctrl+Shift+U), choose MCP Logs, and read the reason.
What you see when approving
The browser opens the Praxis account site’s authorization page, which names three things: the client asking, the agent being connected, and the organization.
Once approved, the grant covers only that one agent. Another agent’s address needs its own approval, even from the same client.
Token lifetime: access tokens last one hour, and the client renews them before they expire; a refresh token expires after 30 days unused, when the client must sign in again. Every call also checks that you are still a member of the agent’s organization; calls are refused after you leave.
Verify
Ask the client to run:
Use praxis_assume_bash to run echo hello-praxis and reply with the output only.Expected: hello-praxis, and a connection and call record appear on the agent’s Console page.
Revoke and sign out
In Console → Account → Audit center → Credentials, each grant is one mcp_grant credential showing the person, the client, the agent, and the last use. Revoking it voids its refresh and access tokens together, and the client must authorize again before its next call.
Signing out in the client only clears its local tokens; it does not revoke the grant on the platform:
- Claude Code:
claude mcp logout praxis-assume, or Clear authentication from the server’s menu. - Codex: delete or disable the server’s entry in
config.toml. - Cursor: disconnect or turn off the server in MCP settings.
To actually take the grant back, revoke it in the audit center.
When something fails
| Symptom | Cause | What to do |
|---|---|---|
| The client never connects and answers 401 | The client did not start OAuth, or is waiting for you to sign in | Sign in with the commands above; confirm the transport is Streamable HTTP and the address is the MCP address |
| The browser approved, but the client still shows signed out | The consent page approved a different client or agent | Sign in again and check the client and agent names on the consent page |
| It worked before and is now refused | The grant was revoked in the audit center, or you left the organization | Check the audit center; confirm your membership before authorizing again |
| The authorization page will not open, or loops back to sign-in | A browser or network is blocking it, or you are not signed in to Praxis | Sign in to your Praxis account in the browser first; if it still fails, see OAuth sign-in fails |
Limits
- A browser must be available. Over SSH or headless, use
--no-browserand paste the callback address back into the terminal. - One grant covers one agent, never a whole organization.
- Clients support MCP OAuth to different degrees; update the client before treating a failure as ours.