0.1.0 • Published 7 months ago

@toshiro333333/dice-server v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

🎲 Dice Server for MCP

Model Context Protocol(MCP)用のサイコロサーバーです。

🌟 特徴

  • 2 面から 100 面までのサイコロをサポート
  • 1 回で最大 10 個まで同時に振ることが可能
  • 結果の合計値も自動計算

🚀 インストール

npm install @tokur/dice-server

💡 使用方法

MCP サーバーとして使用

  1. MCP の設定ファイルに以下を追加:
{
  "mcpServers": {
    "dice": {
      "command": "dice-server"
    }
  }
}
  1. サーバーが提供するツール:
  • roll_dice: サイコロを振るツール
    • パラメータ:
      • sides: サイコロの面数(2-100)
      • count: 振る個数(1-10、省略可能、デフォルト 1)

🛠️ 開発環境のセットアップ

git clone https://github.com/tokur/dice-server.git
cd dice-server
npm install
npm run build

📝 ライセンス

MIT

👥 コントリビューション

  1. このリポジトリをフォーク
  2. 新しいブランチを作成 (git checkout -b feature/amazing-feature)
  3. 変更をコミット (git commit -m '✨ feat: 素晴らしい機能を追加')
  4. ブランチにプッシュ (git push origin feature/amazing-feature)
  5. プルリクエストを作成

🔍 使用例

// MCPツールの使用例
const result = await useMcpTool("dice", "roll_dice", {
  sides: 6,
  count: 2,
});
// 結果例: 🎲 6面ダイスを2個振りました:
// 結果:[3, 5]
// 合計:8