Logo van Dice Roller

Dice Roller

Community
lpbayliss

MCP Server for simulating dice rolls

Uitgeverlpbayliss
Repositoryserver-dice-roll
TaalTypeScript
Forks
1
Sterren
2
Beschikbare tools
2
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Dice Roller biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 2 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    2 sterren en 1 forks in de gekoppelde repository.

server-dice-roll

A Model Context Protocol (MCP) server for simulating dice rolls with support for standard dice notation and Fate/Fudge dice.

Features

  • Dice Notation Parsing: Parse standard dice notation strings like 2d6, 1d20+5, or 4dF
  • Multiple Dice Types: Support for both standard dice and Fate/Fudge dice
  • Random Rolling: Generate truly random dice rolls with accurate probability distributions
  • Validation: Full input and output validation using Zod schemas
  • MCP Integration: Seamlessly integrates with any MCP-compatible client like Claude Desktop

Usage

This MCP server provides two main tools:

1. Parse Dice Notation

Parses a dice notation string and returns the structured representation.

parse_dice_roll_notation
  input: { notation: "3d6+4" }
  output: { type: "standard", count: 3, sides: 6, modifier: 4 }

2. Roll Dice

Rolls dice based on a dice roll configuration and returns the results.

dice_roll
  input: { type: "standard", count: 3, sides: 6, modifier: 4 }
  output: { rolls: [5, 2, 6], total: 17, original: "3d6+4" }

Installation and Setup

Using with Claude Desktop

Add this server to your Claude Desktop configuration:

json
{
  "mcpServers": {
    "dice": {
      "command": "npx",
      "args": ["-y", "server-dice-roll"]
    }
  }
}

Using with npm/npx

bash
# Install globally
npm install -g server-dice-roll

# Run the server
mcp-server-dice-roll

# Or run directly with npx
npx server-dice-roll

Understanding Dice Notation

Dice notation is a system used in tabletop role-playing games to represent different dice rolls.

Standard Notation

The standard format is NdS+M where:

  • N is the number of dice to roll (optional, defaults to 1)
  • d indicates a die roll
  • S is the number of sides on each die
  • +M is a modifier to add to the total (optional)

Examples:

  • d6 - Roll one 6-sided die
  • 2d10 - Roll two 10-sided dice and sum the results
  • 3d8+5 - Roll three 8-sided dice, sum the results, and add 5

Fate/Fudge Dice

Fate dice (also known as Fudge dice) are special 6-sided dice with values of -1, 0, and +1 (two sides each).

Format: NdF where:

  • N is the number of dice to roll
  • dF indicates Fate dice

Example:

  • 4dF - Roll four Fate dice (results in values between -4 and +4)

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Author

Created by Luke Bayliss hello@lukebayliss.com

Release Process

This project uses a single integrated workflow for versioning, releases, and publishing:

  1. Version Bump Labels: Each PR to the main branch should include exactly one version bump label:

    • patch - For backwards-compatible bug fixes
    • minor - For backwards-compatible new features
    • major - For breaking changes
    • If no label is specified, patch is applied by default
  2. Sequential Workflow: The integrated Release and Publish workflow consists of three sequential jobs:

    • Job 1: Version Bump - Updates version in package.json and creates a git tag
    • Job 2: Release Creation - Creates a GitHub release with changelog
    • Job 3: Publish - Publishes the package to npm
  3. Automated Triggers: The workflow runs automatically in these scenarios:

    • When a PR is merged to main (using the PR's version label)
    • When changes are pushed directly to main (using patch version)
    • When manually triggered via GitHub Actions
    • When a tag is manually pushed (skips version bump, only creates release and publishes)

All these steps run in a coordinated workflow with proper dependencies to ensure reliability.

PR Requirements

All PRs should include exactly one version bump label (patch, minor, or major). If no label is specified, the system will automatically add the patch label as the default. PRs with multiple version labels will still be blocked from merging.

Manual Versioning

To manually trigger a version bump without creating a PR:

  1. Go to Actions > Version Bump workflow
  2. Click "Run workflow"
  3. Select the branch and bump type (patch, minor, major)
  4. Click "Run workflow"

The rest of the process (creating release and publishing) will happen automatically.

Installatie

TypingMind
Vereisten:

Node.js 18+

{
  "mcpServers": {
    "dice": {
      "command": "npx",
      "args": [
        "-y",
        "server-dice-roll"
      ]
    }
  }
}

Beschikbare tools

  • parse_dice_roll_notation

    Parses dice roll notation

  • dice_roll

    Make a dice roll

Gebruik Dice Roller MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Dice Roller is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Dice Roller toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Dice Roller.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "dice-roller": {
      "command": "npx",
      "args": [
        "-y",
        "server-dice-roll"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Dice Roller in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Dice Roller in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Dice Roller gebruiken om me hiermee te helpen?
Dice Roller
Zeker. Ik heb het gelezen.
Dit vond ik met Dice Roller.

Veelgestelde vragen

Waarvoor wordt de MCP-server Dice Roller gebruikt?

Dice Roller is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Dice Roller MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Dice Roller gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Dice Roller MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Dice Roller verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Dice Roller MCP met TypingMind?

Dice Roller werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Dice Roller MCP in TypingMind?

Dice Roller biedt 2 MCP-tools die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Dice Roller MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Dice Roller authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇