MCP cover image
See in Github
2025-04-14

0

Github Watches

0

Github Forks

0

Github Stars

じゃんけんMCPサーバー

Model Context Protocol(MCP)に対応したじゃんけんゲームを提供するサーバーです。このサーバーを使うと、LLMはじゃんけん(グー・チョキ・パー)で遊んだり、ランダムな手を取得したりすることができます。

コンポーネント

ツール

  • play

    • じゃんけんをプレイする
    • 入力: hand (string): プレイヤーの手("グー"、"チョキ"、"パー"のいずれか)
    • AIがランダムな手を選び、じゃんけんの結果を返します
  • random

    • AIがランダムな手を出す
    • 入力: なし
    • AIがランダムに選んだ手("グー"、"チョキ"、"パー"のいずれか)を返します

リソース

  • じゃんけんのルール (janken://rules)
    • じゃんけんのルールを説明するテキスト

設定

Claude Desktopでの使用

Claude Desktopアプリでこのサーバーを使用するには、claude_desktop_config.jsonの「mcpServers」セクションに以下の設定を追加してください:

{
  "mcpServers": {
    "janken": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-janken-server"
      ]
    }
  }
}

NPXでの直接実行

npx mcp-janken-server

VS Codeでの使用

VS Codeでこのサーバーを使用するには、ユーザー設定(JSON)ファイルに以下のJSONブロックを追加します。これはCtrl + Shift + Pを押してPreferences: Open User Settings (JSON)と入力することで行えます。

オプションで、.vscode/mcp.jsonという名前のファイルに追加することもできます。これにより、設定を他の人と共有できます。

{
  "mcp": {
    "servers": {
      "janken": {
        "command": "npx",
        "args": [
          "-y",
          "mcp-janken-server"
        ]
      }
    }
  }
}

ビルドと開発

# 依存関係をインストール
npm install

# TypeScriptをコンパイル
npm run build

# 開発モード(ファイル変更を監視)
npm run dev

# サーバーを実行
npm run start

プロジェクト構造

mcp-janken-server/
├── src/
│   ├── index.ts      - サーバー初期化と起動
│   ├── handlers.ts   - MCPリクエストハンドラ
│   ├── game.ts       - じゃんけんゲームロジック
│   └── types.ts      - 型定義と定数
├── index.ts          - エントリーポイント
├── package.json      - プロジェクト設定
└── tsconfig.json     - TypeScript設定

ライセンス

このMCPサーバーはMITライセンスの下で提供されています。これは、MITライセンスの条件に従って、ソフトウェアを自由に使用、変更、および配布できることを意味します。詳細については、プロジェクトリポジトリのLICENSEファイルを参照してください。

相关推荐

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • Matthieu Savioux
  • Evaluates language quality of texts, responds with a numerical score between 50-150.

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • seabiscuit.ai
  • Discover A More Robust Business: Craft tailored value proposition statements, develop a comprehensive business model canvas, conduct detailed PESTLE analysis, and gain strategic insights on enhancing business model elements like scalability, cost structure, and market competition strategies. (v1.18)

  • Carl Oscar Aaro
  • Structured recipes for food and desserts – ingredient lists and step-by-step recipe instructions from any input. Become surprised, try something new or breathe life into grandma's old recipe notebook.

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Azure
  • 该存储库用于开发Azure MCP服务器,将Azure的功能带给您的代理商。

  • langgenius
  • alibaba
  • caio-moliveira
  • 创建该项目是为了证明我们如何与不同的模型上下文协议(MCP)连接。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

    Reviews

    2.9 (8)
    Avatar
    user_kinyG6qk
    2025-04-23

    As a loyal user of MCP applications, I highly recommend the mcp-janken-server by Takashi-Matsumura. This server is efficient and reliable for creating rock-paper-scissors (janken) games. The setup is straightforward, and the server performs excellently under various conditions. It's a must-have for anyone looking to integrate janken gameplay into their applications!

    Avatar
    user_Ocn9fhvN
    2025-04-23

    As a dedicated user of mcp applications, I can confidently say that the mcp-janken-server by Takashi-Matsumura has exceeded my expectations. The server is responsive, reliable, and easy to integrate into any existing system. It offers a seamless experience for implementing Janken (rock-paper-scissors) functionalities. Highly recommend this for developers looking to add a fun and interactive feature to their projects!

    Avatar
    user_rsjXHj6Z
    2025-04-23

    The mcp-janken-server by Takashi-Matsumura is an outstanding product! It's well-crafted and functions seamlessly for playing "janken" (rock-paper-scissors). The interface is intuitive and user-friendly, which makes it a breeze to use. Kudos to the developer for creating such a reliable and fun server application! Highly recommended for anyone looking to implement janken in their projects.

    Avatar
    user_z9jyQOGK
    2025-04-23

    I've been using the mcp-janken-server by Takashi-Matsumura and it has exceeded my expectations. The server is incredibly reliable and the implementation is seamless. The user experience is top-notch and it integrates perfectly with my existing setups. Highly recommend this for anyone looking for a robust janken server solution!

    Avatar
    user_KK052aBQ
    2025-04-23

    As a loyal user of the mcp-janken-server by Takashi-Matsumura, I must say it’s an amazing tool for implementing rock-paper-scissors game servers. It's incredibly user-friendly and efficient, making it ideal for developers who want to integrate this classic game into their apps. Highly recommend it for its reliability and seamless performance!

    Avatar
    user_pGgW8vSU
    2025-04-23

    I've been using the mcp-janken-server by Takashi Matsumura and it's been a game-changer for my projects. The server is incredibly reliable and easy to integrate. I appreciate the clean and well-documented code, which makes customization straightforward. As a loyal mcp application user, I highly recommend this tool for anyone looking to enhance their server capabilities.

    Avatar
    user_vwMKLfum
    2025-04-23

    I've been using the mcp-janken-server by Takashi-Matsumura, and it has greatly simplified my game server management. The interface is user-friendly, and the server is extremely reliable. Top-notch support from the author makes it even better. Highly recommended for robust, efficient game server solutions!

    Avatar
    user_Pr0iMwgp
    2025-04-23

    As a dedicated user of mcp applications, I must say that the mcp-janken-server by Takashi-Matsumura is an exceptional product. It delivers on its promises with seamless integration and a user-friendly experience. The server's performance is top-notch, and it's clear that a lot of thought went into its design. The welcoming information is also a nice touch, making the initial setup intuitive. Highly recommended for any enthusiast looking for a robust janken server solution!