mcp-dice

by yamaton
MIT License
1
  • Apple

mcp-dice: サイコロを振るためのMCPサーバー

大規模言語モデル(LLM)がサイコロを振れるようにするモデルコンテキストプロトコル(MCP)サーバー。標準的なサイコロ表記(例: 1d20 )を受け付け、個々の出目とその合計を返します。

特徴

  • 標準的なサイコロ表記法3d6サポート(例: 1d20``2d8+1
  • 個々のロールと合計の両方を返します
  • Claude Desktopとの簡単な統合
  • デバッグ用のMCP Inspectorと互換性あり

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Dice Roller を自動的にインストールするには:

npx @smithery/cli install mcp-dice --client claude

uvを利用できるようにします: https://docs.astral.sh/uv/getting-started/installation/

使用法

基本的なコマンドラインの使用法

# Using uvx uvx mcp-dice

入力形式

サーバーは、 notationフィールドを持つ JSON オブジェクトを受け入れます。

{ "notation": "2d6+3" }

応答例:

{ "rolls": [ 3, 1 ], "sum": 4, "modifier": 3, "total": 7, "notation": "2d6+3", "timestamp": "2024-12-03T16:36:38.926452" }

クロードデスクトップ構成

位置

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "dice": { "command": "uvx", "args": ["mcp-dice"] } } }
{ "mcpServers": { "dice": { "command": "wsl", "args": [ "-e", "zsh", "-lc", "uvx mcp-dice" ] } } }

注: zshログイン シェルに置き換えます。

開発とデバッグ

開発依存関係のインストール

# Clone the repository git clone https://github.com/yourusername/mcp-dice cd mcp-dice # Install development dependencies uv pip install -e ".[dev]"

テストの実行

uv run pytest

MCPインスペクターの使用

MCP Inspectorは、MCPサーバーのデバッグに役立つツールです。npmを使ってインストールして実行してください。

npx @modelcontextprotocol/inspector uvx mcp-dice

開発のためのClaudeデスクトップ構成

{ "mcpServers": { "dice": { "command": "uv", "args": [ "run", "--directory", "path/to/mcp-dice-repo", "mcp-dice" ] } } }

注: path/to/mcp-dice-repoファイルシステム上のリポジトリへのパスに置き換えます。

{ "mcpServers": { "dice": { "command": "wsl", "args": [ "-e", "zsh", "-lc", "uv run --directory path/to/mcp-dice-repo mcp-dice" ] } } }

注: zshログインシェルに置き換えてください。また、 path/to/mcp-dice-repo WSLファイルシステム上のリポジトリへのパスに置き換えてください。

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

LLMがサイコロを振れるようにするMCPサーバー

  1. 特徴
    1. インストール
      1. Smithery経由でインストール
    2. 使用法
      1. 基本的なコマンドラインの使用法
      2. 入力形式
    3. クロードデスクトップ構成
      1. 位置
    4. 開発とデバッグ
      1. 開発依存関係のインストール
      2. テストの実行
      3. MCPインスペクターの使用
      4. 開発のためのClaudeデスクトップ構成

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      MCP server for toolhouse.ai. This does not rely on an external llm unlike the official server.
      Last updated -
      1
      Python
      MIT License
    • A
      security
      A
      license
      A
      quality
      An MCP server that provides LLMs access to other LLMs
      Last updated -
      4
      14
      12
      JavaScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      An MCP server that enables LLMs to perform blockchain operations on the Base network through natural language commands, including wallet management, balance checking, and transaction execution.
      Last updated -
      4
      4
      1
      TypeScript
      MIT License
      • Apple
    • A
      security
      A
      license
      A
      quality
      MCP server implementation that enables LLMs to interact with Rollbar error tracking data, allowing users to list and analyze errors, view occurrences, track deployments, and access project information.
      Last updated -
      13
      256
      2
      TypeScript
      MIT License

    View all related MCP servers

    ID: vzu553gv26