---
title: "Coding agents"
description: "Connect Claude, ChatGPT, Cursor or any MCP client, so it can read your docs and propose changes as you."
---

A coding agent that speaks MCP can search and read your docs, and propose changes next to the code it's working on.
It signs in as you and sees only the sites you pick. It can read, search and propose changes. It can't merge, change
settings or act as more than an editor.

The address to give it is:

```text
https://app.specly.xyz/api/mcp
```

## Connect an agent

Open **Coding agents › Connect**, or choose **Connect an agent** at the top of the **Coding agents** page. Pick your
client, and follow its steps.

1. **Add the address**

   Add `https://app.specly.xyz/api/mcp` to your client. The steps for each are below.

2. **Sign in**

   The agent opens a Specly page. Sign in, and pick the sites it may see.

3. **Ask it to work**

   Ask it to read a page or document a change. Its work shows up in **Changes**.

**Claude**

In Claude on the web or desktop, go to Settings, then Connectors, then Add custom connector. Paste the address.

In Claude Code, run:

```bash
claude mcp add --transport http specly https://app.specly.xyz/api/mcp
```

**ChatGPT**

In ChatGPT, go to Settings, then Apps and connectors, then Advanced, and turn on Developer mode. Choose Create, paste
the address, and choose OAuth. Sign in when ChatGPT asks, and pick the sites it may see.

**Cursor**

Choose **Add to Cursor** on the **Connect** page. Or add it to `~/.cursor/mcp.json` yourself:

```json
{
  "mcpServers": {
    "specly": { "url": "https://app.specly.xyz/api/mcp" }
  }
}
```

**Others**

Any agent that speaks MCP over HTTP signs in with OAuth. Give it the address. If it can't sign in, send a personal
token as `Authorization: Bearer <token>`.

## What an agent can do

| Tool | What it does |
| --- | --- |
| `list_sites` | Lists your docs sites. |
| `list_pages` | Lists a site's pages in navigation order. |
| `search_pages` | Finds pages that contain some text. |
| `read_page` | Reads one page's Markdown. |
| `propose_docs_change` | Proposes new or changed pages to go with a code change. |

## Personal tokens

If your client can't sign in with OAuth, use a personal token. Go to **Settings › Your account › Personal tokens**,
name the token, and choose **Create token**. Specly shows it once, so copy it then. Keep it in your environment as
`SPECLY_TOKEN`, never in a file you commit.

For Claude Code, the command with a token is:

```bash
claude mcp add --transport http specly https://app.specly.xyz/api/mcp --header "Authorization: Bearer <token>"
```

A token sees every site you can. Revoke it as soon as you stop using it.

## See and stop what's connected

**Coding agents › Connected** lists your agents and tokens, which sites each sees, when it was last used, and what it
did, with a link to its changes. Choose **Disconnect** or **Revoke** to stop one at once. Everyone sees only their own.

## Rules

Everyone can read **Coding agents › Rules**, and only admins change it. Under **When an agent changes your docs**, pick one:

- **Open a pull request**: recommended. You review it in **Changes**, and it gets a preview build.
- **Save as drafts in the editor**: shows up in **Publish** next to your own edits. It never writes over edits nobody
  has published yet.
- **Push straight to** your docs branch: goes live after the build, for people whose GitHub account can push to it. When the branch doesn't take direct commits, the agent opens a pull request instead. Agents change what readers see without anyone
  reviewing it. Checks still run, and a failing build keeps the last good version live.

Agents can't touch `AGENTS.md`, `CLAUDE.md` or anything outside your docs folder, except `docs.json`.

Under **Allowed sign-in addresses**, an agent finishes signing in by sending you back to an address of its own. Specly
sends people back only to addresses on this list. Add one with **Add**, as a host with HTTPS, no path or port. The list
applies to every site in your organization.
