Skip to main content
Glama
orzcls

Gemini CLI MCP Server

by orzcls

ping

Test connectivity and verify response from the Gemini CLI MCP Server by sending a message and receiving an echo.

Instructions

Echo

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptNoMessage to echo

Implementation Reference

  • The handler function for the 'ping' tool, which returns a 'Pong!' response echoing any provided prompt or a default message.
    case "ping":
        return {
            content: [{
                type: "text",
                text: `Pong! ${args.prompt || 'Hello from gemini-cli MCP server!'}`
            }]
        };
  • The schema definition for the 'ping' tool, including name, description, and optional input schema for a 'prompt' string.
    {
        name: "ping",
        description: "Echo",
        inputSchema: {
            type: "object",
            properties: {
                prompt: {
                    type: "string",
                    default: "",
                    description: "Message to echo "
                }
            },
            required: []
        }
    },
  • Registration of all tools (including 'ping') via the ListToolsRequestSchema handler, which returns the tools array containing the ping tool definition.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
        return { tools };
    });

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/orzcls/gemini-mcp-tool-windows-fixed'

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