TestMcpServer
0
TestMcpServer is an example MCP Server that facilitates easier comprehension of setting up and using the Model Context Protocol. It offers tools in mathematics, image processing, filesystem operations, and browser functionalities with robust testing and error handling features.
TestMcpServer
Introduction
This project is an example implementation of an MCP Server using the Model Context Protocol from Anthropic. It aims to provide a more manageable MCP Server example that is easier to understand.
Features
- Mathematical Tools: Addition, Subtraction, Multiplication, Division, Square Root, Power, Modulo, Logarithm, Average
- Image Processing Tools: Image Conversion, Image Resize
- Filesystem Tools: Directory Tree Structure
- Browser Tools: Console Capture
- Comprehensive error handling and input validation
Installation
- Use
npm install
to install dependencies - Build and run the server using provided npm scripts
Testing MCP Tools
Includes a comprehensive testing framework using Jest to ensure tool functionality and handle edge cases properly.