mcpField
J
janken-mcp-server.js

janken-mcp-server.js

Local
github.com/Takashi-MatsumuraGames & Entertainment0Updated 79w ago

About 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

  1. 01MCP request and response format
  2. 02Random rock-paper-scissors selection
  3. 03CORS support

Use cases

  1. 01Request a random rock-paper-scissors hand
  2. 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.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

janken-mcp-server.js

じゃんけんMCPサーバーは、MCPプロトコルを使用して「じゃんけん」ゲームを提供するシンプルなHTTPサーバーです。

特徴

  • MCPプロトコルに基づいたリクエスト/レスポンス形式
  • ランダムな「グー」「チョキ」「パー」の選択を返す
  • CORS対応

インストール

  1. このリポジトリをクローンします:
    git clone <リポジトリURL>
    cd janken-mcp-server.js
    

使用方法

  1. サーバーを起動します:

    node janken-mcp-server.js
    
    
  2. サーバーはデフォルトでhttp://localhost:3000でリクエストを受け付けます。

  3. MCPプロトコルに準拠したPOSTリクエストを送信します。例: curl -X POST http://localhost:3000 -H "Content-Type: application/json" -d '{"query": "じゃんけん"}'

  4. サーバーからのレスポンス例: { "result": "グー", "metadata": { "choice": "グー" } }

Comments

Markdown supported

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.