my-first-mcp
My first MCP (Model Context Protocol) server implementation.
Based on the video tutorial https://frontendmasters.com/courses/mcp/
Description
This is a simple MCP server that provides an addition tool. It demonstrates how to create a basic MCP server using the @modelcontextprotocol/sdk.
Features
Addition Tool: Adds two numbers together and returns the result
Installation
Usage
Running the server
Testing the server
List available tools
This will return information about all available tools in the server.
Call the add tool
This will call the add tool with example arguments (5 + 3) and return the result.
API
Tools
add
Adds two numbers together.
Parameters:
a(number): First numberb(number): Second number
Returns:
A text response with the sum of the two numbers
Example:
Dependencies
@modelcontextprotocol/sdk: MCP SDK for building serverszod: TypeScript-first schema validation
This server cannot be installed