
x51xxx/codex-mcp-tool
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Claude/CursorをCodex CLIに接続するMCPサーバー。 @ファイル参照、マルチターン会話、サンドボックス編集、構造変更モードによるコード解析が可能.
概要
Claude/CursorをCodex CLIに接続するMCPサーバー。 @ファイル参照、マルチターン会話、サンドボックス編集、構造変更モードによるコード解析が可能。 - — @src/、@package.json 構文で参照ファイル - - ワークスペースの分離による会話の継続 - — コンテキスト保存(CLI v0.36.0+)でコーデックスの履歴書を使用する - — — localProvider を使って Ollama や LM Studio で実行 - — 検索によるリサーチ機能: true - — 明示的なサンドボックスと承認ポリシーを備えた安全な自動化 - — 再ファクター化のための構造化された OLD/NEW パッチ出力 - — SCAMPER、設計思考、側面思考フレームワーク - — CLI バージョン、機能、セッション監視 - Windows、macOS、Linux 完全にサポート Node.js 18+、Codex CLIをインストールして認証します。 macOS: ~/ Library/Application Support/Claude/claude desktop config.json | Windows: %APPDATA%\Claude\claude desktop config.json Image-gen は、Codex の組み込みのimage gen ツールを駆動するため、ChatGPT のログインを使用し、OpenAI API KEY は必要ありません.
概要(AI 翻訳)
Claude/CursorをCodex CLIに接続するMCPサーバー。 @ファイル参照、マルチターン会話、サンドボックス編集、構造変更モードによるコード解析を有効にします。
##特徴
- ファイル解析 —
@src/の参照ファイル, [@package.json構文 -マルチターンセッション - ワークスペース分離による会話の継続 -Native Resume — コンテキスト保存 (CLI v0.36.0+) の [codex resumeを使用します。 - ローカルOSSモデル — OllamaまたはLMスタジオで[[
localProviderを介して実行 -Web Search — [[T5] による研究機能 - サンドボックスモード — 明示的なサンドボックスと承認ポリシーで安全な自動化
- モードの変更 — 再ファクタリングのための構成されたOLD/NEWパッチ出力
- Brainstorming — SCAMPER、設計思考、側面思考フレームワーク
- 健康診断 — CLIバージョン、機能、セッション監視
- Cross-Platform — Windows, macOS, 完全にサポートされていますLinux
クイックスタート
前提条件: Node.js 18+、Codex CLIをインストールして認証します。
設定
設定場所: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json | Windows: [[T7]
使用例
ツール
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Codex MCP Server
MCP server connecting Claude/Cursor to Codex CLI. Enables code analysis via @ file references, multi-turn conversations, sandboxed edits, and structured change mode.
Features
- File Analysis — Reference files with
@src/,@package.jsonsyntax - Multi-Turn Sessions — Conversation continuity with workspace isolation
- Native Resume — Uses
codex resumefor context preservation (CLI v0.36.0+) - Local OSS Models — Run with Ollama or LM Studio via
localProvider - Web Search — Research capabilities with
search: true - Sandbox Mode — Safe automation with explicit sandbox and approval policies
- Change Mode — Structured OLD/NEW patch output for refactoring
- Brainstorming — SCAMPER, design-thinking, lateral thinking frameworks
- Health Diagnostics — CLI version, features, and session monitoring
- Cross-Platform — Windows, macOS, Linux fully supported
Quick Start
claude mcp add codex-cli -- npx -y @trishchuk/codex-mcp-tool
Prerequisites: Node.js 18+, Codex CLI installed and authenticated.
Configuration
{
"mcpServers": {
"codex-cli": {
"command": "npx",
"args": ["-y", "@trishchuk/codex-mcp-tool"]
}
}
}
Config locations: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json | Windows: %APPDATA%\Claude\claude_desktop_config.json
Usage Examples
// File analysis
'explain the architecture of @src/';
'analyze @package.json and list dependencies';
// With specific model
'use codex with model gpt-5.6-sol to analyze @algorithm.py';
// Multi-turn conversations (v1.4.0+)
'ask codex sessionId:"my-project" prompt:"explain @src/"';
'ask codex sessionId:"my-project" prompt:"now add error handling"';
// Brainstorming
'brainstorm ways to optimize CI/CD using SCAMPER method';
// Sandbox mode
'use codex sandbox:true to create and run a Python script';
// Web search
'ask codex search:true prompt:"latest TypeScript 5.7 features"';
// Local OSS model (Ollama)
'ask codex localProvider:"ollama" model:"qwen3:8b" prompt:"explain @src/"';
Tools
| Tool | Description |
|---|
インストール
npx -y @trishchuk/codex-mcp-tool設定
{
"mcpServers": {
"codex-cli": {
"command": "npx",
"args": ["-y", "@trishchuk/codex-mcp-tool"]
}
}
}