Ephemeral Pull-Request Previews with AgentDomains
Spin up pr-142-web.makes.fyi automatically when a GitHub PR opens and delete it cleanly on merge.
Reviewers test every pull request on a real HTTPS domain. Cookies, CORS, and webhooks match production.
1. 3-Stage Sequence Diagram
3-stage sequence: AI agent claims pr-142-web.makes.fyi, maps it to pr-142-web.fly.dev, and verifies HTTPS 200 OK.
2. 4-Step MCP Tool-Call Transcript
Your agent sends these exact calls to https://mcp.agentdomains.co or local stdio.
{
"tool": "check_availability",
"arguments": {
"label": "pr-142-web",
"domain": "makes.fyi"
}
}
// Response:
{
"fqdn": "pr-142-web.makes.fyi",
"available": true,
"reason": "available"
}
{
"tool": "claim_domain",
"arguments": {
"label": "pr-142-web",
"domain": "makes.fyi",
"email": "ops@example.com"
}
}
// Response:
{
"fqdn": "pr-142-web.makes.fyi",
"status": "claimed",
"confirm_within_days": 30
}
{
"tool": "set_proxy",
"arguments": {
"label": "pr-142-web",
"domain": "makes.fyi",
"origin": "pr-142-web.fly.dev"
}
}
// Response:
{
"ok": true,
"fqdn": "pr-142-web.makes.fyi",
"origin": "pr-142-web.fly.dev",
"https": "https://pr-142-web.makes.fyi"
}
curl -fsSI https://pr-142-web.makes.fyi
# HTTP/2 200
# content-type: application/json
# strict-transport-security: max-age=31536000
3. Clean Teardown (GitHub Action & CLI)
Trigger agentdomains delete pr-$PR_NUMBER-web automatically on pull_request: [closed]. Delete the DNS mapping before you destroy your cloud server to block dangling takeovers.
name: Teardown pr-142-web
on:
workflow_dispatch:
pull_request:
types: [closed]
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Delete AgentDomains hostname before destroying compute
env:
AGENTDOMAINS_API_KEY: ${{ secrets.AGENTDOMAINS_API_KEY }}
run: |
curl -fsSL -X DELETE \
-H "Authorization: Bearer $AGENTDOMAINS_API_KEY" \
"https://api.agentdomains.co/v1/subdomains/pr-142-web"
# Or with the Go CLI:
# agentdomains delete pr-142-web
More Workflow Blueprints
Remote MCP Server Hosting
Publish your own Streamable HTTP MCP server over trusted HTTPS (https://my-mcp-srv.agentdomains.co) so Claude, Cursor, and ChatGPT can connect.
Hackathon Demo URLs
Claim a short demo domain in 10 seconds during a hackathon. Free for 30 days with no card.
AI InferenceLocal LLM API Endpoint
Point an A record at your Ollama or vLLM box behind Caddy. Call your private API over HTTPS.
SSL / TLSACME DNS-01 & Private TLS Certs
Publish _acme-challenge TXT records via MCP or CLI. Get Let’s Encrypt certs behind NAT or closed port 80.
Claim your agent domain now
Start with 10 free HTTPS domains under agentdomains.co or makes.fyi for 30 days. Upgrade to Pro for $10/year to keep up to 100 names with visitor stats.