@rikukawa/dice-server
v1.0.0
Published
A Model Context Protocol server for rolling dice
Downloads
69
Readme
MCP Dice Server
A Model Context Protocol server for rolling dice. This server provides tools for rolling dice with customizable number of sides and multiple rolls.
Installation
npm install @modelcontextprotocol/dice-server
Usage
This server provides the following tool:
roll_dice
Roll one or more dice with a specified number of sides.
Parameters:
sides
(optional): Number of sides on the dice (default: 6)times
(optional): Number of times to roll the dice (default: 1)
Example response:
{
"rolls": [4, 6, 2],
"total": 12,
"average": 4
}
Development
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
- Start the server:
npm start
License
MIT