# Reported issues for io.github.mkXultra/ai-cli-mcp

Pod holds 6 of 6 problems reported by people outside the maintainer team. Issues filed by the project's own owners, members and collaborators are excluded entirely — a maintainer's release checklist is not a warning to a prospective user.

Back to [io.github.mkXultra/ai-cli-mcp](/mcp/io-github-mkxultra-ai-cli-mcp).

## Most discussed

### 過去に起動したディレクトリが消されると、エラーになる

問題の原因:

  ai-cliは実行中のプロセス情報を~/.local/state/ai-cli/cwds/に保存しているが、path/to/working から実行したプロセスの情報が残る。
  そのため、path/to/working を消すと、path/to/working にアクセスしようとして ai-cli ps などが起動しなくなる。

[Read the thread](https://github.com/mkXultra/ai-cli-mcp/issues/30) · 2026-04-02 · closed · external user · 1 comment

### Result format

Hello,

Currently results are in this format:
```json
       {
         "pid": 22569,
         "agent": "claude",
         "status": "completed",
         "exitCode": 0,
         "startTime": "xxxxxx,
         "workFolder": "xxxxx",
         "prompt": "xxxx",
         "model": "opus",
         "agentOutput": {
           "message": xxxx",
           "session_id": "xxxx"
         },
         "session_id": "xxxx"
       }
```
I had a situation with a really long prompt which passed the token limit

[Read the thread](https://github.com/mkXultra/ai-cli-mcp/issues/29) · 2026-03-26 · closed · external user · 1 comment

### feat: Codex デフォルトで sandbox_mode=workspace-write を設定

## 概要 / Summary

Codex CLI 実行時にデフォルトで `-c sandbox_mode=workspace-write` を付与し、プロジェクトディレクトリ外への書き込みを制限する提案です。

Propose adding `-c sandbox_mode=workspace-write` as default for all Codex CLI runs, restricting writes to the project directory only.

## 背景 / Background

現在、MCP 経由の Codex 実行は `--full-auto` モードで動作するため、ファイルシステム全体に書き込み可能です。`sandbox_mode=workspace-write` を設定することで、workFolder 内のみに書き込みを制限でき、安全性が向上します。

Currently, Codex runs via MCP use `--full-auto` which allows writes to the entire filesystem. 

[Read the thread](https://github.com/mkXultra/ai-cli-mcp/issues/25) · 2026-03-18 · open · external user · 0 comments

### fix: Windows環境で .cmd ファイルの spawn が失敗する（shell: true 未設定）

## 概要 / Summary

Windows 環境で Claude/Codex/Gemini CLI が `.cmd` ファイルとしてインストールされている場合、`spawn` が `ENOENT` エラーで失敗します。

On Windows, when CLI tools are installed as `.cmd` files (via npm global install), `spawn` fails with `ENOENT` because `shell: true` is not set.

## 再現手順 / Steps to Reproduce

1. Windows 11 で `npm install -g @anthropic-ai/claude-code` でインストール
2. Claude CLI は `claude.cmd` として PATH に配置される
3. MCP server の `run` ツールを呼び出す
4. `spawn ENOENT` エラーが発生

## 原因 / Root Cause

`process-service.ts` 

[Read the thread](https://github.com/mkXultra/ai-cli-mcp/issues/24) · 2026-03-18 · closed · external user · 1 comment

### feat: Codex service_tier パラメータを追加（fast/flex速度制御）

## 概要 / Summary

Codex CLIの `service_tier` パラメータ（`fast` / `flex`）をMCPの `run` ツールに追加する提案です。

Add `service_tier` parameter (`fast` / `flex`) to the MCP `run` tool for Codex CLI speed control.

## 背景 / Background

Codex CLI は `-c service_tier=fast` でレスポンス速度を優先するモードをサポートしています。現在、`reasoning_effort` は MCP 経由で設定できますが、`service_tier` は設定できません。

Codex CLI supports `-c service_tier=fast` to prioritize response speed. Currently `reasoning_effort` can be set via MCP, but `service_tier` cannot.

## 提案 / Propo

[Read the thread](https://github.com/mkXultra/ai-cli-mcp/issues/23) · 2026-03-18 · open · external user · 0 comments

### fix: Codex fails in non-git directories — missing --skip-git-repo-check flag

## Summary

Codex CLI fails with `Not inside a trusted directory and --skip-git-repo-check was not specified` when `workFolder` is not inside a git repository, even though the directory is trusted in `~/.codex/config.toml`.

## Background

- The `run` tool builds Codex CLI args via `buildCliCommand()` in `cli-builder.ts`
- Claude CLI branch includes `--dangerously-skip-permissions` and Gemini branch includes `-y` for non-interactive execution
- Codex branch includes `--full-auto` but is missing 

[Read the thread](https://github.com/mkXultra/ai-cli-mcp/issues/12) · 2026-03-05 · closed · external user · 1 comment

## Most recent

The remaining reports are on [the project's issue tracker](https://github.com/mkXultra/ai-cli-mcp/issues).
