Uptime
Checks in CI
Run your coding agent in CI when a pull request merges. It reads what changed and adds a check for each new endpoint that doesn't have one yet, so nobody has to remember.
How it fits together
- You ship an endpoint. Your agent adds a health endpoint if there isn't one.
- It merges. A GitHub Actions workflow hands the merged pull request to your agent.
- It's checked. The check exists, and the alert channels that cover all checks already cover it.
The agent talks to Pingwright over MCP. In CI there is no browser to sign in with, so it uses an API key instead.
Set it up
- In the console, create an API key under Settings › API keys. It is shown once; copy it.
- In your GitHub repository, add two secrets:
PINGWRIGHT_API_KEYwith that key, andANTHROPIC_API_KEYfor Claude Code. - Add the workflow below.
.github/workflows/pingwright.yml
name: Monitor new endpoints
on:
pull_request:
types: [closed]
branches: [main]
jobs:
monitor:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Connect Pingwright
run: |
cat > /tmp/pingwright.json << 'EOF'
{"mcpServers": {"pingwright": {
"type": "http",
"url": "https://mcp.pingwright.app/mcp",
"headers": {"Authorization": "Bearer ${{ secrets.PINGWRIGHT_API_KEY }}"}
}}}
EOF
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: |
Pull request #${{ github.event.pull_request.number }} was merged.
Find the HTTP, GraphQL and gRPC endpoints it added that are
reachable in production. For each one Pingwright does not
check yet, create a check for its health endpoint.
claude_args: |
--mcp-config /tmp/pingwright.json
--allowedTools mcp__pingwright__list_checks,mcp__pingwright__create_check--allowedTools limits the agent to listing and creating checks. It can't delete or change anything else, whatever the pull request says.
An API key works in one organization and acts as the person who created it. Revoke it under Settings › API keys if it leaks.
A status badge in your README
Every status page comes with a badge. Put it in your README to show the page's current status:
README.md
[](https://pingwright.app/status/<your-slug>)