ping
Verify connectivity and test responses by sending a message to the Gemini CLI MCP Server and receiving the echoed reply.
Instructions
Echo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Message to echo |
Implementation Reference
- lib/fixed-mcp-tool.js:288-294 (handler)The execution handler for the 'ping' tool. It returns a simple 'Pong!' response, optionally echoing the input 'prompt'.case "ping": return { content: [{ type: "text", text: `Pong! ${args.prompt || 'Hello from gemini-cli MCP server!'}` }] };
- lib/fixed-mcp-tool.js:104-118 (schema)The tool definition including name, description, and input schema for 'ping'. Used for tool listing and validation.{ name: "ping", description: "Echo", inputSchema: { type: "object", properties: { prompt: { type: "string", default: "", description: "Message to echo " } }, required: [] } },
- lib/fixed-mcp-tool.js:217-219 (registration)Registration of the ListToolsRequestSchema handler, which returns the list of tools including 'ping'.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });