ping
Test connectivity and verify the Codex MCP Server is operational by sending a message and receiving an echo response.
Instructions
Echo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Message to echo |
Implementation Reference
- src/tools/simple-tools.ts:17-21 (handler)The execute function for the ping tool, which returns the input prompt or defaults to 'Pong!'.execute: async (args, onProgress) => { const message = args.prompt || args.message || 'Pong!'; // Return message directly to avoid cross-platform issues with echo command return message as string; },
- src/tools/simple-tools.ts:5-7 (schema)Zod schema defining the input arguments for the ping tool: an optional prompt string.const pingArgsSchema = z.object({ prompt: z.string().default('').describe('Message to echo '), });
- src/tools/index.ts:11-21 (registration)Registration of the pingTool by adding it to the toolRegistry array.toolRegistry.push( askCodexTool, batchCodexTool, // reviewCodexTool, pingTool, helpTool, versionTool, brainstormTool, fetchChunkTool, timeoutTestTool );