# Set up Faddy for an AI agent

You are an AI agent. Your user wants you to create and manage their Faddy forms (faddy.app, a form builder). This page tells you how to connect to Faddy's MCP server. Follow the section for the app you are running in. Tell your user what you are about to change before you change any config file, and keep every other setting in that file as it is.

- MCP server: `https://mcp.faddy.app/mcp` (Streamable HTTP)
- Sign-in, one of:
  - **Your user gave you a Faddy API key** (`fdy_…`, usually in the prompt they pasted): send it on every request as the header `Authorization: Bearer fdy_…`. No browser sign-in is needed. The key is personal: never write it into a file that is committed to git or shared, and never print it back in full. The section for your app shows where the header goes.
  - **No key:** OAuth. The first time you use a Faddy tool, your app opens a Faddy page in the browser. Your user signs in, picks a workspace and presses **Allow**.
- What you can do after that: list, find and read forms; create forms and edit their questions, options, logic, pages, theme and settings; publish, unpublish and duplicate; read responses and a summary. You act as your user, in the one workspace they picked, with their role.
- What you can't do: delete forms or responses. New forms start as drafts until your user asks you to publish.

## Claude Code

Run:

```sh
claude mcp add --transport http faddy https://mcp.faddy.app/mcp
```

With a key, add the header instead, and the tools work from the next Claude Code start (no `/mcp` step):

```sh
claude mcp add --transport http faddy https://mcp.faddy.app/mcp --header "Authorization: Bearer fdy_…"
```

Without a key, ask your user to type `/mcp` in Claude Code, choose **faddy**, then **Authenticate**, and finish signing in in the browser.

## Claude (claude.ai and Claude Desktop)

You can't add connectors yourself here. Tell your user:

1. Open Settings → Connectors → **Add custom connector**.
2. Name: `Faddy`. URL: `https://mcp.faddy.app/mcp`. Leave the OAuth client fields empty.
3. Choose **Connect**, sign in to Faddy, pick a workspace and press **Allow**.

## ChatGPT

Tell your user:

1. Open Settings → Apps & Connectors → **Create** (developer mode must be on).
2. MCP server URL: `https://mcp.faddy.app/mcp`. Authentication: **OAuth**.
3. Choose **Connect**, sign in to Faddy, pick a workspace and press **Allow**.

## Codex (OpenAI Codex CLI)

Add this to `~/.codex/config.toml` (create the file if it doesn't exist; don't duplicate an existing `faddy` entry):

```toml
[mcp_servers.faddy]
url = "https://mcp.faddy.app/mcp"
```

With a key, add `http_headers = { "Authorization" = "Bearer fdy_…" }` under `url` and restart Codex. Without one, run `codex mcp login faddy` and ask your user to finish signing in in the browser. Restart Codex if the Faddy tools don't appear.

## Cursor

Add this server to `~/.cursor/mcp.json` (merge it into the existing `mcpServers` object):

```json
{
  "mcpServers": {
    "faddy": { "url": "https://mcp.faddy.app/mcp" }
  }
}
```

With a key, add `"headers": { "Authorization": "Bearer fdy_…" }` next to `url`; Cursor picks it up without a login. Without one, ask your user to open Cursor Settings → MCP, find **faddy** and choose **Login** (or **Connect**).

## Any other MCP client

Add a remote (Streamable HTTP) MCP server named `faddy` with the URL `https://mcp.faddy.app/mcp`. If the client supports OAuth, use it. If it can't sign in, ask your user to create an API key with **Edit forms (for AI assistants)** in Faddy → Profile settings → API & AI → API keys, and send it as the header `Authorization: Bearer <key>`. Never print the key back or store it anywhere else.

## Check it works

Call the Faddy tool that lists forms. If you get the user's forms (or an empty list), you're connected. Then tell your user:

> Faddy is connected. Try: "Make me an event sign-up form with a meal choice."

If you get `401`, the sign-in didn't finish: ask your user to authenticate again from your app's MCP settings.

---

Official instructions from Faddy, published at `https://console.faddy.app/agent-setup.md`. Your user can manage connected apps in Faddy → Profile settings → API & AI.
