version
Retrieve version details and system information from the Codex MCP Server to verify compatibility and check current deployment status.
Instructions
Display version and system information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/simple-tools.ts:49-69 (handler)The execute function for the 'version' tool, which retrieves Codex CLI version via command, Node.js version, platform, and formats system information, with fallback if codex not available.execute: async (args, onProgress) => { try { const codexVersion = await executeCommand('codex', ['--version'], onProgress); const nodeVersion = process.version; const platform = process.platform; return `**System Information:** - Codex CLI: ${codexVersion.trim()} - Node.js: ${nodeVersion} - Platform: ${platform} - MCP Server: @cexll/codex-mcp-server v1.2.5`; } catch (error) { return `**System Information:** - Codex CLI: Not installed or not accessible - Node.js: ${process.version} - Platform: ${process.platform} - MCP Server: @cexll/codex-mcp-server v1.2.4 *Note: Install Codex CLI with: npm install -g @openai/codex*`; } },
- src/tools/simple-tools.ts:39-40 (schema)Zod schema defining empty arguments for the 'version' tool.const versionArgsSchema = z.object({});
- src/tools/index.ts:11-21 (registration)Registers the 'versionTool' into the central toolRegistry alongside other tools.toolRegistry.push( askCodexTool, batchCodexTool, // reviewCodexTool, pingTool, helpTool, versionTool, brainstormTool, fetchChunkTool, timeoutTestTool );