#!/bin/bash
set -e
cd /tmp/curo-imac-wt
git push -u origin feat/ai-curogram-imac-agent-client 2>&1 | tail -5
gh pr create --repo gbharg/exult-agent --base main --head feat/ai-curogram-imac-agent-client \
  --title "feat(mcp-config): wire Curogram MCP client into gautams-imac-agent (pi-mono)" \
  --body-file - <<'BODY'
## What

Adds `{ channel: "curogram" }` to the `gautams-imac-agent` host descriptor so the
iMac agent (pi-mono, user `agent`) consumes the claude-cloud-served Curogram
patient-messaging MCP over the Tailscale funnel.

Mirrors exactly how `rippling` / `advancedmd` are wired for this host: a
consume-only HTTP channel that renders to a `streamable-http` entry with the
shared `MCP_BEARER_TOKEN` in the Authorization header. The Curogram `ChannelDef`
and its index registration already live on `main` (served from claude-cloud);
this PR only adds the iMac-agent client reference and regenerates that host's
golden.

## Rendered entry (placeholder bearer)

```json
"curogram": {
  "headers": { "Authorization": "Bearer <REDACTED_MCP_BEARER_TOKEN>" },
  "type": "streamable-http",
  "url": "https://claude-cloud.tail053faf.ts.net/curogram/mcp"
}
```

## Tests

`bun test tools/mcp-config/render.test.ts` — 16 pass / 0 fail (byte-for-byte
golden parity for gautams-imac-agent + secret guardrails).

## Deploy note

The iMac agent's deployed `/Users/agent/openclaw/.mcp.json` was updated
out-of-band with the same curogram streamable-http entry; a `tools/list`
handshake from the iMac over the funnel returns all 8 Curogram tools.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
BODY
