#!/bin/bash
set +e
cd /tmp/curo-imac-wt
BUN=/home/claude/.bun/bin/bun
echo "=== env example for imac-agent (does MCP_BEARER_TOKEN exist?) ==="
cat tools/mcp-config/hosts/gautams-imac-agent.env.example 2>&1
echo "=== render imac-agent to stdout (check) using real env from source repo ==="
# Use the real per-host env from the source checkout if present (gitignored).
ENVFILE=/home/claude/repos/exult-agent/tools/mcp-config/hosts/gautams-imac-agent.env
ls -la "$ENVFILE" 2>&1
$BUN tools/mcp-config/render.ts --host gautams-imac-agent --env-file "$ENVFILE" --check 2>&1 | grep -A6 '"curogram"'
echo "=== render exit handling done ==="
