Caveman Planning Good! Made in Jozefoslaw with Tokens, Coffee and OpenMercato Skills during AITechLeaders training.

CPG
  • Help
  • Sign in

Use CPG from an AI agent

An AI agent such as Claude Code or Codex can work in CPG for you, with your account's rights: it reads what you can read and changes what you can change. This guide installs the two parts it needs.

Commands for
  • Windows
  • macOS
  • Linux

1. What you get

The MCP server: a small program that runs on your computer and gives the agent CPG's API as tools. uvx downloads and starts it, so there is nothing else to install.

The skill: one text file that teaches the agent the daily planning loop, CPG's rules, and when to ask you before changing anything.

Download the MCP serverDownload the skill

2. Install uv

uv runs the MCP server. Install it with this command:

curl -LsSf https://astral.sh/uv/install.sh | sh

Or with Homebrew:

brew install uv

Then open a new terminal, so it finds uvx.

3. Create an API token

Sign in to CPG, open API tokens and create a token named after the agent. Copy its secret straight away: CPG shows it only once. In the commands below, replace <token> with it.

4. Add the server to your agent

For Claude Code, run:

claude mcp add cpg -e CPG_API_TOKEN=<token> -e CPG_BASE_URL=https://its.cpg.baby -- uvx --from https://its.cpg.baby/downloads/cpg-mcp-88d629e930ce.zip cpg-mcp

For Codex, add this to ~/.codex/config.toml:

[mcp_servers.cpg]
command = "uvx"
args = ["--from", "https://its.cpg.baby/downloads/cpg-mcp-88d629e930ce.zip", "cpg-mcp"]
env = { CPG_API_TOKEN = "<token>", CPG_BASE_URL = "https://its.cpg.baby" }
startup_timeout_sec = 60
tool_timeout_sec = 300

Codex asks you before a tool changes anything. For unattended runs (codex exec), which can't ask, add default_tools_approval_mode = "approve" under [mcp_servers.cpg]: Codex then runs every CPG tool without asking, so use it on Test.

For any other MCP client, add this to its mcpServers settings:

{
  "mcpServers": {
    "cpg": {
      "command": "uvx",
      "args": [
        "--from",
        "https://its.cpg.baby/downloads/cpg-mcp-88d629e930ce.zip",
        "cpg-mcp"
      ],
      "env": {
        "CPG_API_TOKEN": "<token>",
        "CPG_BASE_URL": "https://its.cpg.baby"
      }
    }
  }
}

These commands point at this CPG, https://its.cpg.baby.

5. Install the skill

For Claude Code, run:

mkdir -p ~/.claude/skills/cpg-onboarding && curl -fsSL https://its.cpg.baby/downloads/cpg-onboarding/SKILL.md -o ~/.claude/skills/cpg-onboarding/SKILL.md

Or unzip the skill's download into ~/.claude/skills/: it holds the cpg-onboarding folder.

For Codex, run:

mkdir -p ~/.agents/skills/cpg-onboarding && curl -fsSL https://its.cpg.baby/downloads/cpg-onboarding/SKILL.md -o ~/.agents/skills/cpg-onboarding/SKILL.md

Or unzip the skill's download into ~/.agents/skills/: it holds the cpg-onboarding folder.

Any other agent: ask it to load the prompt cpg_onboarding, which the MCP server offers.

6. Check it works

Start the agent and ask it to call cpg_whoami. It answers with your account, CPG's tenants and whether each one is read-only.

If the server doesn't start, its one-line error names the missing setting or says the token was refused.