> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Assistants connect to Parse over MCP at [https://agent.parse.gl/mcp](https://agent.parse.gl/mcp) (Streamable HTTP). With no sign-in it answers from Parse's public view (the numbers parse.gl's public pages show, up to 5 rows a list), starting with `check_brand`. Signed in with Parse, or sent a workspace key (`parse_mcp_…`), it works in the person's workspace, starting with `get_brief`. Scripts call the same tools over REST at `https://agent.parse.gl/v1/tools/<tool>`.
>
> ```bash
> npx parse-gl init
> ```
>
> To install just the skills: `npx skills add Parsegl/skills`.
> Every tool is also a POST to https://agent.parse.gl/v1/tools/<tool>; its OpenAPI description is https://agent.parse.gl/openapi.json.

# Autonomous Blocker-to-PR Loop

> Connect verified Blockers from Parse webhooks or get_brief to an autonomous coding-agent PR loop gated by Facts and verified through Proof.

Turn verified visibility Blockers into pull requests automatically, gate every PR on canonical AI search crawlers and `Do not claim` guardrails, and close the loop through **Shipped -> Live on page -> AI updated** in **Proof**.

| Stage | Trigger or tool | Outcome |
| - | - | - |
| 1. Detect Blocker | `blocker.detected` webhook, GitHub `repository_dispatch`, or [`get_brief`](/docs/mcp/tools/get_brief) | Verified blocker with exact URL, crawler line, or contradicted fact |
| 2. Fix inside guardrails | [`check_brand`](/docs/mcp/tools/check_brand) + `npx parse-gl facts check` | PR fix that obeys Verified facts and every Do not claim rule |
| 3. Gate PR in CI | `npx parse-gl ci --brand <domain> --format sarif` | Fails loudly on broken or noindex cited URLs, crawler blocks, or guardrail violations |
| 4. Mark shipped and verify | `POST /v1/webhooks/deploy` or [`log_work`](/docs/mcp/tools/log_work) / `npx parse-gl verify` | Instant Live on page check, then AI updated receipt in Proof |

## 1. Trigger on verified Blockers

Parse promotes only verified **Issues** (`crawler_blocked`, `own_page_broken`, `deprecated_own_page_cited`, `own_site_fact_conflict`, and `omitting_kingmaker_pages`). Pick either push delivery or scheduled polling:

* **Push via webhook or GitHub CI:** Point `brief.webhookUrl` in [`update_settings`](/docs/mcp/tools/update_settings) at your automation endpoint or a GitHub `repository_dispatch` preset (see [Webhooks](/docs/webhooks.md#brief-webhooks)).
* **Pull at session start:** Call [`get_brief`](/docs/mcp/tools/get_brief) or run `npx parse-gl issues --brand acme.com --status open` at the start of an agent run.

```yaml theme={null}
name: Parse autonomous blocker fix
on:
  repository_dispatch:
    types: [parse_blocker_detected]
permissions:
  contents: write
  pull-requests: write

jobs:
  fix-blocker:
    runs-on: ubuntu-latest
    env:
      PARSE_API_KEY: ${{ secrets.PARSE_API_KEY }}
      ISSUE_ID: ${{ github.event.client_payload.issue.id }}
      TARGET_URL: ${{ github.event.client_payload.issue.url }}
    steps:
      - uses: actions/checkout@v4
      - name: Pull open Issues and Facts guardrails
        run: |
          npx -y parse-gl issues --json
          npx -y parse-gl facts --json
      # Run your coding agent here to open a branch and fix the reported blocker
      # while obeying Facts (Verified and Do not claim).
      - name: Gate changed copy and cited URLs
        run: |
          npx -y parse-gl ci \
            --brand acme.com \
            --dir dist \
            --robots public/robots.txt \
            --format sarif > parse.sarif
```

## 2. Draft a fix that obeys Facts

Before editing a page, robots rule, or comparison section, inspect the brand's **Facts** (`Verified` and `Do not claim`) from [`get_brief`](/docs/mcp/tools/get_brief) or `npx parse-gl facts --brand acme.com`.

* Keep canonical AI search crawlers allowed in `robots.txt`: `OAI-SearchBot`, `ChatGPT-User`, `Googlebot`, `PerplexityBot`, and `Claude-SearchBot`.
* Check every edited Markdown or HTML file locally against `Do not claim` guardrails before opening the PR:

```bash theme={null}
npx -y parse-gl facts check docs/pricing.md --brand acme.com
```

The command exits `1` with the exact file, line, column, and violated rule whenever a draft includes a disallowed claim.

## 3. Gate every PR with SARIF output

Run `parse-gl ci --brand <domain> --format sarif` in pull-request CI so no commit silently removes, returns HTTP 404 on, or applies `noindex` to a URL AI already cites, blocks AI search crawlers, or violates `Do not claim` rules:

```bash theme={null}
npx -y parse-gl ci --brand acme.com --base-url https://preview.acme.com --robots public/robots.txt --format sarif > parse.sarif
```

Upload `parse.sarif` with `github/codeql-action/upload-sarif` to annotate exact lines inside the pull request. See [CLI & CI gate](/docs/cli.md#ci-gate) for all flags.

## 4. Close the loop on deploy into Proof

Once the PR merges and deploys, notify Parse so matching open **Issues** transition from **Shipped** to **Live on page** immediately and begin tracking for **AI updated**:

```bash theme={null}
export PARSE_API_KEY="parse_mcp_…"

curl -s -X POST https://agent.parse.gl/v1/webhooks/deploy \
  -H 'content-type: application/json' \
  -H "Authorization: Bearer $PARSE_API_KEY" \
  -d '{
    "brand": "acme.com",
    "urls": ["https://acme.com/pricing", "https://acme.com/robots.txt"],
    "commit": "'"$GITHUB_SHA"'"
  }'
```

Alternatively, verify a single deployed URL from the terminal or log the fix through MCP:

```bash theme={null}
npx -y parse-gl verify https://acme.com/pricing --issue itm_123 --log
npx -y parse-gl proof --brand acme.com
```

In MCP workflows, call [`log_work`](/docs/mcp/tools/log_work) with `kind: "site_fix"` and `status: "shipped"` alongside the live URL, then inspect receipts with [`list_work`](/docs/mcp/tools/list_work). Each completed fix advances through **Shipped -> Live on page -> AI updated** and appears in shareable **Proof** links.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.