poemcp

poemcp

0

This project is an MCP server built with Rust's poem framework. It provides tools for counter management, number addition, IP validation, and CIDR checking via SSE endpoints for real-time client interaction.

MCP Server with Combined Tools

This project implements a Model Context Protocol (MCP) server in Rust using the poem framework. It offers tools for managing counters, adding numbers, validating IP addresses, and checking if an IP is within a CIDR range. These tools are accessible via a Server-Sent Events (SSE) endpoint for real-time interaction.

Features

  • Counter: Increment, decrement, get current value
  • Adder: Add two integers
  • IP Validator: Validate IPv4 address
  • CIDR Checker: Check IP in CIDR range

Endpoints

  • /sse: Server-Sent Events endpoint for real-time interaction

Tools

  • Increment, Decrement, Get Value, Add, Is Valid IPv4, Is IP in CIDR

Setup

Requirements

  • Rust 1.60+
  • Cargo

Installation

  1. Clone the repository
  2. Build the project
  3. Run the server

The server listens on http://127.0.0.1:8000.