Skip to main content
Glama
cexll
by cexll

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
NameRequiredDescriptionDefault
promptNoMessage to echo

Implementation Reference

  • 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;
    },
  • 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 '),
    });
  • Registration of the pingTool by adding it to the toolRegistry array.
    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