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.
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.
uv runs the MCP server. Install it with this command:
curl -LsSf https://astral.sh/uv/install.sh | shOr with Homebrew:
brew install uvThen open a new terminal, so it finds uvx.
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.
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-mcpFor 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 = 300Codex 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.
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.mdOr 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.mdOr 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.
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.