Skip to main content
Glama
CaptainCrouton89

MCP Server Boilerplate

hello-world

Greet users by name to demonstrate basic MCP server tool functionality for AI assistant integration.

Instructions

Say hello to the user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the user

Implementation Reference

  • The async handler function that implements the 'hello-world' tool logic, greeting the user by name.
    async ({ name }) => { const response = `Hello ${name}`; return { content: [ { type: "text", text: response, }, ], }; }
  • Zod schema defining the input parameter 'name' for the hello-world tool.
    { name: z.string().describe("The name of the user"), },
  • src/index.ts:13-31 (registration)
    Registration of the 'hello-world' tool using server.tool(), including name, description, schema, and handler.
    server.tool( "hello-world", "Say hello to the user", { name: z.string().describe("The name of the user"), }, async ({ name }) => { const response = `Hello ${name}`; return { content: [ { type: "text", text: response, }, ], }; } );
Install Server

Other 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/CaptainCrouton89/mcp-reddit'

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