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
-
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.