mcp-server

mcp-server

3.2

If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project implements a simple MCP (Multi-Channel Protocol) server that provides a greeting tool.

MCP Server

This project implements a simple MCP (Multi-Channel Protocol) server that provides a greeting tool. Users can interact with the server to receive personalized greetings.

Project Structure

mcp-server
ā”œā”€ā”€ cmd
│   └── main.go          # Entry point of the application
ā”œā”€ā”€ internal
│   ā”œā”€ā”€ handlers
│   │   └── hello_handler.go  # Handler for greeting requests
│   └── server
│       └── server.go    # MCP server setup and tool registration
ā”œā”€ā”€ go.mod               # Module dependencies
ā”œā”€ā”€ go.sum               # Dependency checksums
└── README.md            # Project documentation

Setup Instructions

  1. Clone the repository:

    git clone <repository-url>
    cd mcp-server
    
  2. Install dependencies:

    go mod tidy
    
  3. Run the server:

    go run cmd/main.go
    

Usage

Once the server is running, you can interact with it using a compatible MCP client. To greet someone, send a request to the hello_world tool with the required parameter name.

Example Request

{
  "tool": "hello_world",
  "arguments": {
    "name": "Alice"
  }
}

Example Response

{
  "result": "Hello, Alice!"
}

Contributing

Feel free to submit issues or pull requests for improvements or bug fixes.