1.0.0 • Published 1 year ago

@rikukawa/dice-server v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

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

License

MIT

1.0.0

1 year ago