1.0.5 • Published 2 months ago

@siddhantxh/sum-mcp v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

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 sum
  • b (number): The second number to sum

Returns:

  • The sum of the two numbers

Development

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Start the server:
npm start

License

MIT

1.0.5

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago