Skip to main content
Glama
BrightLin

mcp-server-say-hello

by BrightLin
README.md
# mcp-server-say-hello

MCP Protocol-compliant greeting service providing standardized greeting tool interfaces.

## Features

- Personalized greeting generation
- Compliant with MCP v1.2 protocol specifications
- Multi-environment deployment support (uvx/docker/pip)
- Complete tool registration specifications

## Tool Registration

### Tool List

1. `say_hello`
   - Description: Greeting tool for users
   - Input Parameters:
  
     ```json
     {
       "name": "username"
     }
     ```

   - Success Response:
  
     ```json
     {
       "type": "text",
       "text": "Hello {username}!"
     }
     ```

## API Reference

**endpoint**: POST /say_hello

request parameters:

```json
{
  "name": "username"
}
```

success response:

```json
{
  "message": "Hello {username}!"
}
```

## Integrated configuration

### VS Code configuration

```json
{
  "mcp": {
    "servers": {
      "say_hello": {
        "command": "uvx",
        "args": ["mcp-server-say-hello"]
      }
    }
  }
}
```

or locally (if you installed the package using `pip install` or `pip install -e .`):

```json
{
  "mcp": {
    "servers": {
      "say_hello": {
        "command": "/path/to/python",
        "args": ["-m", "mcp_server_say_hello"]
      }
    }
  }
}
```

Note: command use the python bin path or "python" if you have it in your PATH

### Claude Desktop or Trae CN Desktop configuration

use python

```json
{
  "mcpServers": {
    "say_hello": {
      "command": "python",
      "args": ["-m", "mcp_server_say_hello"]
    }
  }
}
```

or uvx

```json
{
  "mcpServers": {
    "say_hello": {
      "command": "uvx",
      "args": ["mcp-server-say-hello"]
    }
  }
}
```

## AIGC prompt example

![image](https://github.com/user-attachments/assets/d8d10179-d198-4cb8-9e74-3e8c0a691c59)