
一个快速的宝可梦演示,展示MCP服务器、客户端和主机
概览
一个演示项目展示了模型上下文协议(MCP)与宝可梦数据的集成。该项目包括: - 提供宝可梦数据和攻击能力的MCP服务器- 与服务器交互的MCP客户端- 允许LLM通过OpenRouter使用宝可梦工具的HTTP服务器 运行客户端,自动启动MCP服务器: 设置你的OpenRouter API密钥并运行HTTP服务器: 然后访问服务器 http://localhost:3005: - /tools - 列出可用工具 - /attack - 使用LLM执行随机宝可梦攻击 该项目使用 Bun 作为其 JavaScript 运行时。
概述(AI 翻译)
一个演示项目展示了模型上下文协议(MCP)与宝可梦数据的集成。该项目包括:
- 一个提供宝可梦数据和攻击能力的MCP服务器
- 与服务器交互的MCP客户端
- 一个HTTP服务器,允许LLM通过OpenRouter使用宝可梦工具
安装
项目的运行
MCP 服务器和客户端演示
运行客户端,自动启动MCP服务器:
带有LLM集成的HTTP服务器
设置你的OpenRouter API密钥并运行HTTP服务器:
然后访问服务器 http://localhost:3005:
/tools- 列出可用工具/attack- 使用LLM执行随机宝可梦攻击
该项目使用 Bun 作为其 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 新手?先看 mcpskill.org 教程 →