MCP Server

by ratnesh-maurya

202 downloads
Not rated
GitHub

Description

# 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 ├──…

About

# 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 │ │ └──…

Details

Author
ratnesh-maurya
Downloads
202
Categories
Other

- Implements a single greeting tool (hello_world)
- Written in Go with a clean project structure
- Returns personalized messages based on a name parameter
- Easy to run locally with standard Go tooling

Clone the repository, run go mod tidy to install dependencies, then start the server with go run cmd/main.go. Use a compatible MCP client to send a request to the hello_world tool with a name argument to receive a greeting.

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.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.