# Connect your agent with one sentence

> Tell your agent one sentence. It adds Rappy by itself and opens the browser: you sign up (or sign in) and press Allow. No commands to type, no token to copy.

**Tell your agent:** "Connect Rappy: rappy.space/agents.md"

1. **Tell your agent.** Paste the sentence into the chat with your agent. It adds Rappy to its own settings, on Windows, macOS or Linux.
2. **Sign up in the browser.** A browser window opens. New to Rappy? Sign up right there with email or Google: Free plan plus 14 days of Pro, no card. Have an account? Sign in.
3. **Press Allow.** Choose who the agent acts as (for example claude) and press Allow. The agent checks the connection and tells you what is next. Disconnect any time in Settings → Workspace → Connected apps.

MCP endpoint: `https://rappy.space/mcp` (Streamable HTTP). Connect with MCP OAuth, no token to copy: clients that support MCP authorization need only this URL. Simplest: the person tells their agent "Connect Rappy: rappy.space/agents.md" and the agent sets it up (steps at the top of https://rappy.space/agents.md). By hand in Claude Code: `claude mcp add --transport http --scope user rappy https://rappy.space/mcp` (Windows: `claude.cmd`), then `/mcp` → rappy → **Authenticate** (or `claude mcp login rappy` in a terminal). The browser opens; the person signs in, picks which agent identity to connect as (an existing agent, a new one such as `claude`, or themselves) and approves. Disconnect in **Settings → Workspace → Connected apps**. Alternative for CI, scripts and clients without OAuth: header `Authorization: Bearer rpy_…` with a token the person creates at https://rappy.space/app/ → **Agents → Connect agent → Create token**. Agents never ask for, handle or print credentials.

## Configs for every client

### Claude Code

```bash
claude mcp add --transport http --scope user rappy https://rappy.space/mcp
```

Run in a terminal (on Windows: claude.cmd), then in Claude Code: /mcp → rappy → Authenticate (or claude mcp login rappy in a terminal). --scope user makes Rappy available in every project.

Alternative: with a token (CI, scripts, clients without OAuth):

```bash
claude mcp add --transport http --scope user rappy https://rappy.space/mcp \
  --header "Authorization: Bearer rpy_…"
```

### OpenAI Codex

File: `~/.codex/config.toml`

```toml
[mcp_servers.rappy]
url = "https://rappy.space/mcp"

# then, in your shell:
# codex mcp login rappy
```

Add to ~/.codex/config.toml, then run codex mcp login rappy and approve in the browser.

Alternative: with a token (CI, scripts, clients without OAuth):

```toml
[mcp_servers.rappy]
url = "https://rappy.space/mcp"
bearer_token_env_var = "RAPPY_TOKEN"

# then, in your shell:
# export RAPPY_TOKEN=rpy_…
```

### Copilot (VS Code)

File: `.vscode/mcp.json`

```json
{
  "servers": {
    "rappy": { "type": "http", "url": "https://rappy.space/mcp" }
  }
}
```

Create .vscode/mcp.json in your project and use Copilot Chat in Agent mode. VS Code asks you to sign in when the server starts; approve in the browser.

Alternative: with a token (CI, scripts, clients without OAuth):

```json
{
  "servers": {
    "rappy": {
      "type": "http",
      "url": "https://rappy.space/mcp",
      "headers": { "Authorization": "Bearer ${input:rappy-token}" }
    }
  },
  "inputs": [
    { "type": "promptString", "id": "rappy-token", "description": "Rappy agent token (rpy_…)", "password": true }
  ]
}
```

### Gemini CLI

File: `~/.gemini/settings.json`

```json
{
  "mcpServers": {
    "rappy": { "httpUrl": "https://rappy.space/mcp" }
  }
}
```

Add to ~/.gemini/settings.json (or .gemini/settings.json in a project), then run /mcp auth rappy in Gemini CLI and approve in the browser.

Alternative: with a token (CI, scripts, clients without OAuth):

```json
{
  "mcpServers": {
    "rappy": {
      "httpUrl": "https://rappy.space/mcp",
      "headers": { "Authorization": "Bearer rpy_…" }
    }
  }
}
```

### Cursor

File: `~/.cursor/mcp.json`

```json
{
  "mcpServers": {
    "rappy": { "url": "https://rappy.space/mcp" }
  }
}
```

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project). Cursor runs the sign-in (OAuth) in the browser; approve there.

Alternative: with a token (CI, scripts, clients without OAuth):

```json
{
  "mcpServers": {
    "rappy": {
      "url": "https://rappy.space/mcp",
      "headers": { "Authorization": "Bearer rpy_…" }
    }
  }
}
```

### Any MCP client (generic JSON)

File: `mcp.json`

```json
{"mcpServers":{"rappy":{"url":"https://rappy.space/mcp"}}}
```

Clients that support MCP authorization (OAuth) open the browser for your approval. No MCP client? The same tools answer plain JSON-RPC over HTTP: POST tools/call to the MCP endpoint with the token and the header Accept: application/json, text/event-stream. /api/* is the web app's own API, not an agent interface.

Alternative: with a token (CI, scripts, clients without OAuth):

```json
{"mcpServers":{"rappy":{"url":"https://rappy.space/mcp","headers":{"Authorization":"Bearer rpy_…"}}}}
```

## Endpoint and sign-in

- **MCP endpoint:** https://rappy.space/mcp · Streamable HTTP
- **Authorization:** MCP OAuth: you sign in and approve in the browser; disconnect in Settings → Workspace → Connected apps. Or a token: header Authorization: Bearer rpy_…, revoke it on the Agents screen.
- **Parallel sessions:** Give every session its own name: pass as=claude-ui on each call or connect to https://rappy.space/mcp?as=claude-ui.
- **REST API:** The same operations over REST at https://rappy.space/api/* with an agent token.

## Check that it works

1. Reload MCP servers in your client (in Claude Code: /mcp): rappy shows as connected and its tools are listed.
2. Ask your agent to call whats_next. It answers with your queue.
3. Then say: connect this project to Rappy. The agent creates the product, writes a knowledge base from the code and fills the backlog.

## Leave a note for the next session

Add this to CLAUDE.md, AGENTS.md, GEMINI.md or your Cursor rules, so every new session knows where the tasks live:

```markdown
## Task tracking: Rappy
This repository is product `APP` in Rappy (MCP server `rappy`).
- Session start: `whats_next`; first time this session: `product_context product=APP`.
- Work dictated in chat → `create_tasks` (product APP), then reply with the task keys.
- Mention task keys in commits (`APP-42: fix login redirect`); add PRs with `link kind=pr`.
- Give an estimate when you start (`update_task progress=10 remaining="1h"`), update it as you go.
- Finish with `submit` + a short report. Ask people with `ask` only when blocked.
```

For agents: https://rappy.space/agents.md · Full reference: https://rappy.space/llms-full.txt
