# MRP Calculator MCP Server
## Overview
This MCP server provides tools for Material Requirements Planning (MRP) calculations. It follows the Model Context Protocol (MCP) to expose its functionality to the system.
## Features
- Delivery schedule calculation
- Order need determination
- MRP period calculations
## Tools
The server provides the following MCP tools:
### calculate_order_need
Calculates when and how much to order based on:
- Current inventory levels
- Forecast periods
- Delivery schedules
- Order constraints
## Configuration
The server can be configured through the MCP settings file with:
```json
{
"mcpServers": {
"mrp": {
"command": "node",
"args": ["/path/to/mrp-calculator/dist/index.js"],
"env": {}
}
}
}
```
## Development
- Written in TypeScript
- Uses MCP SDK for server implementation
- Includes test cases for validation
## Project Structure
```
mrp-calculator/
├── src/
│ ├── index.ts # Main server implementation
│ ├── calculator.ts # MRP calculation logic
│ ├── types.ts # TypeScript type definitions
│ └── validator.ts # Input validation
├── package.json
├── tsconfig.json
└── README.md
```
## Building and Running
```bash
# Install dependencies
npm install
# Build the server
npm run build
# Run the server
node dist/index.js
```
## Version Control
This repository uses Git for version control. Important files are tracked while build artifacts and dependencies are ignored via .gitignore.