> Documentation index: https://mydrops.io/llms.txt
> Every docs page is also available as Markdown by adding .md to its URL.

# Codex (https://mydrops.io/docs/agents/codex)

Add MyDrops to OpenAI Codex in the CLI or the IDE extension, sign in, and let it search your saved drops and save new ones.

Codex's CLI, IDE extension and desktop app share one MCP configuration, so you add MyDrops once.

## Connect in the CLI

### Add the server

```bash title="Terminal"
codex mcp add mydrops --url https://mydrops.io/mcp
```

### Sign in

```bash title="Terminal"
codex mcp login mydrops
```

Your browser opens MyDrops. Choose **read** or **read and add**, and allow it.

### Check it

```bash title="Terminal"
codex mcp list
```

Or type `/mcp` inside Codex.

## Connect in the IDE extension

1. Open the gear menu, then **MCP servers**, then **Add server**.
2. Name it `mydrops`, pick **Streamable HTTP**, and paste `https://mydrops.io/mcp`.
3. Save, click **Restart extension**, then **Authenticate**.

## Try it

```text title="Prompt"
Search MyDrops for the onboarding flows I saved and list them with their links.
```

```text title="Prompt"
Save this design review to MyDrops in the Onboarding project.
```

## Use an API key instead

[Make a key](/docs/api/keys.md), put it in your environment, and point Codex at it:

```bash title="Terminal"
export MYDROPS_API_KEY=mdk_your_key
codex mcp add mydrops --url https://mydrops.io/mcp --bearer-token-env-var MYDROPS_API_KEY
```

That writes this to `~/.codex/config.toml`:

```toml title="~/.codex/config.toml"
[mcp_servers.mydrops]
url = "https://mydrops.io/mcp"
bearer_token_env_var = "MYDROPS_API_KEY"
```

Leave out `bearer_token_env_var` to sign in with OAuth.

## Add the skills

```bash title="Terminal"
npx skills add mydrops-io/skills
```

## Disconnect

```bash title="Terminal"
codex mcp logout mydrops
codex mcp remove mydrops
```

Or disconnect it in **Settings › Agents** in MyDrops.

## Troubleshooting

**codex mcp login doesn't open a browser**

Add `--no-browser` and open the link it prints. On a server, use an API key instead.

**The extension doesn't show the tools**

Click **Restart extension** after adding the server. The CLI and the extension read the same `~/.codex/config.toml`, so a server added in one shows in the other.
