Skip to main content
Glama
luquitared

MCP Server Boilerplate

by luquitared

hello-world

Generate a personalized greeting by providing a user name. This tool demonstrates basic MCP server functionality for creating custom AI assistant integrations.

Instructions

Say hello to the user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the user

Implementation Reference

  • The handler function for the 'hello-world' tool. It receives a 'name' parameter and returns a text content block with the greeting 'Hello ${name}'.
    async ({ name }) => { const response = `Hello ${name}`; return { content: [ { type: "text", text: response, }, ], }; }
  • Input schema for the 'hello-world' tool, defining a required 'name' string parameter.
    { name: z.string().describe("The name of the user"), },
  • src/index.ts:13-31 (registration)
    Registration of the 'hello-world' tool on the MCP server, specifying name, description, input schema, and handler function.
    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/luquitared/mcp-animator'

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