Skip to content
中文

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/mcp

Then 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-assume

On 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.

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

SymptomCauseWhat to do
The client never connects and answers 401The client did not start OAuth, or is waiting for you to sign inSign 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 outThe consent page approved a different client or agentSign in again and check the client and agent names on the consent page
It worked before and is now refusedThe grant was revoked in the audit center, or you left the organizationCheck the audit center; confirm your membership before authorizing again
The authorization page will not open, or loops back to sign-inA browser or network is blocking it, or you are not signed in to PraxisSign 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-browser and 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.

Next: Connect with an API Key · Operate an assume agent