Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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*`; } },
  • Zod schema defining empty arguments for the 'version' tool.
    const versionArgsSchema = z.object({});
  • Registers the 'versionTool' into the central toolRegistry alongside other tools.
    toolRegistry.push( askCodexTool, batchCodexTool, // reviewCodexTool, pingTool, helpTool, versionTool, brainstormTool, fetchChunkTool, timeoutTestTool );

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