# Connect Codex to Robylon via MCP

Add the Robylon MCP server to OpenAI Codex with two commands, sign in with your Robylon account, and ask Codex about your support analytics and conversations.

> Source: https://www.robylon.ai/docs/mcp/codex
> Section: MCP

To connect Codex to Robylon, add the server and then sign in with the two commands below. Codex opens Robylon's sign-in page in your browser.

```bash
codex mcp add robylon --url https://api.robylon.ai/mcp/
codex mcp login robylon
```

You need an Admin or Super-admin role in each Robylon workspace you connect. See [Setup](https://www.robylon.ai/docs/mcp/setup#what-do-i-need-before-i-connect) for the full requirements.

## How do I connect Codex?

<Steps>
  <Step title="Add the server">
    Run `codex mcp add robylon --url https://api.robylon.ai/mcp/` in your terminal.
  </Step>
  <Step title="Sign in to Robylon">
    Run `codex mcp login robylon`. Your browser opens Robylon's sign-in page: sign in, tick the workspaces to include and click **Connect**.
  </Step>
  <Step title="Check the connection">
    Run `codex mcp list`, or type `/mcp` inside Codex, and confirm **robylon** is listed.
  </Step>
</Steps>

The Codex CLI and the Codex IDE extension share the same configuration, so adding Robylon once makes it available in both.

## Can I add Robylon to the Codex config file instead?

Yes. Add this to `~/.codex/config.toml`, then run `codex mcp login robylon` to sign in:

```toml
[mcp_servers.robylon]
url = "https://api.robylon.ai/mcp/"
```

A project's own `.codex/config.toml` works too, for projects you have marked as trusted.

## What if the Codex connection does not work?

* **If sign-in does not start,** run `codex mcp login robylon` on its own. Adding the server does not sign you in.
* **If a workspace is missing from answers,** sign in again and tick it. See [Which workspaces does a connection include?](https://www.robylon.ai/docs/mcp/setup#which-workspaces-does-a-connection-include)
* **If Robylon refuses the connection,** the page it shows explains why. See [Why can't I connect?](https://www.robylon.ai/docs/mcp/setup#why-cant-i-connect)
