An open API service indexing awesome lists of open source software.

https://github.com/gkushang/hello-mcp-server

A simple Hello World server implementing the Model Context Protocol (MCP)
https://github.com/gkushang/hello-mcp-server

Last synced: 3 months ago
JSON representation

A simple Hello World server implementing the Model Context Protocol (MCP)

Awesome Lists containing this project

README

          

# Hello MCP Server ๐Ÿ‘‹

> **Note**: This README was created and is maintained through the MCP GitHub server.

A simple implementation of a Model Context Protocol (MCP) server that demonstrates basic functionality including resources, prompts, and tools.

## Features ๐ŸŒŸ

- Resource handling with templates
- Prompt management
- Tool implementation
- TypeScript support
- Built-in testing

## Installation ๐Ÿ› ๏ธ

```bash
npm install
```

## Building ๐Ÿ—๏ธ

```bash
npm run build
```

## Running the Server ๐Ÿš€

```bash
npm start
```

## Testing ๐Ÿงช

Run the test script to verify the server's functionality:

```bash
npm test
```

This will test:
- Resource handling
- Template processing
- Prompt generation
- Tool execution

## Project Structure ๐Ÿ“

```
โ”œโ”€โ”€ src/
โ”‚ โ”œโ”€โ”€ index.ts # Main server file
โ”‚ โ”œโ”€โ”€ handlers.ts # Request handlers
โ”‚ โ”œโ”€โ”€ resources.ts # Resource definitions
โ”‚ โ”œโ”€โ”€ prompts.ts # Prompt implementations
โ”‚ โ”œโ”€โ”€ tools.ts # Tool definitions
โ”‚ โ””โ”€โ”€ test.ts # Test script
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ tsconfig.json
```

## Contributing ๐Ÿค

Contributions are welcome! Please feel free to submit a Pull Request.

---

_This README is managed through the MCP GitHub server_ ๐Ÿค–