
danwritecode/mcp-client-server-host-demo
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCPサーバー、クライアント、ホストを披露するための迅速なポケモンデモ
概要
ポケモンデータとモデルコンテキストプロトコル(MCP)の統合を示すデモプロジェクト。 このプロジェクトには以下が含まれます。 - ポケモンのデータと攻撃機能を提供するMCPサーバー - サーバーと相互作用するMCPクライアント - LLMがOpenRouterを介してポケモンツールを使用することを可能にするHTTPサーバー MCP サーバーを自動的に起動するクライアントを実行します。 OpenRouter API キーを設定し、HTTP サーバーを実行します。 [http://localhost:3005: - /tools - 利用可能なツールのリスト - /attack - LLMを使用してランダムポケモン攻撃を実行します このプロジェクトでは、Ban を JavaScript ランタイムとして使用しています.
概要(AI 翻訳)
ポケモンデータとモデルコンテキストプロトコル(MCP)の統合を示すデモプロジェクト。 このプロジェクトには以下が含まれます。
- ポケモンのデータと攻撃機能を提供するMCPサーバー
- サーバーと連携するMCPクライアント
- LLM が OpenRouter 経由でポケモンツールを使用することを可能にする HTTP サーバ
インストール
プロジェクトの実行
##MCPサーバーとクライアントデモ MCP サーバーを自動的に起動するクライアントを実行します。
LLMインテグレーションの###HTTPサーバー OpenRouter API キーを設定し、HTTP サーバーを実行します。
[http://localhost:3005: でサーバーにアクセスします。
- [
/tools- 利用可能なツールのリスト - [
/attack- LLMを使用してランダムなポケモン攻撃を実行
このプロジェクトでは、Ban を JavaScript ランタイムとして使用しています.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
Pokemon MCP Demo
A demo project showcasing the Model Context Protocol (MCP) integration with Pokemon data. This project includes:
- An MCP server that provides Pokemon data and attack capabilities
- An MCP client that interacts with the server
- An HTTP server that allows LLMs to use Pokemon tools via OpenRouter
Installation
bun install
Running the Project
MCP Server and Client Demo
Run the client which automatically launches the MCP server:
bun mcp_client.ts
HTTP Server with LLM Integration
Set your OpenRouter API key and run the HTTP server:
export OPENROUTER_API_KEY=your_api_key_here
bun http_server.ts
Then access the server at http://localhost:3005:
/tools- List available tools/attack- Execute a random Pokemon attack using LLM
This project uses Bun as its JavaScript runtime.
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →