mirror of
https://github.com/zilliztech/claude-context.git
synced 2025-10-06 01:10:02 +03:00
add openai codex mcp server configuration (#214)
Signed-off-by: ChengZi <chen.zhang@zilliz.com>
This commit is contained in:
23
README.md
23
README.md
@@ -74,6 +74,29 @@ See the [Claude Code MCP documentation](https://docs.anthropic.com/en/docs/claud
|
||||
|
||||
### Other MCP Client Configurations
|
||||
|
||||
<details>
|
||||
<summary><strong>OpenAI Codex CLI</strong></summary>
|
||||
|
||||
Codex CLI uses TOML configuration files:
|
||||
|
||||
1. Create or edit the `~/.codex/config.toml` file.
|
||||
|
||||
2. Add the following configuration:
|
||||
|
||||
```toml
|
||||
# IMPORTANT: the top-level key is `mcp_servers` rather than `mcpServers`.
|
||||
[mcp_servers.claude-context]
|
||||
command = "npx"
|
||||
args = ["@zilliz/claude-context-mcp@latest"]
|
||||
env = { "OPENAI_API_KEY" = "your-openai-api-key", "MILVUS_TOKEN" = "your-zilliz-cloud-api-key" }
|
||||
# Optional: override the default 10s startup timeout
|
||||
startup_timeout_ms = 20000
|
||||
```
|
||||
|
||||
3. Save the file and restart Codex CLI to apply the changes.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><strong>Gemini CLI</strong></summary>
|
||||
|
||||
|
||||
@@ -44,6 +44,29 @@ Replace the API keys with your actual keys.
|
||||
|
||||
## Alternative Quick Setups
|
||||
|
||||
<details>
|
||||
<summary><strong>OpenAI Codex CLI</strong></summary>
|
||||
|
||||
Codex CLI uses TOML configuration files:
|
||||
|
||||
1. Create or edit the `~/.codex/config.toml` file.
|
||||
|
||||
2. Add the following configuration:
|
||||
|
||||
```toml
|
||||
# IMPORTANT: the top-level key is `mcp_servers` rather than `mcpServers`.
|
||||
[mcp_servers.claude-context]
|
||||
command = "npx"
|
||||
args = ["@zilliz/claude-context-mcp@latest"]
|
||||
env = { "OPENAI_API_KEY" = "your-openai-api-key", "MILVUS_TOKEN" = "your-zilliz-cloud-api-key" }
|
||||
# Optional: override the default 10s startup timeout
|
||||
startup_timeout_ms = 20000
|
||||
```
|
||||
|
||||
3. Save the file and restart Codex CLI to apply the changes.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><strong>Gemini CLI</strong></summary>
|
||||
|
||||
|
||||
@@ -200,6 +200,29 @@ See the [Claude Code MCP documentation](https://docs.anthropic.com/en/docs/claud
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><strong>OpenAI Codex CLI</strong></summary>
|
||||
|
||||
Codex CLI uses TOML configuration files:
|
||||
|
||||
1. Create or edit the `~/.codex/config.toml` file.
|
||||
|
||||
2. Add the following configuration:
|
||||
|
||||
```toml
|
||||
# IMPORTANT: the top-level key is `mcp_servers` rather than `mcpServers`.
|
||||
[mcp_servers.claude-context]
|
||||
command = "npx"
|
||||
args = ["@zilliz/claude-context-mcp@latest"]
|
||||
env = { "OPENAI_API_KEY" = "your-openai-api-key", "MILVUS_TOKEN" = "your-zilliz-cloud-api-key" }
|
||||
# Optional: override the default 10s startup timeout
|
||||
startup_timeout_ms = 20000
|
||||
```
|
||||
|
||||
3. Save the file and restart Codex CLI to apply the changes.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><strong>Gemini CLI</strong></summary>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user