@trishchuk/codex-mcp-tool 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -245
- package/dist/constants.d.ts +4 -9
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +7 -16
- package/dist/constants.js.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/ask-codex.tool.d.ts.map +1 -1
- package/dist/tools/ask-codex.tool.js +67 -52
- package/dist/tools/ask-codex.tool.js.map +1 -1
- package/dist/tools/batch-codex.tool.js +1 -1
- package/dist/tools/batch-codex.tool.js.map +1 -1
- package/dist/tools/brainstorm.tool.d.ts.map +1 -1
- package/dist/tools/brainstorm.tool.js +1 -1
- package/dist/tools/brainstorm.tool.js.map +1 -1
- package/dist/tools/health.tool.d.ts +3 -0
- package/dist/tools/health.tool.d.ts.map +1 -0
- package/dist/tools/health.tool.js +189 -0
- package/dist/tools/health.tool.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/list-sessions.tool.d.ts +3 -0
- package/dist/tools/list-sessions.tool.d.ts.map +1 -0
- package/dist/tools/list-sessions.tool.js +71 -0
- package/dist/tools/list-sessions.tool.js.map +1 -0
- package/dist/utils/codexCommandBuilder.d.ts +7 -0
- package/dist/utils/codexCommandBuilder.d.ts.map +1 -1
- package/dist/utils/codexCommandBuilder.js +40 -14
- package/dist/utils/codexCommandBuilder.js.map +1 -1
- package/dist/utils/codexExecutor.d.ts +10 -1
- package/dist/utils/codexExecutor.d.ts.map +1 -1
- package/dist/utils/codexExecutor.js +6 -2
- package/dist/utils/codexExecutor.js.map +1 -1
- package/dist/utils/errorTypes.d.ts +74 -0
- package/dist/utils/errorTypes.d.ts.map +1 -0
- package/dist/utils/errorTypes.js +268 -0
- package/dist/utils/errorTypes.js.map +1 -0
- package/dist/utils/modelDetection.js +4 -4
- package/dist/utils/modelDetection.js.map +1 -1
- package/dist/utils/sessionStorage.d.ts +79 -0
- package/dist/utils/sessionStorage.d.ts.map +1 -0
- package/dist/utils/sessionStorage.js +276 -0
- package/dist/utils/sessionStorage.js.map +1 -0
- package/dist/utils/versionDetection.d.ts +17 -2
- package/dist/utils/versionDetection.d.ts.map +1 -1
- package/dist/utils/versionDetection.js +30 -2
- package/dist/utils/versionDetection.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,73 +6,32 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@trishchuk/codex-mcp-tool)
|
|
7
7
|
[](https://www.npmjs.com/package/@trishchuk/codex-mcp-tool)
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
|
-
[](https://github.com/x51xxx/codex-mcp-tool)
|
|
10
9
|
|
|
11
10
|
</div>
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
MCP server connecting Claude/Cursor to Codex CLI. Enables code analysis via `@` file references, multi-turn conversations, sandboxed edits, and structured change mode.
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
## Features
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
- **File Analysis** — Reference files with `@src/`, `@package.json` syntax
|
|
17
|
+
- **Multi-Turn Sessions** — Conversation continuity with workspace isolation
|
|
18
|
+
- **Native Resume** — Uses `codex resume` for context preservation (CLI v0.36.0+)
|
|
19
|
+
- **Web Search** — Research capabilities with `search: true`
|
|
20
|
+
- **Sandbox Mode** — Safe code execution with `--full-auto`
|
|
21
|
+
- **Change Mode** — Structured OLD/NEW patch output for refactoring
|
|
22
|
+
- **Brainstorming** — SCAMPER, design-thinking, lateral thinking frameworks
|
|
23
|
+
- **Health Diagnostics** — CLI version, features, and session monitoring
|
|
24
|
+
- **Cross-Platform** — Windows, macOS, Linux fully supported
|
|
20
25
|
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
Goal: Use Codex directly from your MCP-enabled editor to analyze and edit code efficiently.
|
|
24
|
-
|
|
25
|
-
## Prerequisites
|
|
26
|
-
|
|
27
|
-
Before using this tool, ensure you have:
|
|
28
|
-
|
|
29
|
-
1. **[Node.js](https://nodejs.org/)** (v18.0.0 or higher)
|
|
30
|
-
2. **[Codex CLI](https://github.com/openai/codex)** installed and authenticated
|
|
31
|
-
|
|
32
|
-
### Platform Support
|
|
33
|
-
|
|
34
|
-
✅ **Windows, macOS, and Linux fully supported**
|
|
35
|
-
|
|
36
|
-
**v1.2.4** introduced cross-platform compatibility improvements using `cross-spawn`, ensuring reliable command execution across all operating systems. Windows users no longer experience "spawn codex ENOENT" errors.
|
|
37
|
-
|
|
38
|
-
### One-Line Setup
|
|
26
|
+
## Quick Start
|
|
39
27
|
|
|
40
28
|
```bash
|
|
41
29
|
claude mcp add codex-cli -- npx -y @trishchuk/codex-mcp-tool
|
|
42
30
|
```
|
|
43
31
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Type `/mcp` inside Claude Code to verify the Codex MCP is active.
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
### Alternative: Import from Claude Desktop
|
|
51
|
-
|
|
52
|
-
If you already have it configured in Claude Desktop:
|
|
53
|
-
|
|
54
|
-
1. Add to your Claude Desktop config:
|
|
55
|
-
|
|
56
|
-
```json
|
|
57
|
-
"codex-cli": {
|
|
58
|
-
"command": "npx",
|
|
59
|
-
"args": ["-y", "@trishchuk/codex-mcp-tool"]
|
|
60
|
-
}
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
2. Import to Claude Code:
|
|
32
|
+
**Prerequisites:** Node.js 18+, [Codex CLI](https://github.com/openai/codex) installed and authenticated.
|
|
64
33
|
|
|
65
|
-
|
|
66
|
-
claude mcp add-from-claude-desktop
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Configuration
|
|
70
|
-
|
|
71
|
-
Register the MCP server with your MCP client:
|
|
72
|
-
|
|
73
|
-
### For NPX Usage (Recommended)
|
|
74
|
-
|
|
75
|
-
Add this configuration to your Claude Desktop config file:
|
|
34
|
+
### Configuration
|
|
76
35
|
|
|
77
36
|
```json
|
|
78
37
|
{
|
|
@@ -85,229 +44,107 @@ Add this configuration to your Claude Desktop config file:
|
|
|
85
44
|
}
|
|
86
45
|
```
|
|
87
46
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
If you installed globally, use this configuration instead:
|
|
91
|
-
|
|
92
|
-
```json
|
|
93
|
-
{
|
|
94
|
-
"mcpServers": {
|
|
95
|
-
"codex-cli": {
|
|
96
|
-
"command": "codex-mcp"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Configuration File Locations:**
|
|
103
|
-
|
|
104
|
-
- **Claude Desktop**:
|
|
105
|
-
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
106
|
-
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
107
|
-
- **Linux**: `~/.config/claude/claude_desktop_config.json`
|
|
108
|
-
|
|
109
|
-
After updating the configuration, restart your terminal session.
|
|
110
|
-
|
|
111
|
-
## Example Workflow
|
|
112
|
-
|
|
113
|
-
- Natural language: "use codex to explain index.html", "understand this repo with @src", "look for vulnerabilities and suggest fixes"
|
|
114
|
-
- Claude Code: Type `/codex-cli` to access the MCP server tools.
|
|
47
|
+
**Config locations:** macOS: `~/Library/Application Support/Claude/claude_desktop_config.json` | Windows: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
115
48
|
|
|
116
49
|
## Usage Examples
|
|
117
50
|
|
|
118
|
-
### Model Selection
|
|
119
|
-
|
|
120
|
-
Default: `gpt-5.1-codex-max` (v1.3.0+) with automatic fallback → `gpt-5-codex` → `gpt-5` when newer models are unavailable.
|
|
121
|
-
|
|
122
|
-
**GPT-5.1 family with examples**
|
|
123
|
-
|
|
124
|
-
- `gpt-5.1-codex-max` — default for complex, multi-file edits (`'use codex to refactor @src with model gpt-5.1-codex-max'`)
|
|
125
|
-
- `gpt-5.1-codex-mini` — cost-efficient quick passes (`'use codex with model gpt-5.1-codex-mini to scan @utils'`)
|
|
126
|
-
- `gpt-5.1`, `gpt-5.1-mini`, `gpt-5.1-nano` — general-purpose GPT-5.1 variants (`'ask codex using gpt-5.1-nano for a fast read on @README.md'`)
|
|
127
|
-
|
|
128
51
|
```javascript
|
|
129
|
-
//
|
|
52
|
+
// File analysis
|
|
130
53
|
'explain the architecture of @src/';
|
|
54
|
+
'analyze @package.json and list dependencies';
|
|
131
55
|
|
|
132
|
-
//
|
|
133
|
-
'use codex with model gpt-5 to analyze @
|
|
134
|
-
|
|
135
|
-
// Use o3 for deep reasoning tasks
|
|
136
|
-
'use codex with model o3 to analyze complex algorithm in @algorithm.py';
|
|
137
|
-
|
|
138
|
-
// Use o4-mini for quick tasks
|
|
139
|
-
'use codex with model o4-mini to add comments to @utils.js';
|
|
140
|
-
|
|
141
|
-
// Use codex-1 for software engineering
|
|
142
|
-
'use codex with model codex-1 to refactor @legacy-code.js';
|
|
143
|
-
```
|
|
56
|
+
// With specific model
|
|
57
|
+
'use codex with model gpt-5.1-codex to analyze @algorithm.py';
|
|
144
58
|
|
|
145
|
-
|
|
59
|
+
// Multi-turn conversations (v1.4.0+)
|
|
60
|
+
'ask codex sessionId:"my-project" prompt:"explain @src/"';
|
|
61
|
+
'ask codex sessionId:"my-project" prompt:"now add error handling"';
|
|
146
62
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
- `analyze @package.json and list dependencies`
|
|
63
|
+
// Brainstorming
|
|
64
|
+
'brainstorm ways to optimize CI/CD using SCAMPER method';
|
|
150
65
|
|
|
151
|
-
|
|
66
|
+
// Sandbox mode
|
|
67
|
+
'use codex sandbox:true to create and run a Python script';
|
|
152
68
|
|
|
153
|
-
|
|
154
|
-
|
|
69
|
+
// Web search
|
|
70
|
+
'ask codex search:true prompt:"latest TypeScript 5.7 features"';
|
|
71
|
+
```
|
|
155
72
|
|
|
156
|
-
|
|
73
|
+
## Tools
|
|
157
74
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
75
|
+
| Tool | Description |
|
|
76
|
+
| --------------- | ------------------------------------------------------ |
|
|
77
|
+
| `ask-codex` | Execute Codex CLI with file analysis, models, sessions |
|
|
78
|
+
| `brainstorm` | Generate ideas with SCAMPER, design-thinking, etc. |
|
|
79
|
+
| `list-sessions` | View/delete/clear conversation sessions |
|
|
80
|
+
| `health` | Diagnose CLI installation, version, features |
|
|
81
|
+
| `ping` / `help` | Test connection, show CLI help |
|
|
161
82
|
|
|
162
|
-
|
|
83
|
+
## Models
|
|
163
84
|
|
|
164
|
-
|
|
85
|
+
Default: `gpt-5.1-codex-max` with fallback → `gpt-5.1-codex` → `gpt-5.1`
|
|
165
86
|
|
|
166
|
-
|
|
167
|
-
|
|
87
|
+
| Model | Use Case |
|
|
88
|
+
| -------------------- | ---------------------------------- |
|
|
89
|
+
| `gpt-5.1-codex-max` | Complex multi-file edits (default) |
|
|
90
|
+
| `gpt-5.1-codex` | Optimized for codex |
|
|
91
|
+
| `gpt-5.1-codex-mini` | Cost-efficient quick tasks |
|
|
92
|
+
| `gpt-5.1` | General reasoning |
|
|
168
93
|
|
|
169
|
-
|
|
94
|
+
## Key Features
|
|
170
95
|
|
|
171
|
-
|
|
172
|
-
- Dual-flag compatibility: sends native `--search` on Codex CLI v0.52.0+ and always enables the `web_search_request` feature flag for older versions
|
|
173
|
-
- Works alongside `oss`/feature toggles without manual client changes
|
|
96
|
+
### Session Management (v1.4.0+)
|
|
174
97
|
|
|
175
|
-
|
|
98
|
+
Multi-turn conversations with workspace isolation:
|
|
176
99
|
|
|
177
100
|
```javascript
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
// Brainstorming with constraints
|
|
182
|
-
"brainstorm solutions for reducing API latency with constraints: 'must use existing infrastructure, budget under $5k'";
|
|
183
|
-
|
|
184
|
-
// Change mode for structured edits
|
|
185
|
-
'use codex in change mode to update all console.log to use winston logger in @src/';
|
|
101
|
+
{ "prompt": "analyze code", "sessionId": "my-session" }
|
|
102
|
+
{ "prompt": "continue from here", "sessionId": "my-session" }
|
|
103
|
+
{ "prompt": "start fresh", "sessionId": "my-session", "resetSession": true }
|
|
186
104
|
```
|
|
187
105
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
These tools are designed to be used by the AI assistant.
|
|
191
|
-
|
|
192
|
-
#### Core Tools
|
|
193
|
-
|
|
194
|
-
- **`ask-codex`**: Sends a prompt to Codex via `codex exec`.
|
|
195
|
-
- Supports `@` file references for including file content
|
|
196
|
-
- Optional `model` parameter; default: `gpt-5.1-codex-max` with fallback chain `gpt-5.1-codex-max → gpt-5-codex → gpt-5` when a model is unavailable
|
|
197
|
-
- GPT-5.1 family stays enabled automatically on Codex CLI v0.56.0+; older CLI versions trigger the fallback chain
|
|
198
|
-
- Available models:
|
|
199
|
-
- `gpt-5.1-codex-max` (NEW DEFAULT v1.3.0, highest reliability)
|
|
200
|
-
- `gpt-5.1-codex-mini` (cost-efficient, quick tasks)
|
|
201
|
-
- `gpt-5.1`, `gpt-5.1-mini`, `gpt-5.1-nano` (GPT-5.1 family)
|
|
202
|
-
- `gpt-5-codex` (previous default, still supported)
|
|
203
|
-
- `gpt-5` (general purpose, fast reasoning)
|
|
204
|
-
- `o3` (smartest, deep reasoning)
|
|
205
|
-
- `o4-mini` (fast & efficient)
|
|
206
|
-
- `codex-1` (o3-based for software engineering)
|
|
207
|
-
- `codex-mini-latest` (low-latency code Q&A)
|
|
208
|
-
- `gpt-4.1` (legacy support)
|
|
209
|
-
- Native Search: uses dual flags (adds `--search` on v0.52.0+ and always enables `web_search_request`) for compatibility
|
|
210
|
-
- `sandbox=true` enables `--full-auto` mode
|
|
211
|
-
- `changeMode=true` returns structured OLD/NEW edits
|
|
212
|
-
- Supports approval policies, sandbox modes, and verbose control via `toolOutputTokenLimit`
|
|
213
|
-
|
|
214
|
-
- **`brainstorm`**: Generate novel ideas with structured methodologies.
|
|
215
|
-
- Multiple frameworks: divergent, convergent, SCAMPER, design-thinking, lateral
|
|
216
|
-
- Domain-specific context (software, business, creative, research, product, marketing)
|
|
217
|
-
- Supports same models as `ask-codex` (default: `gpt-5.1-codex-max` with the same fallback chain)
|
|
218
|
-
- Configurable idea count and analysis depth
|
|
219
|
-
- Includes feasibility, impact, and innovation scoring
|
|
220
|
-
- Example: `brainstorm prompt:"ways to improve code review process" domain:"software" methodology:"scamper"`
|
|
221
|
-
|
|
222
|
-
- **`ping`**: A simple test tool that echoes back a message.
|
|
223
|
-
- Use to verify MCP connection is working
|
|
224
|
-
- Example: `/codex-cli:ping (MCP) "Hello from Codex MCP!"`
|
|
225
|
-
|
|
226
|
-
- **`help`**: Shows the Codex CLI help text and available commands.
|
|
106
|
+
**Environment:**
|
|
227
107
|
|
|
228
|
-
|
|
108
|
+
- `CODEX_SESSION_TTL_MS` - Session TTL (default: 24h)
|
|
109
|
+
- `CODEX_MAX_SESSIONS` - Max sessions (default: 50)
|
|
229
110
|
|
|
230
|
-
|
|
231
|
-
- Used for paginating large structured edit responses
|
|
232
|
-
- Requires `cacheKey` and `chunkIndex` parameters
|
|
111
|
+
### Advanced Options
|
|
233
112
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
113
|
+
| Parameter | Description |
|
|
114
|
+
| ---------------------- | ----------------------------------- |
|
|
115
|
+
| `model` | Model selection |
|
|
116
|
+
| `sessionId` | Enable conversation continuity |
|
|
117
|
+
| `sandbox` | Enable `--full-auto` mode |
|
|
118
|
+
| `search` | Enable web search |
|
|
119
|
+
| `changeMode` | Structured OLD/NEW edits |
|
|
120
|
+
| `addDirs` | Additional writable directories |
|
|
121
|
+
| `toolOutputTokenLimit` | Cap response verbosity (100-10,000) |
|
|
237
122
|
|
|
238
|
-
##
|
|
123
|
+
## CLI Compatibility
|
|
239
124
|
|
|
240
|
-
|
|
125
|
+
| Version | Features |
|
|
126
|
+
| -------- | --------------------------------------- |
|
|
127
|
+
| v0.59.0+ | `--add-dir`, token limits, full GPT-5.1 |
|
|
128
|
+
| v0.52.0+ | Native `--search` flag |
|
|
129
|
+
| v0.36.0+ | Native `codex resume` (sessions) |
|
|
241
130
|
|
|
242
|
-
|
|
243
|
-
- GPT-5.1 family is auto-enabled on Codex CLI v0.56.0+; older versions gracefully fall back to `gpt-5-codex` → `gpt-5`
|
|
244
|
-
- Native search, `--add-dir`, and token-limit flags are only sent when your installed CLI supports them
|
|
131
|
+
## Troubleshooting
|
|
245
132
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
- The tool auto-skips unsupported flags on older CLI builds while logging a warning
|
|
251
|
-
|
|
252
|
-
### Response Verbosity Control
|
|
253
|
-
|
|
254
|
-
- Cap tool outputs with `toolOutputTokenLimit` (range: 100–10,000) to tame noisy commands
|
|
255
|
-
- Example: `ask codex prompt:"summarize @logs" toolOutputTokenLimit:500`
|
|
256
|
-
- Great for CI logs or quick scans where concise responses are needed
|
|
257
|
-
|
|
258
|
-
### Slash Commands (for the User)
|
|
259
|
-
|
|
260
|
-
You can use these commands directly in Claude Code's interface (compatibility with other clients has not been tested).
|
|
261
|
-
|
|
262
|
-
- **/analyze**: Analyzes files or directories using Codex, or asks general questions.
|
|
263
|
-
- **`prompt`** (required): The analysis prompt. Use `@` syntax to include files (e.g., `/analyze prompt:@src/ summarize this directory`) or ask general questions (e.g., `/analyze prompt:Please use a web search to find the latest news stories`).
|
|
264
|
-
- **/sandbox**: Safely tests code or scripts with Codex approval modes.
|
|
265
|
-
- **`prompt`** (required): Code testing request (e.g., `/sandbox prompt:Create and run a Python script that processes CSV data` or `/sandbox prompt:@script.py Test this script safely`).
|
|
266
|
-
- **/help**: Displays the Codex CLI help information.
|
|
267
|
-
- **/ping**: Tests the connection to the server.
|
|
268
|
-
- **`message`** (optional): A message to echo back.
|
|
269
|
-
|
|
270
|
-
## Codex CLI Compatibility
|
|
271
|
-
|
|
272
|
-
| Codex CLI version | What you get | Model behavior |
|
|
273
|
-
| ----------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
274
|
-
| v0.59.0+ | `--add-dir`, `tool_output_token_limit`, Windows agent mode | Full GPT-5.1 support with fallback chain `gpt-5.1-codex-max → gpt-5-codex → gpt-5` |
|
|
275
|
-
| v0.56.0+ | GPT-5.1 family unlocked | Uses GPT-5.1 models directly; still falls back if a model is missing |
|
|
276
|
-
| v0.52.0+ | Native `--search` flag | Dual-flag search (`--search` + `web_search_request`) for reliability |
|
|
277
|
-
| earlier | Legacy-only flags | Forces fallback to `gpt-5-codex`/`gpt-5`, skips unsupported flags with warnings |
|
|
278
|
-
|
|
279
|
-
## Troubleshooting (legacy versions)
|
|
280
|
-
|
|
281
|
-
- Run `codex --version` to confirm your CLI build; upgrade to v0.59.0+ for full v1.3.0 features
|
|
282
|
-
- If GPT-5.1 models error on older CLIs, explicitly set `model:"gpt-5-codex"` (the fallback will apply automatically otherwise)
|
|
283
|
-
- Remove `addDirs` or `toolOutputTokenLimit` if you see unsupported flag warnings; they require v0.59.0+
|
|
284
|
-
- Web search issues on pre-v0.52.0 builds: rely on the `web_search_request` feature flag only, or upgrade for the `--search` flag
|
|
285
|
-
|
|
286
|
-
## FAQ
|
|
287
|
-
|
|
288
|
-
- **What model is used by default?** `gpt-5.1-codex-max` with fallback to `gpt-5-codex` then `gpt-5`.
|
|
289
|
-
- **How do I switch to a cheaper model?** Set `model:"gpt-5.1-codex-mini"` (or `gpt-5.1-nano` for fastest scans) in your tool call.
|
|
290
|
-
- **Can I limit output verbosity?** Yes—use `toolOutputTokenLimit` between 100 and 10,000 to cap tool responses.
|
|
291
|
-
- **How do I let Codex touch multiple repos?** Pass `addDirs:["../shared","/tmp/work"]` (CLI v0.59.0+); older versions will warn and skip the flag.
|
|
292
|
-
- **How is native search handled?** The tool sends both `--search` (when available) and the `web_search_request` feature flag to stay compatible.
|
|
293
|
-
|
|
294
|
-
## Migration: v1.2.x → v1.3.0
|
|
295
|
-
|
|
296
|
-
- Default model switches to `gpt-5.1-codex-max`; fallback chain now formalized (`gpt-5.1-codex-max → gpt-5-codex → gpt-5`)
|
|
297
|
-
- New features: `addDirs` for multi-directory writes and `toolOutputTokenLimit` for output control (both require Codex CLI v0.59.0+)
|
|
298
|
-
- Native search now uses the dual-flag approach automatically; no config changes needed
|
|
299
|
-
- Recommendation: update Codex CLI to v0.59.0+ and refresh your MCP config (no schema changes—existing `/mcp` entries still work)
|
|
300
|
-
|
|
301
|
-
## Acknowledgments
|
|
133
|
+
```bash
|
|
134
|
+
codex --version # Check CLI version
|
|
135
|
+
codex login # Authenticate
|
|
136
|
+
```
|
|
302
137
|
|
|
303
|
-
|
|
138
|
+
Use `health` tool for diagnostics: `'use health verbose:true'`
|
|
304
139
|
|
|
305
|
-
##
|
|
140
|
+
## Migration
|
|
306
141
|
|
|
307
|
-
|
|
142
|
+
**v1.3.x → v1.4.0:** New `sessionId` parameter, `list-sessions`/`health` tools, structured error handling. No breaking changes.
|
|
308
143
|
|
|
309
144
|
## License
|
|
310
145
|
|
|
311
|
-
|
|
146
|
+
MIT License. Not affiliated with OpenAI.
|
|
147
|
+
|
|
148
|
+
---
|
|
312
149
|
|
|
313
|
-
|
|
150
|
+
[Documentation](https://x51xxx.github.io/codex-mcp-tool/) | [Issues](https://github.com/x51xxx/codex-mcp-tool/issues) | Inspired by [jamubc/gemini-mcp-tool](https://github.com/jamubc/gemini-mcp-tool)
|
package/dist/constants.d.ts
CHANGED
|
@@ -18,17 +18,9 @@ export declare const STATUS_MESSAGES: {
|
|
|
18
18
|
};
|
|
19
19
|
export declare const MODELS: {
|
|
20
20
|
readonly GPT5_1_CODEX_MAX: "gpt-5.1-codex-max";
|
|
21
|
+
readonly GPT5_1_CODEX: "gpt-5.1-codex";
|
|
21
22
|
readonly GPT5_1_CODEX_MINI: "gpt-5.1-codex-mini";
|
|
22
23
|
readonly GPT5_1: "gpt-5.1";
|
|
23
|
-
readonly GPT5_1_MINI: "gpt-5.1-mini";
|
|
24
|
-
readonly GPT5_1_NANO: "gpt-5.1-nano";
|
|
25
|
-
readonly GPT5_CODEX: "gpt-5-codex";
|
|
26
|
-
readonly GPT5: "gpt-5";
|
|
27
|
-
readonly O3: "o3";
|
|
28
|
-
readonly O4_MINI: "o4-mini";
|
|
29
|
-
readonly CODEX_1: "codex-1";
|
|
30
|
-
readonly CODEX_MINI_LATEST: "codex-mini-latest";
|
|
31
|
-
readonly GPT_4_1: "gpt-4.1";
|
|
32
24
|
};
|
|
33
25
|
export declare const SANDBOX_MODES: {
|
|
34
26
|
readonly READ_ONLY: "read-only";
|
|
@@ -87,6 +79,7 @@ export declare const CLI: {
|
|
|
87
79
|
readonly DISABLE: "--disable";
|
|
88
80
|
readonly SEARCH: "--search";
|
|
89
81
|
readonly ADD_DIR: "--add-dir";
|
|
82
|
+
readonly RESUME: "resume";
|
|
90
83
|
};
|
|
91
84
|
readonly DEFAULTS: {
|
|
92
85
|
readonly MODEL: "default";
|
|
@@ -111,6 +104,8 @@ export interface ToolArguments {
|
|
|
111
104
|
cd?: string;
|
|
112
105
|
workingDir?: string;
|
|
113
106
|
changeMode?: boolean | string;
|
|
107
|
+
sessionId?: string;
|
|
108
|
+
resetSession?: boolean;
|
|
114
109
|
chunkIndex?: number | string;
|
|
115
110
|
chunkCacheKey?: string;
|
|
116
111
|
message?: string;
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,gBAAgB,CAAC;AAGxC,eAAO,MAAM,cAAc;;;;;;;;CASjB,CAAC;AAGX,eAAO,MAAM,eAAe;;;;;;;CAQlB,CAAC;AAGX,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,gBAAgB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C;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CACvF"}
|
package/dist/constants.js
CHANGED
|
@@ -20,23 +20,12 @@ export const STATUS_MESSAGES = {
|
|
|
20
20
|
PROCESSING_CONTINUE: '⏳ Still processing...',
|
|
21
21
|
PROCESSING_COMPLETE: '✅ Analysis completed successfully',
|
|
22
22
|
};
|
|
23
|
-
// Models
|
|
23
|
+
// Models (Available in Codex CLI)
|
|
24
24
|
export const MODELS = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
GPT5_1_CODEX_MINI: 'gpt-5.1-codex-mini', // Cost-efficient
|
|
28
|
-
GPT5_1: 'gpt-5.1', //
|
|
29
|
-
GPT5_1_MINI: 'gpt-5.1-mini', // Balanced performance
|
|
30
|
-
GPT5_1_NANO: 'gpt-5.1-nano', // Fastest for simple queries
|
|
31
|
-
// GPT-5 Series (Legacy)
|
|
32
|
-
GPT5_CODEX: 'gpt-5-codex', // Previous default
|
|
33
|
-
GPT5: 'gpt-5',
|
|
34
|
-
// Other Models
|
|
35
|
-
O3: 'o3',
|
|
36
|
-
O4_MINI: 'o4-mini',
|
|
37
|
-
CODEX_1: 'codex-1',
|
|
38
|
-
CODEX_MINI_LATEST: 'codex-mini-latest',
|
|
39
|
-
GPT_4_1: 'gpt-4.1',
|
|
25
|
+
GPT5_1_CODEX_MAX: 'gpt-5.1-codex-max', // Default: Frontier agentic coding with highest reliability
|
|
26
|
+
GPT5_1_CODEX: 'gpt-5.1-codex', // Optimized for codex
|
|
27
|
+
GPT5_1_CODEX_MINI: 'gpt-5.1-codex-mini', // Cost-efficient, faster, but less capable
|
|
28
|
+
GPT5_1: 'gpt-5.1', // Broad world knowledge with strong general reasoning
|
|
40
29
|
};
|
|
41
30
|
// Sandbox modes
|
|
42
31
|
export const SANDBOX_MODES = {
|
|
@@ -107,6 +96,8 @@ export const CLI = {
|
|
|
107
96
|
// New flags (v1.3.0+)
|
|
108
97
|
SEARCH: '--search', // Native web search flag (Codex CLI v0.52.0+)
|
|
109
98
|
ADD_DIR: '--add-dir', // Additional writable directories (Codex CLI v0.59.0+)
|
|
99
|
+
// Session/Resume flags (v1.4.0+)
|
|
100
|
+
RESUME: 'resume', // Resume command (replaces 'exec' when resuming)
|
|
110
101
|
},
|
|
111
102
|
// Default values
|
|
112
103
|
DEFAULTS: {
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC;AAExC,iBAAiB;AACjB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,cAAc,EAAE,uBAAuB;IACvC,kBAAkB,EAChB,6IAA6I;IAC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IAAI,EAAE,OAAO;QACb,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,WAAW;QACpB,WAAW,EAAE,IAAI;QACjB,GAAG,EAAE,OAAO;QACZ,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,WAAW;QACpB,sBAAsB;QACtB,MAAM,EAAE,UAAU,EAAE,8CAA8C;QAClE,OAAO,EAAE,WAAW,EAAE,uDAAuD;QAC7E,iCAAiC;QACjC,MAAM,EAAE,QAAQ,EAAE,iDAAiD;KACpE;IACD,iBAAiB;IACjB,QAAQ,EAAE;QACR,KAAK,EAAE,SAAS,EAAE,yDAAyD;QAC3E,YAAY,EAAE,MAAM;QACpB,aAAa,EAAE,OAAO;KACvB;IACD,yDAAyD;IACzD,QAAQ,EAAE;QACR,aAAa,EAAE,eAAe,EAAE,2CAA2C;QAC3E,GAAG,EAAE,KAAK,EAAE,oCAAoC;QAChD,QAAQ,EAAE,UAAU,EAAE,sCAAsC;KAC7D;CACO,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,12 +7,11 @@ import { PROTOCOL } from './constants.js';
|
|
|
7
7
|
import { getToolDefinitions, getPromptDefinitions, executeTool, toolExists, getPromptMessage, } from './tools/index.js';
|
|
8
8
|
const server = new Server({
|
|
9
9
|
name: 'codex-cli-mcp',
|
|
10
|
-
version: '1.
|
|
10
|
+
version: '1.4.1',
|
|
11
11
|
}, {
|
|
12
12
|
capabilities: {
|
|
13
13
|
tools: {},
|
|
14
14
|
prompts: {},
|
|
15
|
-
notifications: {},
|
|
16
15
|
logging: {},
|
|
17
16
|
},
|
|
18
17
|
});
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAA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tB,sBAAsB,EACtB,KAAK,EAAE,OAAyB,EAA4B,EAAE;IAC5D,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IACvC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;IAE5C,MAAM,aAAa,GAAG,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAEzD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,mBAAmB,UAAU,EAAE,CAAC,CAAC;IACnD,CAAC;IAED,OAAO;QACL,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,MAAe;gBACrB,OAAO,EAAE;oBACP,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,aAAa;iBACpB;aACF;SACF;KACF,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,mBAAmB;AACnB,KAAK,UAAU,IAAI;IACjB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACpC,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,MAAM,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;AACpD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACnB,MAAM,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ask-codex.tool.d.ts","sourceRoot":"","sources":["../../src/tools/ask-codex.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ask-codex.tool.d.ts","sourceRoot":"","sources":["../../src/tools/ask-codex.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAyH5C,eAAO,MAAM,YAAY,EAAE,WAyJ1B,CAAC"}
|