mcp-server-say-hello

mcp-server-say-hello

0

The MCP Say Hello Server is a Node.js server designed to provide personalized greeting operations using the Model Context Protocol (MCP). It offers features for name validation and detailed error handling, ensuring compliance with the MCP protocol.

MCP Say Hello Server

Node.js server implementing Model Context Protocol (MCP) for greeting operations with personalized messages.

Features

  • Provides personalized greeting messages
  • Supports name input parameter validation using Zod schema
  • Detailed error handling and response formatting
  • Standard MCP protocol compliance for tool registration and request processing

Tools

say_hello

Description: Greets the user with a personalized message.

Input Parameters:

{
  "name": {
    "type": "string",
    "description": "Name of the person to greet"
  }
}

Response:

  • Success: Returns a greeting message with the provided name
  • Failure: Returns error information

Usage Examples

With Claude Desktop or Trae CN

Docker Configuration

No docker configuration.

NPX Configuration
{
  "mcpServers": {
    "say-hello": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-say-hello"
      ]
    }
  }
}

or install globally:

npm install -g mcp-server-say-hello

and then:

{
  "mcpServers": {
    "say-hello": {
      "command": "mcp-server-say-hello"
    }
  }
}

local run as sse server mode

npm install
npm run build
node dist/sse.js

AIGC prompt examples

you:我叫Bright,请向我问好

image

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.