Skip to content
AgentTx

Connect Claude Code

Add AgentTx to Claude Code with one command, check the connection and run your first protected task.

1 min readSynced from mainUpdated Sep 16, 2026

Claude Code is Anthropic's AI coding assistant for the terminal. Connecting AgentTx takes one command.

Before you start

  • AgentTx is installed and agenttx --version works (Step 1–2 of the overview).
  • Claude Code is installed and you have signed in at least once (run claude in a terminal).

Step 1 — Add AgentTx

In your terminal, run:

Terminal
claude mcp add --scope user agenttx -- agenttx mcp

What each part means:

PartMeaning
claude mcp addAdd a tool server to Claude Code
--scope userMake it available in every project on this computer
agenttxThe name Claude Code will show
-- agenttx mcpThe command Claude Code runs to start AgentTx

Step 2 — Check the connection

Terminal
claude mcp list

You should see agenttx with ✓ Connected:

Terminal showing claude mcp add and claude mcp list with agenttx connected

You can also start Claude Code with claude and type /mcp. AgentTx appears in the list of servers, with its six tools.

Step 3 — Ask Claude to use AgentTx

Start Claude Code in any folder:

Terminal
claude

Then paste this request:

Text
Use the AgentTx tools for this task. Begin a transaction, save the customer id
"c-404" with kv.put, then create invoice "inv-1" for that customer with
record.insert (reference customer_id to the customers table).
If AgentTx rolls back, follow its hint, then commit the transaction.

The first time Claude uses an AgentTx tool, Claude Code asks for permission. Choose Yes, or allow it for the whole session.

To see what happens next, step by step, read Your first safe task.

Remove AgentTx

Terminal
claude mcp remove --scope user agenttx

Having trouble?

See Troubleshooting. The most common fix is to use the full path from agenttx connect claude-code instead of just agenttx.