Skip to content

Connect Claude Code ​

Add Key Product Options to Claude Code with one command, then manage your product options from your terminal.

Overview ​

Claude Code connects to the app's MCP server under the name kpo. You add it once, and it's available in every project.

Use a recent version

Use Claude Code 2.1.296 or later, with tool search on, so it reads the app's tool instructions in full.

How to Connect ​

  1. Navigate to App Settings > AI assistants and open the Claude Code tab

  2. Click Copy command and run it in a terminal. It already has your server address in it and looks like this:

    bash
    claude mcp add --transport http --scope user kpo YOUR_SERVER_ADDRESS
  3. Start Claude Code, type /mcp, choose kpo and sign in. You can also run:

    bash
    claude mcp login kpo
  4. Shopify opens in your browser. Sign in, then click Allow. The page shows An app on this computer as where access goes

Already added it on claude.ai?

If you added Key Product Options on claude.ai and signed in to Claude Code with that Claude account, it already shows up on its own as claude.ai Key Product Options. Don't add both. The one you add with the command hides it.

Reconnect ​

When Claude Code says changes need a fresh sign-in, use Renew sign-in on the AI assistants page (see Stay Connected), or run:

bash
claude mcp logout kpo && claude mcp login kpo

Disconnect ​

Run:

bash
claude mcp remove kpo

Troubleshooting ​

ProblemWhat to do
Sign-in ends on a page that says invalid_client or Client authentication failedRun claude mcp remove kpo, then add it again
Claude Code seems to skip instructionsUpdate Claude Code to 2.1.296 or later and keep tool search on
You see Key Product Options twiceYou added it with the command and also have it from claude.ai. Remove one: run claude mcp remove kpo, or keep the command version and remove the connector on claude.ai

For other problems, see Troubleshooting.