MCP.so
ログイン

Pokemon MCP Demo

@danwritecode

基本情報

カテゴリ

その他

トランスポート

stdio

作者

danwritecode

Pokemon MCP Demo について

A quick pokemon demo to showcase MCP server, client, and host

Pokemon MCP Demo の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-client-server-host-demo": {
      "command": "bun",
      "args": [
        "mcp_client.ts"
      ]
    }
  }
}

Pokemon MCP Demo のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Pokemon MCP Demo?

Pokemon MCP Demo is a demonstration project that implements the Model Context Protocol (MCP) to provide Pokemon data and attack capabilities. It includes an MCP server and client, plus an HTTP server that allows LLMs to interact with Pokemon tools via OpenRouter. The project is built with Bun and is intended for developers exploring MCP integrations.

How to use Pokemon MCP Demo?

Install dependencies with bun install. To run the MCP server and client demo, execute bun mcp_client.ts. To use the HTTP server with LLM integration, set the OPENROUTER_API_KEY environment variable and run bun http_server.ts, then access http://localhost:3005 for the /tools and /attack endpoints.

Key features of Pokemon MCP Demo

  • MCP server providing Pokemon data and attack capabilities
  • MCP client that interacts with the server
  • HTTP server that exposes tools via OpenRouter API
  • Endpoints for listing tools (/tools) and executing random attacks (/attack)
  • Built using Bun as the JavaScript runtime

Use cases of Pokemon MCP Demo

  • Learning how to build and test MCP servers and clients
  • Demonstrating tool integration between a language model and Pokemon data
  • Experimenting with LLM-driven random Pokemon attacks via an HTTP API

よくある質問

1

What dependencies does Pokemon MCP Demo require?

The project requires Bun as its JavaScript runtime. No other dependencies are explicitly listed beyond the `bun install` command.

2

How do I run the MCP server and client demo?

Run the client with `bun mcp_client.ts`, which automatically launches the MCP server.

3

How do I use the HTTP server with an LLM?

Set the environment variable `OPENROUTER_API_KEY` to your key and run `bun http_server.ts`. The server starts on port 3005, providing `/tools` and `/attack` endpoints.

4

What transport does the MCP server use?

The README does not specify the transport protocol. It only mentions that the client launches the server automatically.

5

Can I run this without an API key?

Yes, the MCP server and client demo (`bun mcp_client.ts`) does not require an API key. The HTTP server with LLM integration requires an OpenRouter API key.

コメント

「その他」の他のコンテンツ