Invokes Google Gemini CLI agent for UI design mockups, image analysis, requirement discovery, and comprehensive full-text analysis of projects.
Invokes OpenAI Codex CLI agent for deep code analysis, critical code review, bug hunting, and security analysis with image context support.
cli-agent-mcp
Unified MCP (Model Context Protocol) server for CLI AI agents. Provides a single interface to invoke Codex, Gemini, Claude, and OpenCode CLI tools.
Features
Unified Interface: Single MCP server exposing multiple CLI agents
GUI Dashboard: Real-time task monitoring with pywebview
Request Isolation: Per-request execution context for safe concurrent usage
Signal Handling: Graceful cancellation via SIGINT without killing the server
Debug Logging: Comprehensive subprocess output capture for debugging
Screenshot

Installation
Configuration
Configure via environment variables:
Variable | Description | Default |
| Comma-separated list of allowed tools (empty = all) |
(all) |
| Enable GUI dashboard |
|
| GUI detail mode |
|
| Keep GUI on exit |
|
| Include debug info in MCP responses |
|
| Write debug logs to temp file |
|
| SIGINT handling (
/
/
) |
|
| Double-tap exit window (seconds) |
|
Tools
codex
Invoke OpenAI Codex CLI agent for deep code analysis and critical review.
Best for: Code review, bug hunting, security analysis
Parameter | Type | Required | Default | Description |
| string | ✓ | - | Task instruction for the agent |
| string | ✓ | - | Absolute path to the project directory |
| string |
| Permission level:
,
,
| |
| string |
| Model override (only specify if explicitly requested) | |
| string |
| Save agent output to file path | |
| boolean |
| Include analysis prompt in saved file | |
| boolean |
| Return detailed output including reasoning | |
| array |
| Absolute paths to image files for visual context | |
| string |
| Session ID to resume previous conversation | |
| string |
| Display label for GUI | |
| boolean | (global) | Override debug setting for this call |
gemini
Invoke Google Gemini CLI agent for UI design and comprehensive analysis.
Best for: UI mockups, image analysis, requirement discovery, full-text analysis
Parameter | Type | Required | Default | Description |
| string | ✓ | - | Task instruction for the agent |
| string | ✓ | - | Absolute path to the project directory |
| string |
| Permission level:
,
,
| |
| string |
| Model override | |
| string |
| Save agent output to file path | |
| boolean |
| Include analysis prompt in saved file | |
| boolean |
| Return detailed output including reasoning | |
| string |
| Session ID to resume previous conversation | |
| string |
| Display label for GUI | |
| boolean | (global) | Override debug setting for this call |
claude
Invoke Anthropic Claude CLI agent for code implementation.
Best for: Feature implementation, refactoring, code generation
Parameter | Type | Required | Default | Description |
| string | ✓ | - | Task instruction for the agent |
| string | ✓ | - | Absolute path to the project directory |
| string |
| Permission level:
,
,
| |
| string |
| Model override (
,
, or full model name) | |
| string |
| Save agent output to file path | |
| boolean |
| Include analysis prompt in saved file | |
| boolean |
| Return detailed output including reasoning | |
| string |
| Complete replacement for the default system prompt | |
| string |
| Additional instructions appended to default prompt | |
| string |
| Specify agent name (overrides default agent setting) | |
| string |
| Session ID to resume previous conversation | |
| string |
| Display label for GUI | |
| boolean | (global) | Override debug setting for this call |
opencode
Invoke OpenCode CLI agent for full-stack development.
Best for: Rapid prototyping, multi-framework projects
Parameter | Type | Required | Default | Description |
| string | ✓ | - | Task instruction for the agent |
| string | ✓ | - | Absolute path to the project directory |
| string |
| Permission level:
,
,
| |
| string |
| Model override (format:
) | |
| string |
| Save agent output to file path | |
| boolean |
| Include analysis prompt in saved file | |
| boolean |
| Return detailed output including reasoning | |
| array |
| Absolute paths to files to attach | |
| string |
| Agent type:
,
, etc. | |
| string |
| Session ID to resume previous conversation | |
| string |
| Display label for GUI | |
| boolean | (global) | Override debug setting for this call |
Permission Levels
Level | Description | Codex | Claude | OpenCode |
| Can only read files |
|
|
|
| Can modify files within workspace |
|
|
|
| Full system access (use with caution) |
|
|
|
Debug Mode
Enable debug mode to get detailed execution information:
When CAM_LOG_DEBUG=true, logs are written to:
Debug output includes:
Full subprocess command
Complete stdout/stderr output
Return codes
MCP request/response summaries
MCP Configuration
Add to your MCP client configuration (e.g., Claude Desktop claude_desktop_config.json):
Basic Configuration
Install from GitHub
With Debug Mode
Disable GUI
Limit Available Tools
Project Structure
Important: Never edit src/cli_agent_mcp/shared/ directly. Always edit shared/ and run the sync script.
Development
License
MIT