KATATANDocs
ENJA
Open App ›
Docs/Get Started/Use Katatan from your AI agent/Connect with your KATATAN account
712 words · 4 min read

Connect with your KATATAN account

You can use MCP clients and the CLI by signing in with your KATATAN account. There is no need to issue an MCP access token.

Choosing a connection method

There are two ways to connect.

Connection method Best for Access
Sign in with your KATATAN account (recommended) Using your own account during development The one workspace you chose when connecting, within your role
MCP access token (kat_...) CI/CD and other runs not tied to a person The token's single project and the tools you allowed

To use a token, see Create MCP access token.

MCP clients (Claude Code and others)

  1. Register only the URL in your MCP client. Example:

    claude mcp add --transport http katatan https://mcp.katatan.com/mcp
  2. A browser opens on the first connection (in Claude Code, run /mcp → Authenticate).

  3. Sign in to KATATAN → choose the workspace to use → click Allow.

  4. Check available projects with list_my_projects, then pass projectId to each tool.

When registering through a config file, specify only the URL, with no headers.

{
  "mcpServers": {
    "katatan": {
      "type": "http",
      "url": "https://mcp.katatan.com/mcp"
    }
  }
}

Verified clients: Claude Code, Cursor, and Kiro (IDE / CLI). VS Code has not been verified yet — if you cannot sign in, connect with an MCP access token instead.

Setup tool (npx @katatan/agents)

In @katatan/agents 0.2.1, choose Sign in with your KATATAN account (recommended) at the connection method step after selecting your clients (Step 2: Choose how to connect to KATATAN; pressing Enter alone also selects it). The generated MCP configuration (server name katatan-test) contains only the URL. You choose the target project on first use, and it is saved to .katatan/config.json. See Install KATATAN AI agent for details.

CLI (@katatan/cli 0.3.0)

  1. Run katatan login. After you consent in the browser, a completion page appears. To avoid opening a browser, add --no-browser (the URL is printed instead).
  2. Check projects with katatan project list, and set a default with katatan config set-project <projectId> (you can also pass --project per command).
  3. When you are done, run katatan logout (this also revokes the connection on the server).
# Sign in from the browser
katatan login

# List available projects and set a default
katatan project list
katatan config set-project <projectId>

# Sign out (also revokes the connection on the server)
katatan logout
  • Tokens are refreshed automatically.
  • Credential resolution order: --token > KATATAN_TOKEN > profile token > profile login.
  • If user account integration is turned off for the workspace, the CLI exits with code 3 (USER_OAUTH_DISABLED).

See KATATAN CLI for command details.

Managing connections

  • Review and revoke connections: Profile → Connected apps.
  • Turn on / off per workspace: Workspace settings → Security tab → User account integration (MCP / CLI) → Allow user account integration (Owner only; on by default). Turning it off revokes all connected apps, and they are not restored when you turn it back on. Clients you were using will first ask you to sign in; if you try to sign in again for that workspace, the consent screen shows a message that user account integration is turned off for this workspace. See Security settings.
  • Suspending or deleting an account revokes all of its connections (reflected in MCP within 60 seconds).

Roles and operator

Access is determined by your project role.

Role Access
Workspace Owner Read and write in every project
Project Owner / Editor Read and write in that project
Project Viewer Read-only in that project
Workspace Billing / Guest Cannot connect

Workspace Editors and Observers both follow their project role.

Workspaces where you have the Billing or Guest role cannot be selected on the consent screen and show "Not available for this role". If there is no workspace you can use, the screen shows "You have no workspace that can be connected."

When signed in, the creator and the audit log operator are always you (the author argument cannot override this).