mcp-server
0
This project is an MCP server providing a greeting tool for personalized interactions. It allows users to send greeting requests and receive responses.
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
-
Clone the repository:
git clone <repository-url> cd mcp-server
-
Install dependencies:
go mod tidy
-
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.