Skip to content

Commit dced451

Browse files
committed
chore(codex): add project MCP config for Neon via NEON_API_KEY
- Add .codex/config.toml with streamable HTTP Neon MCP (bearer from env) - Document setup and Cursor/Claude vs Codex in CHANGELOG Made-with: Cursor
1 parent 9f483ed commit dced451

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.codex/config.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# OpenAI Codex — project-scoped MCP (shared by Codex CLI and IDE extension).
2+
# Docs: https://developers.openai.com/codex/mcp
3+
#
4+
# Trust this repository in Codex so this file is loaded (project MCP is for trusted projects only).
5+
#
6+
# Neon: set NEON_API_KEY in your environment (Neon Console → API keys). Never paste tokens here.
7+
# Same variable name works across machines; pair with a gitignored .mcp.json for Cursor/Claude Code if you use Bearer there.
8+
9+
[mcp_servers.neon]
10+
url = "https://mcp.neon.tech/mcp"
11+
bearer_token_env_var = "NEON_API_KEY"

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 2026-04-04 — Codex MCP: project-scoped Neon (config.toml)
4+
5+
**What:** OpenAI Codex does not read `.mcp.json`; it uses TOML under [`.codex/config.toml`](.codex/config.toml). Added a **committed-safe** project config that wires Neon’s streamable HTTP MCP via **`bearer_token_env_var = "NEON_API_KEY"`** (no secrets in Git).
6+
7+
**Setup:**
8+
9+
1. Create or rotate a Neon API key in [Neon Console](https://console.neon.tech).
10+
2. Export the key where Codex runs, e.g. `export NEON_API_KEY="napi_…"` in `~/.zshrc` / `~/.bashrc`, or configure your terminal/IDE env so Codex inherits it.
11+
3. In Codex, mark this repo as a **trusted project** so project-scoped MCP loads (see Codex docs).
12+
4. **Cursor / Claude Code** still use a **local gitignored** [`.mcp.json`](.mcp.json) from [`.mcp.json.example`](.mcp.json.example) if you need manual HTTP MCP; you can paste the same key there or rely on the Neon Cursor plugin + MCP UI.
13+
14+
**Other MCP servers (Linear, Vercel, etc.):** Add via `codex mcp add …` or extra `[mcp_servers.*]` tables per [Codex MCP docs](https://developers.openai.com/codex/mcp); do not commit bearer tokens—use `bearer_token_env_var` or OAuth (`codex mcp login`) where supported.
15+
16+
---
17+
318
## 2026-04-04 — Security: Neon MCP API key removed from repository
419

520
**What:** A Neon API key was committed in project-root `.mcp.json`. That key must be treated as compromised.

0 commit comments

Comments
 (0)