# Connect Fiest to Claude Code

Source: https://docs.fiest.io/mcp/claude-code

Claude Code supports remote MCP servers over Streamable HTTP and can complete
Fiest OAuth in your browser.

## 1. Copy and run this command [#1-copy-and-run-this-command]

Use **Production** for a live Fiest account. Use **Sandbox** only when Fiest has
invited you to test with isolated sample data. The sandbox currently uses the
temporary `mcp-dev.fiest.io` hostname.

### Production

```bash
claude mcp add --scope user --transport http \
  fiest https://mcp.fiest.io/mcp
```

### Sandbox

```bash
claude mcp add --scope user --transport http \
  --client-id fiest-claude-code-dev --callback-port 33177 \
  fiest-sandbox https://mcp-dev.fiest.io/mcp
```

User scope makes the connection available across your Claude Code projects.

## 2. Approve access in Fiest [#2-approve-access-in-fiest]

Start browser authorization from your terminal. Use the command for the
environment you added:

### Production

```bash
claude mcp login fiest
```

### Sandbox

```bash
claude mcp login fiest-sandbox
```

You can also open Claude Code and run:

```text
/mcp
```

Select the connection you added (`fiest` in Production or `fiest-sandbox` in
Sandbox) and start authentication. Claude Code opens the Fiest
authorization flow in your browser. Sign in if needed, choose the restaurant or
organization you want to connect, review access, and approve it.

<Callout type="info" title="No credentials to configure">
  Do not add an API token, client secret, or one-time code. Authentication
  happens on the official Fiest page opened by Claude Code.
</Callout>

## 3. Check that it worked [#3-check-that-it-worked]

Ask Claude Code:

```text
Use Fiest to show the restaurant context I authorized.
```

You are connected when Claude Code calls `get_restaurant_context` and shows the
restaurant or organization you approved.

## Manage the connection [#manage-the-connection]

### Production

```bash
claude mcp list
claude mcp get fiest
claude mcp remove fiest
```

### Sandbox

```bash
claude mcp list
claude mcp get fiest-sandbox
claude mcp remove fiest-sandbox
```

Use `/mcp` to inspect status, authenticate again, or clear Claude Code's stored
authentication. Revoking access in Fiest remains the authoritative way to
remove the grant.

## Troubleshooting [#troubleshooting]

* **Authentication required:** run `claude mcp login fiest` in Production or
  `claude mcp login fiest-sandbox` in Sandbox. You can also open `/mcp`, select
  the connection, and authenticate.
* **Browser did not open:** copy the authorization URL shown by Claude Code and
  open it in your browser.
* **Connection was revoked:** authenticate again through `/mcp`.
* **Wrong restaurant:** revoke the Fiest authorization and reconnect, selecting
  the correct restaurant.

See the [official Claude Code MCP documentation](https://code.claude.com/docs/en/mcp)
for client-specific options.