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
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

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

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

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

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

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

  • MarcusAdriano
  • estudando mcp usando a api do bacen ptax

    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!