Skip to content

chainabit mcp setup chainabit ​

Published (2.2.0) ​

This command is not included in Published (2.2.0). It is available in Development (2.2.0).

Development (2.2.0) ​

Connect Claude Code or Codex to Chainabit

Synopsis ​

text
chainabit mcp setup chainabit [options]

Options ​

OptionDescriptionDefault
--apply <client>Choose claude or codex to register the server—
--yesConfirm this change—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Prints the address of the Chainabit mcp server for your API, the two scopes it offers (mcp:tools and mcp:tools.readonly), the exact command that connects Claude Code, the exact command that connects Codex, and a ready-to-paste mcpServers configuration. By default it only prints: it sends no request, needs no credentials and changes nothing. Use --api-url to print the address for another API.

With --apply claude or --apply codex, the command also runs that client's own mcp add command to register the server, so the client must be installed. --apply needs --yes, including with --json; without it the command refuses with exit code 2 and registers nothing. Any value other than claude or codex is refused. The command fails with an error if the client's command fails.

Signing in happens in the client, in your browser: in Claude Code open /mcp; in Codex run codex mcp login chainabit.

Output ​

The address, scopes, the two connect commands, the configuration and the sign-in steps. With --json, the output contains url, scopes, claude, codex, config and signIn, plus registered (the chosen client) when --apply succeeded.

Authentication and permissions ​

The command itself needs no Chainabit sign-in and sends no credentials. Access is granted when you sign in from the client, within the scopes above.

Examples ​

bash
chainabit mcp setup chainabit
chainabit mcp setup chainabit --apply claude --yes

Built with purpose. chainabit.com