version
Display version and system information for the Codex MCP Server to verify server status and compatibility.
Instructions
Display version and system information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/tools/simple-tools.ts:49-69 (handler)The main handler function for the 'version' tool that executes the logic to retrieve and format version information for Codex CLI, Node.js, platform, and MCP server.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 definition for the version tool input arguments (empty object as no arguments are required).const versionArgsSchema = z.object({});
- src/tools/index.ts:11-21 (registration)Registration of the versionTool into the central toolRegistry array, making it available for MCP tool listing and execution.toolRegistry.push( askCodexTool, batchCodexTool, // reviewCodexTool, pingTool, helpTool, versionTool, brainstormTool, fetchChunkTool, timeoutTestTool );
- src/tools/index.ts:6-6 (registration)Import of the versionTool from its implementation file for registration.import { pingTool, helpTool, versionTool } from './simple-tools.js';