Skip to content

Commit 2bc1b0c

Browse files
committed
fix(mcp): persist Codex MCP credentials in config
- What: store Codex MCP credentials in configuration file - Why: avoid repeated credential entry
1 parent 62e825d commit 2bc1b0c

File tree

7 files changed

+307
-7
lines changed

7 files changed

+307
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Improved MCP list parsing to detect Gemini CLI entries with checkmarks and ANSI colors.
1212
- Added Gemini MCP settings migration to remove invalid `type` fields and map HTTP URLs.
1313
- Removed invalid `--env` option when adding Context7 MCP via Codex CLI.
14+
- Write Context7 HTTP headers into Codex config when a build-time API key is available.
15+
- Write GitHub MCP env values into Codex config when build-time credentials are available.
1416

1517
## [0.1.0] - 2025-12-23
1618

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Manages MCP servers for Claude, Codex, and Gemini CLI:
3535
- `GITHUB_HOST`
3636
- `CONTEXT7_API_KEY`
3737

38+
For Codex MCP installs, build-time values for `CONTEXT7_API_KEY`, `GITHUB_PERSONAL_ACCESS_TOKEN`, and `GITHUB_HOST` are written into `~/.codex/config.toml`, so runtime env vars aren't required.
39+
3840
## Installation
3941

4042
### via Install Script (Recommended - Linux/macOS)
@@ -85,4 +87,4 @@ Contributions are welcome! Please submit a Pull Request or open an Issue.
8587

8688
## License
8789

88-
MIT License
90+
MIT License

docs/README_ja.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Claude、Codex、Gemini CLI 用の MCP サーバーを管理します:
3535
- `GITHUB_HOST`
3636
- `CONTEXT7_API_KEY`
3737

38+
Codex の MCP インストールでは、`CONTEXT7_API_KEY``GITHUB_PERSONAL_ACCESS_TOKEN``GITHUB_HOST` のビルド時の値を `~/.codex/config.toml` に書き込むため、実行時の環境変数は不要です。
39+
3840
## インストール
3941

4042
### インストールスクリプト経由 (推奨 - Linux/macOS)

docs/README_zh-CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
- `GITHUB_HOST`
3636
- `CONTEXT7_API_KEY`
3737

38+
对于 Codex MCP 安装,`CONTEXT7_API_KEY``GITHUB_PERSONAL_ACCESS_TOKEN``GITHUB_HOST` 的编译期值会写入 `~/.codex/config.toml`,运行时不需环境变量。
39+
3840
## 安装
3941

4042
### 通过安装脚本 (推荐 - Linux/macOS)

docs/README_zh-TW.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
- `GITHUB_HOST`
3636
- `CONTEXT7_API_KEY`
3737

38+
對 Codex MCP 安裝,`CONTEXT7_API_KEY``GITHUB_PERSONAL_ACCESS_TOKEN``GITHUB_HOST` 的編譯期值會寫入 `~/.codex/config.toml`,執行時不需環境變數。
39+
3840
## 安裝
3941

4042
### 透過安裝腳本 (推薦 - Linux/macOS)

0 commit comments

Comments
 (0)