Skip to main content
Glama
gemyago

HelloWorld MCP Server

by gemyago

hello

Generate personalized greetings by inputting a name to receive a customized hello message from the HelloWorld MCP Server.

Instructions

Say hello to someone

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoThe name of the person to greetWorld

Implementation Reference

  • Handler logic for the 'hello' tool, extracting the name parameter and returning a greeting text response.
    case 'hello': {
      const targetName = (args as { name?: string }).name || 'World';
      return {
        content: [
          {
            type: 'text',
            text: `Hello, ${targetName}! 👋 Welcome to the HelloWorld MCP server!`,
          },
        ],
      };
    }
  • Input schema and metadata for the 'hello' tool, defined in the ListTools response.
    {
      name: 'hello',
      description: 'Say hello to someone',
      inputSchema: {
        type: 'object',
        properties: {
          name: {
            type: 'string',
            description: 'The name of the person to greet',
            default: 'World',
          },
        },
      },
    },
  • src/index.ts:25-62 (registration)
    Registration of tools including 'hello' via the ListToolsRequestHandler.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return {
        tools: [
          {
            name: 'hello',
            description: 'Say hello to someone',
            inputSchema: {
              type: 'object',
              properties: {
                name: {
                  type: 'string',
                  description: 'The name of the person to greet',
                  default: 'World',
                },
              },
            },
          },
          {
            name: 'add',
            description: 'Add two numbers together',
            inputSchema: {
              type: 'object',
              properties: {
                a: {
                  type: 'number',
                  description: 'First number',
                },
                b: {
                  type: 'number',
                  description: 'Second number',
                },
              },
              required: ['a', 'b'],
            },
          },
        ],
      };
    });
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/gemyago/typescript-mcp-boilerplate'

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