1.0.5 • Published 2 months ago
@siddhantxh/sum-mcp v1.0.5
Sum MCP Server
A simple Model Context Protocol (MCP) server that provides a tool for adding two numbers.
Installation
npm install -g @mcp-servers/sum-mcp
Usage
As a CLI Tool
Once installed globally, you can run the server:
sum-mcp
In Your MCP Configuration
Add this to your .cursor/mcp.json
:
{
"mcpServers": {
"sum-mcp": {
"command": "sum-mcp"
}
}
}
As a Library
You can also use the server programmatically:
import { createSumServer } from '@mcp-servers/sum-mcp';
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = createSumServer();
const transport = new StdioServerTransport();
await server.connect(transport);
API
The server provides a single tool:
sum
Adds two numbers together.
Parameters:
a
(number): The first number to sumb
(number): The second number to sum
Returns:
- The sum of the two numbers
Development
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
- Start the server:
npm start
License
MIT