# PageWeave Setup

PageWeave is a remote MCP server for building and managing websites (pages, forms, tables, assets, domains, and more; the dashboard adds analytics).

The MCP endpoint is publicly reachable and authenticates with OAuth: `https://pageweave.dev/mcp`.

## Your task

Register PageWeave as a **remote** MCP server in the harness you are running in, then verify the connection. The user may be non-technical — do everything you can yourself, explain in plain language, and never show them JSON or config files unless they ask.

## What you can and cannot do

- **Can you write files or run shell commands?** Configure the server yourself, using the native path for your surface below.
- **Are you a chat-only surface** (Claude app, Claude Cowork, ChatGPT web, a hosted assistant)? You cannot edit its settings. Give the user the exact steps and wait.
- **The browser OAuth sign-in is always the user's step.** The one step you cannot do for them is approve the sign-in in the browser; open the link, then wait.
- **Never say you are connected until `list_websites` returns.** A saved config is not a working connection.

## 1. Detect your surface

| Surface | Registration | Who does it |
| --- | --- | --- |
| Claude Code | `claude mcp add` | you |
| Claude app, Desktop, mobile, Cowork | custom connector | user only |
| ChatGPT web, Dots | plugin / connected app | user only |
| ChatGPT desktop, Codex CLI and IDE | `codex mcp add` | you |
| Cursor | `~/.cursor/mcp.json` | you |
| OpenCode Desktop or terminal | `mcp.servers` | you |
| Antigravity app, CLI, IDE | `mcp_config.json` | you, then user auth |
| OpenClaw, Hermes, Goose | own config shape | you, then user auth |
| Anything else | generic remote entry | you |

## 2. Coding harnesses

### Claude Code

Run: `claude mcp add --transport http --scope user pageweave https://pageweave.dev/mcp`

Then run `/mcp`, select `pageweave`, and choose Authenticate.

If the user already added the connector in the Claude app and this session uses a Claude subscription, Claude Code loads it automatically as a claude.ai connector — do not add it twice. API-key, Bedrock, and Vertex sessions do not load claude.ai connectors; use the command there.

### Claude app, Desktop, mobile, Cowork

The user adds it: Customize → Connectors → Add custom connector, name `PageWeave`, URL `https://pageweave.dev/mcp`, then Add, then Connect. https://claude.ai/customize/connectors opens the same page.

Free plans can add one custom connector; Cowork needs a paid plan. On Team or Enterprise, an owner may have to add it for the organization first. You cannot do this for them.

### ChatGPT web

The user adds it: Plugins → **+** → Add custom MCP server, name `PageWeave`, URL `https://pageweave.dev/mcp`, confirm the notice, then Create as a plugin and install it.

Full MCP, including write actions, needs ChatGPT Business, Enterprise, or Edu; Pro can connect read-only tools. Plus and Free have no custom MCP servers in ChatGPT web — use Codex below instead. Custom servers are web-only; a Business admin or owner adds them for the workspace. You cannot do this for them.

**Dots** use the same connected apps. Once the PageWeave plugin is installed, the user can enable it for a dot under Customize → Plugins, where dots are available (plan- and region-limited).

### ChatGPT desktop, Codex CLI, Codex IDE

All three share `~/.codex/config.toml`. Run: `codex mcp add pageweave --url https://pageweave.dev/mcp`

In the ChatGPT desktop app, select Restart after adding. If the browser does not open on first use, select Authenticate in the MCP server list or run `codex mcp login pageweave`.

### Cursor

Merge into `~/.cursor/mcp.json` (create it if missing):

```json
{ "mcpServers": { "pageweave": { "url": "https://pageweave.dev/mcp" } } }
```

Then select Connect (or Needs authentication) in Cursor. If the OAuth window does not open, update Cursor and retry; the `mcp-remote` bridge is only a workaround for old builds.

### OpenCode Desktop and terminal

If the `opencode` CLI is available, run: `opencode mcp add pageweave --global --url https://pageweave.dev/mcp`. Otherwise merge into the global config (`~/.config/opencode/opencode.jsonc` on macOS/Linux, `%USERPROFILE%\.config\opencode\opencode.jsonc` on Windows; create the directory if missing; save as UTF-8 **without BOM** — a BOM breaks the JSONC parser on Windows):

```jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "pageweave": {
        "type": "remote",
        "url": "https://pageweave.dev/mcp"
      }
    }
  }
}
```

Desktop and terminal read the same config; there is no separate Desktop setup. The CLI is not on PATH with OpenCode Desktop by default. Use `/mcps` to list the server and sign in. If the user is at a terminal, they can run `opencode mcp auth pageweave` — do not run it from an agent shell, because it is interactive and the authorization link can be hidden. If OpenCode Desktop asks for a project folder, any folder is fine — the websites live on PageWeave, not locally.

### Antigravity app, CLI, IDE

Antigravity is Google's current consumer agent; Gemini CLI is enterprise/API-key only since 18 June 2026. Merge into `~/.gemini/config/mcp_config.json` (or the workspace `.agents/mcp_config.json`):

```json
{ "mcpServers": { "pageweave": { "serverUrl": "https://pageweave.dev/mcp" } } }
```

Then authenticate: Customizations → Installed → MCP Servers → `pageweave` → Authenticate. The browser opens; approve, then paste the authorization code back into Antigravity. The CLI's `/mcp` manager runs the same flow.

## 3. Self-hosted agent runtimes

OpenClaw, Hermes, and Goose use their own config shapes — the generic `mcpServers` entry will not load.

| Runtime | Add it | Config and auth |
| --- | --- | --- |
| OpenClaw | `openclaw mcp add pageweave --url https://pageweave.dev/mcp --transport streamable-http --auth oauth`, then `openclaw mcp login pageweave` | `mcp.servers.pageweave` with `transport` and `auth`; verify with `openclaw mcp doctor pageweave --probe` |
| Hermes | Write `mcp_servers.pageweave` with `url` and `auth: oauth` in `~/.hermes/config.yaml`; the user runs `hermes mcp login pageweave` | `/reload-mcp` in session; `hermes mcp add` asks about tools interactively, so do not script it; verify with `hermes mcp test pageweave` |
| Goose | Write `~/.config/goose/config.yaml` with `extensions.pageweave` (`type: streamable_http`, `uri`); or the user runs `goose configure` → Remote Extension (Streamable HTTP) | browser sign-in |

## 4. Chat apps and hosted assistants

Claude app, Claude Cowork, ChatGPT web, and Dots are user-only paths — see above.

Hosted assistants that accept an MCP URL (Poke, Manus, and similar) work the same way: the user adds `https://pageweave.dev/mcp` as a remote MCP server and completes OAuth in the browser. You cannot do it for them.

## 5. Everything else

Warp, Kiro, Zed, Amp, Cline, and any other MCP client: use the client's native add command, or its own config wrapper, with the URL `https://pageweave.dev/mcp`. A config-file entry is URL-only:

```json
{ "mcpServers": { "pageweave": { "url": "https://pageweave.dev/mcp" } } }
```

Add `"type": "http"` when the client requires an explicit transport. Then authenticate in the client.

If the harness cannot add a remote MCP server, stop and send the user to `https://pageweave.dev/install` to install OpenCode Desktop.

## 6. Merge rules

If the config file already exists, parse it and **replace only the `pageweave` entry** — never remove or overwrite the user's other settings. Preserve the file's wrapper shape (`mcpServers`, `mcp.servers`, `context_servers`, `mcp_servers`, `extensions`). If it does not exist, create it with the URL-only entry. The `pageweave` entry must be URL-only: drop any `headers`, `env`, or API key from it. If `pageweave` is already registered, do not add a second entry — verify it instead.

## 7. Authentication

PageWeave connects by **OAuth sign-in in the browser — no API key**. Do not ask the user for a key and do not add any `Authorization` header (a stored credential suppresses the sign-in flow). The browser sign-in is the one step you cannot do for them.

Per harness: Claude Code uses `/mcp` → Authenticate; Codex desktop needs Restart and `codex mcp login` when no browser opens; Antigravity needs Authenticate plus the pasted code; OpenCode uses `/mcps`; OpenClaw and Hermes have `mcp login` commands. Restart another harness only if the server does not appear.

No PageWeave account yet? Request an invitation at `https://pageweave.dev/early-access`.

## 8. Verify

Call `list_websites`. If it returns (even an empty list), the connection works — this is the definitive check. If the tool is unavailable, confirm the sign-in completed and the config parses, then retry.

Status commands: `claude mcp list` / `claude mcp get pageweave`, `codex mcp list`, `opencode mcp list` (CLI) or `/mcps` (Desktop), `openclaw mcp doctor pageweave`, `hermes mcp test pageweave`.

## 9. Next step

Once verified, offer the interactive tutorial: *"Want to build your first website together? I'll walk you through it step by step."* If the user says yes, fetch `https://pageweave.dev/tutorial.md` and follow it.

## Revoking access

The user can review and revoke PageWeave at `https://pageweave.dev/settings/developer`.

## Language

Respond in the language the user writes in. If the user has not written anything yet, use the language of their setup prompt.

---

Last verified 2026-11-27. If a path moved, prefer the native add command, then the generic remote entry in section 5.
