hello
Verifies the GitHub MCP server is operational by returning a confirmation response.
Instructions
A simple test tool to verify that the MCP server is working correctly
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:22-37 (handler)The 'hello' tool handler registered directly on the McpServer. It takes no parameters and returns a JSON response with a greeting message and timestamp, verifying MCP server connectivity.
server.tool( "hello", "A simple test tool to verify that the MCP server is working correctly", {}, async () => ({ content: [ { type: "text", text: JSON.stringify({ message: "Hello from GitHub MCP Server!", timestamp: new Date().toISOString(), }, null, 2), }, ], }), ) - src/index.ts:22-37 (registration)The 'hello' tool is registered via server.tool() call inside registerAllToolsAndResources(). No separate schema file exists; the empty object {} is passed as the schema.
server.tool( "hello", "A simple test tool to verify that the MCP server is working correctly", {}, async () => ({ content: [ { type: "text", text: JSON.stringify({ message: "Hello from GitHub MCP Server!", timestamp: new Date().toISOString(), }, null, 2), }, ], }), ) - src/index.ts:25-25 (schema)The schema for 'hello' is an empty object {}, meaning the tool accepts no parameters.
{},