Skip to main content
Glama

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

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • 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*`; } },
  • Zod schema definition for the version tool input arguments (empty object as no arguments are required).
    const versionArgsSchema = z.object({});
  • 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';

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cexll/codex-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server