> ## 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.

# CLI & CI gate (parse-gl)

> Install and use npx parse-gl to connect AI editors, call every Parse tool from the terminal, run a local stdio MCP bridge, and gate deploys on AI readability in CI.

The `parse-gl` CLI connects your AI coding tools in one command, calls any Parse tool from scripts or the shell, bridges stdio-only MCP clients, and runs standalone AI-readability checks in CI with zero account or API key required.

```bash theme={null}
npx parse-gl init
```

## Command reference

| Command | What it does | Key flags |
| - | - | - |
| `npx parse-gl init` | Detect installed AI editors, configure Parse MCP, download all 3 skills, optionally run a live brand check, and add a marketing-only repo rule. | `--client <list>`, `--brand <domain>`, `--no-rule`, `--yes` |
| `npx parse-gl doctor` | Verify Parse MCP readiness, snapshot freshness, workspace auth/balance, configured editors, skill SHA-256 digests, and repo rules. | None (exits 1 if any check fails) |
| `npx parse-gl login` | Sign in via browser OAuth, or validate and save a workspace key. | `--key parse_mcp_…` |
| `npx parse-gl logout` | Delete saved local credentials. | None |
| `npx parse-gl start` | Mint a temporary unclaimed workspace (`parse_uws_…`) so an agent can log work before a person claims it. | None |
| `npx parse-gl claim` | Start claiming an unclaimed workspace; prints the claim URL and 6-digit 24-hour code. | `--email <address>` |
| `npx parse-gl whoami` | Print current auth state (anonymous, unclaimed, or connected workspace brands and credits). | None |
| `npx parse-gl check <brand>` | Shorthand for [`check_brand`](/docs/mcp/tools/check_brand) (works without a key). | Domain, brand name, or brd\_ ID |
| `npx parse-gl brief` | Shorthand for [`get_brief`](/docs/mcp/tools/get_brief). | Any `get_brief` flag or JSON |
| `npx parse-gl tools` | List every tool and schema from `GET /v1/tools` (alias: `help`). | None |
| `npx parse-gl <tool> [args]` | Call any tool by name with a JSON argument object or `--flag value` options (repeat a flag for arrays). | JSON object or repeatable flags |
| `npx parse-gl mcp` | Run a local stdio MCP bridge to `https://agent.parse.gl/mcp` via `mcp-remote` (requires Node 20.18.1+). | None |
| `npx parse-gl ci` | Run AI-readability checks against a live URL or local build artifacts and write a CI job summary. | `--url`, `--html`, `--robots`, `--llms`, `--strict`, `--json` |

**Global flags:** `--json` forces structured JSON output (also enabled automatically whenever stdout is not a TTY); `--key <key>` overrides credentials for a single command.

## Auto-configured editors (init)

`npx parse-gl init` auto-detects and configures supported AI coding environments. Pass `--client` with a comma-separated list (accepts `claude` as an alias for `claude-code`) to target specific tools:

```bash theme={null}
npx parse-gl init --client claude-code,cursor --brand acme.com --yes
```

Supported `--client` identifiers: `claude-code`, `cursor`, `codex`, `opencode`, `windsurf`, `gemini`, and `antigravity`. Exact config paths and repo rule files are listed on [Clients, skills & plugins](/docs/integrations.md#editors).

## Calling tools from scripts

Pass arguments either as repeatable `--name value` flags or as a single JSON object. Public tools run with no key:

```bash theme={null}
npx parse-gl check notion.so
npx parse-gl resolve_ids --q notion.so --q linear.app
npx parse-gl query_metrics '{"measures":["share_named","share_recommended"],"subject":"<brd_ id>","window":{"last":"28d"}}' --json
```

## Credentials and redaction

* **Precedence:** `--key <key>` overrides `PARSE_API_KEY`, which overrides `~/.config/parse/credentials.json`.
* **File safety:** Saved credentials live in `~/.config/parse/credentials.json` with mode `0600` inside a `0700` directory, guarded by a process lockfile during writes and OAuth refreshes.
* **Automatic redaction:** API keys, OAuth tokens, and unclaimed workspace keys are automatically scrubbed from stdout and stderr before anything prints.

## CI AI-readability gate (parse-gl ci)

`npx parse-gl ci` verifies that pages you ship are readable by AI crawlers before or after deploy, with zero API key, zero credits, and exit code `1` on any failed check.

| Flag | Purpose |
| - | - |
| `--url <http(s)://…>` | Fetch a live or staging URL (15s timeout, follows redirects) and also check its origin's /robots.txt and /llms.txt. |
| `--html <file>` | Check a local built HTML file (cannot be combined with `--url`). |
| `--robots <file>` | Check a local robots.txt file against AI search crawlers (overrides fetching /robots.txt when combined with --url). |
| `--llms <file>` | Check a local llms.txt file (fails if empty; live /llms.txt fetches without --llms are advisory). |
| `--strict` | Fail when a page has no JSON-LD structured data (otherwise a missing JSON-LD block warns and passes). |
| `--json` | Print the full machine-readable JSON check report. |

**Checks performed:**

* **HTTP status** (`--url`): fails on network error or status outside 2xx–3xx.
* **AI crawlers (robots.txt):** evaluates `robots.txt` rules against AI search crawlers (such as `OAI-SearchBot`, `Googlebot`, `PerplexityBot`, `Claude-SearchBot`) and fails if the target path is blocked.
* **Page indexing:** fails if an `X-Robots-Tag` header or `<meta>` tag sets `noindex` or `none` for robots or AI search crawlers.
* **Non-JS readability:** strips scripts, styles, comments, and HTML tags and fails when visible text is under 500 characters (catching blank client-rendered shells).
* **JSON-LD:** parses every `script type="application/ld+json"` block; fails on invalid JSON or non-object payloads, reports detected `@type` values, and warns (or fails under `--strict`) when absent.
* **llms.txt:** reports character length when present; fails if an explicit `--llms <file>` is empty.

When `$GITHUB_STEP_SUMMARY` is set in a CI workflow, `parse-gl ci` appends a Markdown check table directly to the job summary:

```yaml theme={null}
name: AI readability check
on:
  pull_request:
permissions: {}

jobs:
  parse-ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 22
      # Substitute your project's install/build commands, or use actions/download-artifact from an earlier build job.
      - name: Install dependencies and build
        run: |
          npm ci
          npm run build
      # Substitute your project's built HTML, robots.txt, and llms.txt output paths.
      - name: Check built page and robots.txt
        run: |
          npx -y parse-gl ci \
            --html dist/index.html \
            --robots public/robots.txt \
            --llms public/llms.txt
```

For staging URLs, replace the local flags with `npx -y parse-gl ci --url "$STAGING_URL"`. See [Workflows](/docs/workflows.md#site-fixes) for pairing the CI gate with [`log_work`](/docs/mcp/tools/log_work) and [`fetch_live_pages`](/docs/mcp/tools/fetch_live_pages).


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