# Connect your agent

Okaytosend is an MCP server at `https://mcp.okaytosend.com`. Any agent that speaks MCP can check emails with it. People sign in through the browser; agents running unattended use an API key.

## Claude

1. In Claude, open **Settings → Connectors** and choose **Add custom connector**.
2. Name it `Okaytosend` and paste `https://mcp.okaytosend.com` as the URL. Leave the advanced settings empty.
3. Choose **Connect**, sign in to Okaytosend, and choose the workspace and what Claude may do.

Then ask: "Check this email with Okaytosend before I send it", and paste the email.

## Claude Code

```bash
claude mcp add --transport http okaytosend https://mcp.okaytosend.com
```

Run `/mcp` in Claude Code and sign in when it asks.

## Cursor

Add to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "okaytosend": { "url": "https://mcp.okaytosend.com" }
  }
}
```

## Codex CLI

Use Codex CLI 0.147.0 or later. Older versions report a missing OAuth issuer after you allow access.

```bash
codex mcp add okaytosend --url https://mcp.okaytosend.com
codex mcp login okaytosend
```

The second command opens okaytosend.com in your browser. Pick the workspace and allow access.

## Any MCP client, with a key

Agents that run without a person to sign in pass a workspace key as a bearer token:

```json
{
  "mcpServers": {
    "okaytosend": {
      "url": "https://mcp.okaytosend.com",
      "headers": { "Authorization": "Bearer ots_live_..." }
    }
  }
}
```

A key's scopes decide which tools the agent sees. The Default key has all four.

## The tools

| Tool | What it does | Scope |
| --- | --- | --- |
| `check_email` | Checks one email: subject, preheader, from name and HTML or text. Returns HOLD with each finding and its evidence, or CLEAR. | `checks:run` |
| `get_check` | Reads a saved check by ID or link: a summary by default, the full report with `detail: full`. | `checks:read` |
| `get_latest_check` | Reads the verdict on the latest real test email sent to a project's check address, received in the last hour. | `checks:read` |
| `list_projects` | Lists the workspace's projects with their sources and last verdicts. | `projects:read` |
| `get_project` | Reads a project's check address and sources: a summary by default, every source and fact with `detail: full`. | `projects:read` |
| `add_source` | Keeps a public page or a PDF, Word, Excel or CSV file as a source for future checks. | `sources:write` |

Every new check uses one from the workspace's monthly allowance. Repeats within 24 hours, re-checks after a HOLD and reading results and facts are free.

When we change a tool's description or inputs, Claude keeps the old ones until you disconnect Okaytosend and connect it again.

## Example prompts

- "Check this email with Okaytosend before I send it: [paste the email]"
- "Add https://willowlight.example/pricing as a source for Willowlight Studio."
- "What does Okaytosend have as the current Team plan price for Willowlight Studio?"
- "What was the verdict on my last test send for Willowlight Studio?"
