janken-mcp-server.js
LocalAbout janken-mcp-server.js
janken-mcp-server.js is a simple HTTP server that offers rock-paper-scissors through the MCP protocol. It returns a randomly selected hand and supports CORS.
Key features
- 01MCP request and response format
- 02Random rock-paper-scissors selection
- 03CORS support
Use cases
- 01Request a random rock-paper-scissors hand
- 02Use the game service from a CORS-enabled client
MCP support
The server accepts MCP-protocol requests over HTTP and returns a randomly selected rock-paper-scissors hand.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEjanken-mcp-server.js
じゃんけんMCPサーバーは、MCPプロトコルを使用して「じゃんけん」ゲームを提供するシンプルなHTTPサーバーです。
特徴
- MCPプロトコルに基づいたリクエスト/レスポンス形式
- ランダムな「グー」「チョキ」「パー」の選択を返す
- CORS対応
インストール
- このリポジトリをクローンします:
git clone <リポジトリURL> cd janken-mcp-server.js
使用方法
-
サーバーを起動します:
node janken-mcp-server.js -
サーバーはデフォルトでhttp://localhost:3000でリクエストを受け付けます。
-
MCPプロトコルに準拠したPOSTリクエストを送信します。例: curl -X POST http://localhost:3000 -H "Content-Type: application/json" -d '{"query": "じゃんけん"}'
-
サーバーからのレスポンス例: { "result": "グー", "metadata": { "choice": "グー" } }
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.