Cover image
Try Now
2025-04-14

3 years

Works with Finder

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ファイルを参照してください。

相关推荐

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • rulego
  • ⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.

  • Byaidu
  • Traducción de papel científico en PDF con formatos preservados - 基于 Ai 完整保留排版的 PDF 文档全文双语翻译 , 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 支持 等服务 等服务 等服务 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 提供 cli/mcp/docker/zotero

  • n8n-io
  • Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.

  • sigoden
  • Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.

  • hkr04
  • SDK liviano C ++ MCP (Protocolo de contexto del modelo)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Trapo conversacional local con contenedores configurables

    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!