
mcp-janken-server
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ファイルを参照してください。
相关推荐
🧑🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.
🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.
⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
This repository is for development of the Azure MCP Server, bringing the power of Azure to your agents.
This project was created to demonstrate how we can connect with different Model Context Protocols (MCPs).
Reviews

user_kinyG6qk
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!

user_Ocn9fhvN
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!

user_rsjXHj6Z
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.

user_z9jyQOGK
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!

user_KK052aBQ
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!

user_pGgW8vSU
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.

user_vwMKLfum
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!

user_Pr0iMwgp
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!