# Connect an AI agent to Radiance

Radiance is a video translation & dubbing platform: you upload a video, Radiance
translates and dubs it into other languages and publishes the result to your
connected social accounts (YouTube, TikTok, Instagram, Facebook, LinkedIn,
Threads, Snapchat, Dailymotion).

Radiance exposes an MCP (Model Context Protocol) server, so any MCP-capable AI
agent — Claude, Codex, Hermes Agent, Cursor, or your own — can read your account
and act on it on your behalf.

This document is written to be followed by an agent as much as by a human. If you
are an AI agent reading this: pick the section matching your own configuration
format, substitute the user's token, write the config, reload your MCP servers,
then call `account-overview` to confirm.

## 1. Connection facts

| | |
|---|---|
| Endpoint | `https://radiance-app.com/mcp/radiance` |
| Transport | Streamable HTTP (`POST`), JSON-RPC 2.0 |
| Auth | OAuth sign-in (claude.ai, ChatGPT, any OAuth client), or `Authorization: Bearer <token>` |
| Server name | `radiance` |
| Rate limit | 60 requests / minute / user |
| Token page | https://radiance-app.com/settings/api-tokens |
| This document | https://radiance-app.com/mcp/setup (JSON: https://radiance-app.com/mcp/setup.json) |

## 2. One-click connection (OAuth)

Clients that support OAuth need only the endpoint URL above — no token, no header.
Add it as a remote MCP server; the client opens a browser where the user signs in
to Radiance and approves the access.

- **claude.ai / Claude Desktop:** Settings → Connectors → Add custom connector →
  paste the URL → Connect → sign in to Radiance.
- **ChatGPT:** Settings → Apps & Connectors → Advanced settings → enable developer
  mode, then create a connector with the URL and OAuth authentication.
- **Cursor, VS Code and other OAuth clients:** add the URL as a remote server with
  no `Authorization` header.

The access is the same as a token's: every tool, scoped to the user who signed in,
same rate limit. The user disconnects the app any time in Settings → API tokens →
Connected AI apps.

The token path below stays the way in for scripts, the CLI and clients without OAuth.

## 2b. Or get a token

Sign in to Radiance, open **Settings → API tokens**, name a token and generate it.
The token is shown **once** — copy it immediately. It carries the `mcp:use`
ability and nothing else, it is tied to your user, and every tool call made with
it can only ever reach your own data. Revoke it from the same page at any time.

Everywhere below, replace `YOUR_RADIANCE_TOKEN` with that token.

## 3. Client recipes

### Claude Code

Run this in a terminal:

```bash
claude mcp add --transport http radiance https://radiance-app.com/mcp/radiance --header "Authorization: Bearer YOUR_RADIANCE_TOKEN"
```

Client documentation: https://docs.claude.com/en/docs/claude-code/mcp

### Claude Desktop

Add this to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "radiance": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://radiance-app.com/mcp/radiance",
        "--header",
        "Authorization:${RADIANCE_AUTH}"
      ],
      "env": {
        "RADIANCE_AUTH": "Bearer YOUR_RADIANCE_TOKEN"
      }
    }
  }
}
```

Client documentation: https://modelcontextprotocol.io/quickstart/user

### Codex CLI

Run this in a terminal (it writes `~/.codex/config.toml`):

```bash
mkdir -p ~/.codex && cat >> ~/.codex/config.toml <<'TOML'

[mcp_servers.radiance]
url = "https://radiance-app.com/mcp/radiance"
bearer_token_env_var = "RADIANCE_MCP_TOKEN"
TOML
export RADIANCE_MCP_TOKEN="YOUR_RADIANCE_TOKEN"
```

Client documentation: https://developers.openai.com/codex/mcp

### Hermes Agent

Add this to `~/.hermes/config.yaml`:

```yaml
mcp_servers:
  radiance:
    url: "https://radiance-app.com/mcp/radiance"
    headers:
      Authorization: "Bearer YOUR_RADIANCE_TOKEN"
    timeout: 180
```

Client documentation: https://hermes-agent.nousresearch.com/docs/reference/mcp-config-reference

### Cursor / Windsurf

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

```json
{
  "mcpServers": {
    "radiance": {
      "url": "https://radiance-app.com/mcp/radiance",
      "headers": {
        "Authorization": "Bearer YOUR_RADIANCE_TOKEN"
      }
    }
  }
}
```

Client documentation: https://docs.cursor.com/context/model-context-protocol

### VS Code (GitHub Copilot)

Add this to `.vscode/mcp.json`:

```json
{
  "servers": {
    "radiance": {
      "type": "http",
      "url": "https://radiance-app.com/mcp/radiance",
      "headers": {
        "Authorization": "Bearer YOUR_RADIANCE_TOKEN"
      }
    }
  }
}
```

Client documentation: https://code.visualstudio.com/docs/copilot/chat/mcp-servers

### Any other agent

Add this to `your MCP client configuration`:

```json
{
  "mcpServers": {
    "radiance": {
      "type": "http",
      "url": "https://radiance-app.com/mcp/radiance",
      "headers": {
        "Authorization": "Bearer YOUR_RADIANCE_TOKEN"
      }
    }
  }
}
```

### stdio-only client (mcp-remote)

Run this in a terminal:

```bash
npx -y mcp-remote https://radiance-app.com/mcp/radiance --header "Authorization:Bearer YOUR_RADIANCE_TOKEN"
```

Client documentation: https://github.com/geelen/mcp-remote


## 4. Any other agent

If your agent is not listed, paste this into it — it contains everything needed
to configure itself, whatever its config format:

```text
Connect yourself to my Radiance account over MCP (Model Context Protocol).

- Setup guide (fetch this first): https://radiance-app.com/mcp/setup
- Endpoint: https://radiance-app.com/mcp/radiance
- Transport: streamable HTTP (POST), JSON-RPC 2.0
- Auth header: Authorization: Bearer YOUR_RADIANCE_TOKEN

Add the server to your own MCP configuration under the name "radiance",
reload it, then call the `account-overview` tool to confirm the connection.
```

## 5. Verify the connection

No client required — this lists the server's tools over plain HTTP:

```bash
curl -sS -X POST https://radiance-app.com/mcp/radiance \
  -H "Authorization: Bearer YOUR_RADIANCE_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

A `200` with a JSON-RPC result means the token works. A `401` means the token is
missing, revoked, or lacks the `mcp:use` ability; a `429` means you exceeded 60
requests in a minute.

## 6. What the agent can do

`account-overview`, `imported-videos`, `imported-video-detail`, `list-videos`, `list-accounts`, `video-translation-status`, `video-performance`, `video-audience-insights`, `video-transcript`, `download-translated-video`, `analytics-export`, `country-reach`, `recent-messages`, `recent-conversations`, `reachable-recipients`, `token-balance`, `email-preferences`, `publication-status`, `start-translation`, `refresh-account-stats`, `sync-comments`, `reply-to-comment`, `reply-to-conversation`, `schedule-publication`, `republish-publication`, `publish-to-more-accounts`, `bulk-publish`, `bulk-publish-status`, `create-video-upload`, `confirm-video-upload`, `dashboard-action-items`, `notifications`, `subtitle-styles`, `text-overlay-presets`, `webhook-endpoints`

Most tools are read-only. The ones that write are `start-translation`,
`sync-comments`, `reply-to-comment`, `reply-to-conversation`,
`create-video-upload`, `confirm-video-upload` and `schedule-publication`.
`start-translation` spends tokens and `schedule-publication` puts content live on
a social account, so confirm both with the user before calling them.

Call `tools/list` on the server for the authoritative, always-current schema of
every tool.

## 7. Security notes

- The token is a credential. Keep it out of shared configs, screenshots and
  version control; prefer an environment variable where your client supports one.
- Radiance never accepts the token in a URL or query string, only in the
  `Authorization` header, so it does not leak through logs or referrers.
- A token grants full access to your Radiance account through the tools listed
  above. Revoke it at https://radiance-app.com/settings/api-tokens the moment you no longer need it.