Skip to content

Commit 2484ae2

Browse files
authored
add openai codex mcp server configuration (#214)
Signed-off-by: ChengZi <[email protected]>
1 parent f50bb47 commit 2484ae2

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,29 @@ See the [Claude Code MCP documentation](https://docs.anthropic.com/en/docs/claud
7474

7575
### Other MCP Client Configurations
7676

77+
<details>
78+
<summary><strong>OpenAI Codex CLI</strong></summary>
79+
80+
Codex CLI uses TOML configuration files:
81+
82+
1. Create or edit the `~/.codex/config.toml` file.
83+
84+
2. Add the following configuration:
85+
86+
```toml
87+
# IMPORTANT: the top-level key is `mcp_servers` rather than `mcpServers`.
88+
[mcp_servers.claude-context]
89+
command = "npx"
90+
args = ["@zilliz/claude-context-mcp@latest"]
91+
env = { "OPENAI_API_KEY" = "your-openai-api-key", "MILVUS_TOKEN" = "your-zilliz-cloud-api-key" }
92+
# Optional: override the default 10s startup timeout
93+
startup_timeout_ms = 20000
94+
```
95+
96+
3. Save the file and restart Codex CLI to apply the changes.
97+
98+
</details>
99+
77100
<details>
78101
<summary><strong>Gemini CLI</strong></summary>
79102

docs/getting-started/quick-start.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,29 @@ Replace the API keys with your actual keys.
4444

4545
## Alternative Quick Setups
4646

47+
<details>
48+
<summary><strong>OpenAI Codex CLI</strong></summary>
49+
50+
Codex CLI uses TOML configuration files:
51+
52+
1. Create or edit the `~/.codex/config.toml` file.
53+
54+
2. Add the following configuration:
55+
56+
```toml
57+
# IMPORTANT: the top-level key is `mcp_servers` rather than `mcpServers`.
58+
[mcp_servers.claude-context]
59+
command = "npx"
60+
args = ["@zilliz/claude-context-mcp@latest"]
61+
env = { "OPENAI_API_KEY" = "your-openai-api-key", "MILVUS_TOKEN" = "your-zilliz-cloud-api-key" }
62+
# Optional: override the default 10s startup timeout
63+
startup_timeout_ms = 20000
64+
```
65+
66+
3. Save the file and restart Codex CLI to apply the changes.
67+
68+
</details>
69+
4770
<details>
4871
<summary><strong>Gemini CLI</strong></summary>
4972

packages/mcp/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,29 @@ See the [Claude Code MCP documentation](https://docs.anthropic.com/en/docs/claud
200200

201201
</details>
202202

203+
<details>
204+
<summary><strong>OpenAI Codex CLI</strong></summary>
205+
206+
Codex CLI uses TOML configuration files:
207+
208+
1. Create or edit the `~/.codex/config.toml` file.
209+
210+
2. Add the following configuration:
211+
212+
```toml
213+
# IMPORTANT: the top-level key is `mcp_servers` rather than `mcpServers`.
214+
[mcp_servers.claude-context]
215+
command = "npx"
216+
args = ["@zilliz/claude-context-mcp@latest"]
217+
env = { "OPENAI_API_KEY" = "your-openai-api-key", "MILVUS_TOKEN" = "your-zilliz-cloud-api-key" }
218+
# Optional: override the default 10s startup timeout
219+
startup_timeout_ms = 20000
220+
```
221+
222+
3. Save the file and restart Codex CLI to apply the changes.
223+
224+
</details>
225+
203226
<details>
204227
<summary><strong>Gemini CLI</strong></summary>
205228

0 commit comments

Comments
 (0)