open-index/open-npm huggingface dataset:
npm package: @jmvilomet/dice-stats-mcp-server
Description: MCP server for dice rolling and probability calculations
Latest version: 1.0.0

# Dice Stats MCP Server

An MCP (Model Context Protocol) server that provides dice rolling and probability calculation tools for tabletop RPGs.

## Features

- Roll dice using standard dice notation (e.g., `2d6`, `1d20+5`, `3d6-2d4`)
- Calculate probability distributions for dice expressions
- Supports complex dice expressions with mathematical operations (+, -, *, /)

## Installation

### NPX (recommended)

The easiest way to use this tool is via NPX:

```bash
npx @jmvilomet/dice-stats-mcp-server
```

### Global Installation

You can also install it globally:

```bash
npm install -g @jmvilomet/dice-stats-mcp-server
```

Then run:

```bash
dice-stats-mcp-server
```

## Using with MCP Clients

To integrate this MCP server with your MCP client (such as Claude or GPT), add the following configuration to your client's MCP server list:

```json
{
  "mcpServers": {
    "dice-stats": {
      "command": "npx",
      "args": [
        "-y",
        "@jmvilomet/dice-stats-mcp-server"
      ]
    }
  }
}
```

## Tools

The MCP server provides the following tools:

### roll

Rolls dice according to the provided notation.

- Parameter: `notation` (string) - Dice notation to roll (e.g., `2d6`, `1d20+5`, `3d6-2d4`)
- Returns: The result of the dice roll

Example:
```
roll("3d6+2")
```

### stat

Calculates probability distribution for the provided dice notation.

- Parameter: `notation` (string) - Dice notation to analyze (e.g., `2d6`, `1d20+5`, `3d6-2d4`)
- Returns: The probability distribution for each possible outcome

Example:
```
stat("2d6")
```

## Dice Notation

The server supports the following dice notation:

- Basic dice: `NdS` (e.g., `1d6`, `2d10`, `3d4`)
- Modifiers: `NdS+M` or `NdS-M` (e.g., `1d20+5`, `3d6-2`)
- Multiple dice groups: `NdS+MdT` (e.g., `1d6+2d4`)
- Mathematical operations: +, -, *, / (e.g., `2d6*3`, `(1d8+2)/2`)

## Development

### Setup

```bash
git clone https://github.com/JMVilomet/dice-stats-mcp-server.git
cd dice-stats-mcp-server
npm install
```

### Build

```bash
npm run build
```

### Run Locally

```bash
npm start
```

## License

MIT
npm package: @jmvtrinidad/postcss-prefixer
Description: postcss plugin to prefix all css selector classes and ids
Latest version: 3.5.0

# postcss-prefixer
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

[PostCSS]: https://github.com/postcss/postcss
[PostCSS Usage]: https://github.com/postcss/postcss#usage

A [PostCSS] plugin to prefix css selectors.

````css
/* source css file */

#selector { /* content */ }

.selector { /* content */ }

.selector:hover { /* content */ }

.selector__element { /* content */ }
````

````css
/* output css file prefixed with "prfx__" */

#prfx__selector { /* content */ }

.prfx__selector { /* content */ }

.prfx__selector:hover { /* content */ }

.prfx__selector__element { /* content */ }
````

## Usage

`npm i -D postcss postcss-prefixer` or `yarn add -D postcss postcss-prefixer`

create a `postcss.config.js` with:
```js
module.exports = {
  plugins: [
    require('postcss-prefixer')({ /* options */ })
  ]
}
```

> Refer to [PostCSS Usage] on how to use it with your preferred build tool.

#### Example
```js
const postcss = require('postcss');
const prefixer = require('postcss-prefixer');

const input = fs.readFileSync('path/to/file.css',  'utf-8');

const output = postcss([
  prefixer({
        prefix: 'prefix-',
        ignore: [ /selector-/, '.ignore', '#ignore' ]
    })
]).process(input);
```

#### Options
| Name           | Description                                |
|------------------|--------------------------------------------|
|`prefix` (string) | prefix value to be used                    |
|`ignore` (array)  | list of selectors to ignore, accepts regex |


## Credits

 Plugin based on [postcss-class-prefix](https://github.com/thompsongl/postcss-class-prefix) create by [thompsongl](https://github.com/thompsongl).