# Sample connector spec: AISend (worked example)

What this is: the kind of one-page spec you get before we build. It is written for AISend's own MCP server, made on our own product, dated 2026-11-26. Nothing here is a customer's. For your product you would get the same sections filled with your API, your tools and your sign-in.

Source of every fact below: AISend repo (packages/mcp/src/server.ts, packages/mcp/README.md, packages/api/src/lib/mcp-oauth.ts, docs/distribution/chatgpt-plugin/SUBMISSION.md), read 2026-11-26.

## 1. Scope in one paragraph

AISend is an email API. The connector lets ChatGPT or Claude act on the signed-in user's own AISend account only. As it ships, AISend's connector can read AND write (it sends email). The connector build offer is read-only, so section 3 shows the read-only version we would write to the same template, and section 2 says plainly which shipped tools it would leave out.

## 2. What AISend ships today (hosted server: 10 tools)

| Tool | Reads or writes | Annotation in code |
|---|---|---|
| get_email_status | reads one sent email | readOnlyHint true |
| list_emails | reads a list, no bodies | readOnlyHint true |
| list_domains | reads sending domains and status | readOnlyHint true |
| get_account_status | reads plan, test emails left, domains | readOnlyHint true |
| list_api_keys | reads key prefixes only | readOnlyHint true |
| get_app_links | returns App Store links, no account data | readOnlyHint true |
| validate_email | checks an address; uses the monthly quota | readOnlyHint false (it spends quota) |
| add_domain | writes: adds a sending domain | not read-only |
| verify_domain | writes: marks a domain verified | not read-only |
| send_email | writes: delivers real mail, cannot be recalled | destructiveHint true |

Two more tools exist only in the local npm server, not in the hosted one: create_api_key and agent_signup.

## 3. The same server as a read-only build (what the offer sells)

Keep: get_email_status, list_emails, list_domains, get_account_status, list_api_keys, get_app_links (6 tools, the offer allows up to 10). Drop: send_email, add_domain, verify_domain, validate_email.
Rule for any buyer: every tool calls only GET endpoints of your API, and the token we ask your API for is a read-only token, so the limit holds even if the tool code were wrong. If your API has no read-only scope, that is a question for you before we start (section 6).

## 4. Authentication

- OAuth 2.1 for the user to sign in on the product's own site and approve. Dynamic client registration, public clients, PKCE S256 only, no client secret, no implicit flow.
- Redirect addresses are an exact list (claude.ai, ChatGPT callbacks, local loopback for desktop tools).
- The access token is an ordinary AISend API key named after the client. It works only on the MCP endpoint, expires after 90 days, and is capped at 100 sends a day. The user sees it on the API Keys page and can revoke it at any time. There is no refresh token: after a revoke or expiry the user reconnects.
- Honest gap: AISend's one OAuth scope, "email", means everything an API key can do. For a read-only build the scope must be narrower than that, and we check it in review (section 5).

## 5. Security checklist (reviewed by a person before submit)

- [ ] Read-only: no tool can create, change or delete data, send anything or spend money. Checked by listing every route each tool calls.
- [ ] Every tool has a title and an explicit readOnlyHint, destructiveHint and openWorldHint (both stores ask for it).
- [ ] No secrets in prompts or tool text. The tools never ask the user to paste a key, and no key or token is returned in a tool result or logged.
- [ ] Text that comes from your data (email subjects, bodies, names) is marked in the tool description as data to read, not instructions to follow.
- [ ] The user can revoke the connection at any time, from your product's own page and from Claude or ChatGPT settings. We state where.
- [ ] Tokens are limited to the signed-in user's own account; no cross-account reads. We test with two accounts.
- [ ] Every tool has a rate limit and returns a plain error when the limit is hit.
- [ ] HTTPS only; redirect addresses on an exact list; PKCE S256 required.
- [ ] Privacy policy on your site covers the connector (what is read, what is stored, how to revoke).
- [ ] A test account for the platform reviewers, with sample data, and no production credentials anywhere in the package.

## 6. Questions we would ask you before starting

1. Does your API have a read-only token or scope? If not, can you add one, or accept that we ask for a normal token and enforce read-only in our server?
2. Which 10 or fewer reads matter most to your users?
3. Where does a user sign in and approve (your OAuth authorize page), and is there a revoke page?
4. Which subdomain of yours (for example mcp.yourdomain.com) can point to our server?
5. Who owns the OpenAI and Anthropic developer accounts the listing goes under?

## 7. Submission notes from our own run

- ChatGPT: needs the MCP domain verified, OAuth, logo and icon, 5 positive and 3 negative test cases, a reviewer account without MFA, and a short demo video.
- Claude: submit at claude.ai/directory/manage as an MCP connector; the portal reads the tools and flags any without a title or annotation. By default a connector is listed as "Community" after automated checks, and some also get a person's review. Review time varies.
- We cannot promise approval or a date. OpenAI and Anthropic decide approval, review time and listing.
