mcp-server-example
2.2
This project is a simple example of a Model Context Protocol (MCP) server implementation using the official SDK. It features a "hello world" tool demonstrating basic server functionality and communication via stdio transport.
Overview
This project demonstrates how to create a basic MCP server with a simple "hello world" tool. The server uses the official MCP SDK and communicates via stdio transport.
Features
- MCP server implementation using the official MCP SDK
- Simple "hello world" tool with optional name parameter
- Stdio-based communication transport
- Type-safe tool definitions using Zod schema validation
Prerequisites
- Node.js (version 14 or higher)
- npm or yarn package manager
Usage
To start the MCP server, it will listen for incoming connections via stdio.