You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update CHANGELOG.md with v1.1.0 features and improvements
- Update README.md to reflect JSON default format and new timeout recommendations
- Update CONTRIBUTING.md examples to match current API
- Bump version to 1.1.0 in __init__.py
Changes include better default configuration documentation,
updated examples, and comprehensive timeout guidance.
-**Minimal Dependencies**: Only requires `mcp>=1.0.0` and Codex CLI
19
19
-**Easy Deployment**: Support for both uvx and traditional pip installation
20
20
-**Universal MCP Compatibility**: Works with any MCP-compatible AI coding assistant
@@ -342,7 +342,7 @@ Once configured with any client, use the same two tools:
342
342
343
343
### Timeout Configuration
344
344
345
-
By default, Codex Bridge uses a 60-second timeout for all CLI operations. For longer queries (large files, complex analysis), you can configure a custom timeout using the `CODEX_BRIDGE_TIMEOUT` environment variable.
345
+
By default, Codex Bridge uses a 90-second timeout for all CLI operations. For longer queries (large files, complex analysis), you can configure a custom timeout using the `CODEX_TIMEOUT` environment variable.
346
346
347
347
**Example configurations:**
348
348
@@ -351,7 +351,7 @@ By default, Codex Bridge uses a 60-second timeout for all CLI operations. For lo
351
351
352
352
```bash
353
353
# Add with custom timeout (120 seconds)
354
-
claude mcp add codex-bridge -s user --env CODEX_BRIDGE_TIMEOUT=120 -- uvx codex-bridge
354
+
claude mcp add codex-bridge -s user --env CODEX_TIMEOUT=120 -- uvx codex-bridge
355
355
```
356
356
357
357
</details>
@@ -366,7 +366,7 @@ claude mcp add codex-bridge -s user --env CODEX_BRIDGE_TIMEOUT=120 -- uvx codex-
366
366
"command": "uvx",
367
367
"args": ["codex-bridge"],
368
368
"env": {
369
-
"CODEX_BRIDGE_TIMEOUT": "120"
369
+
"CODEX_TIMEOUT": "120"
370
370
}
371
371
}
372
372
}
@@ -376,46 +376,58 @@ claude mcp add codex-bridge -s user --env CODEX_BRIDGE_TIMEOUT=120 -- uvx codex-
376
376
</details>
377
377
378
378
**Timeout Options:**
379
-
-**Default**: 60 seconds (if not configured)
379
+
-**Default**: 90 seconds (if not configured)
380
380
-**Range**: Any positive integer (seconds)
381
-
-**Recommended**: 120-300 seconds for large file analysis
382
-
-**Invalid values**: Fall back to 60 seconds with warning
381
+
-**Recommended**: 60-120 seconds for most queries, 120-300 for large file analysis
382
+
-**Invalid values**: Fall back to 90 seconds with warning
383
383
384
384
## 🛠️ Available Tools
385
385
386
386
### `consult_codex`
387
-
Direct CLI bridge for simple queries.
387
+
Direct CLI bridge for simple queries with structured JSON output by default.
388
388
389
389
**Parameters:**
390
390
-`query` (string): The question or prompt to send to Codex
391
391
-`directory` (string): Working directory for the query (default: current directory)
392
-
-`model` (string, optional): Model to use (optional)
392
+
-`format` (string): Output format - "text", "json", or "code" (default: "json")
393
+
-`timeout` (int, optional): Timeout in seconds (recommended: 60-120, default: 90)
393
394
394
395
**Example:**
395
396
```python
396
397
consult_codex(
397
398
query="Find authentication patterns in this codebase",
398
399
directory="/path/to/project",
399
-
model="flash"
400
+
format="json", # Default format
401
+
timeout=90# Default timeout
400
402
)
401
403
```
402
404
403
-
### `consult_codex_with_files`
404
-
CLI bridge with file attachments for detailed analysis.
405
+
### `consult_codex_with_stdin`
406
+
CLI bridge with stdin content for pipeline-friendly execution.
405
407
406
408
**Parameters:**
407
-
-`query` (string): The question or prompt to send to Codex
409
+
-`stdin_content` (string): Content to pipe as stdin (file contents, diffs, logs)
410
+
-`prompt` (string): The prompt to process the stdin content
408
411
-`directory` (string): Working directory for the query
409
-
-`files` (list): List of file paths relative to the directory
410
-
-`model` (string, optional): Model to use (optional)
412
+
-`format` (string): Output format - "text", "json", or "code" (default: "json")
413
+
-`timeout` (int, optional): Timeout in seconds (recommended: 60-120, default: 90)
414
+
415
+
### `consult_codex_batch`
416
+
Batch processing for multiple queries - perfect for CI/CD automation.
417
+
418
+
**Parameters:**
419
+
-`queries` (list): List of query dictionaries with 'query' and optional 'timeout'
420
+
-`directory` (string): Working directory for all queries
421
+
-`format` (string): Output format - currently only "json" supported for batch
411
422
412
423
**Example:**
413
424
```python
414
-
consult_codex_with_files(
415
-
query="Analyze these auth files and suggest improvements",
425
+
consult_codex_with_stdin(
426
+
stdin_content=open("src/auth.py").read(),
427
+
prompt="Analyze this auth file and suggest improvements",
416
428
directory="/path/to/project",
417
-
files=["src/auth.py", "src/models.py"],
418
-
model="pro"
429
+
format="json", # Default format
430
+
timeout=120# Custom timeout for complex analysis
419
431
)
420
432
```
421
433
@@ -433,21 +445,29 @@ consult_codex(
433
445
### Detailed File Review
434
446
```python
435
447
# Analyze specific files
436
-
consult_codex_with_files(
437
-
query="Review these files and suggest security improvements",
448
+
withopen("/Users/dev/my-project/src/auth.py") as f:
449
+
auth_content = f.read()
450
+
451
+
consult_codex_with_stdin(
452
+
stdin_content=auth_content,
453
+
prompt="Review this file and suggest security improvements",
438
454
directory="/Users/dev/my-project",
439
-
files=["src/auth.py", "src/middleware.py"],
440
-
model="pro"
455
+
format="json", # Structured output
456
+
timeout=120# Allow more time for detailed analysis
441
457
)
442
458
```
443
459
444
-
### Multi-file Analysis
460
+
### Batch Processing
445
461
```python
446
-
# Compare multiple implementation files
447
-
consult_codex_with_files(
448
-
query="Compare these database implementations and recommend the best approach",
0 commit comments