DM

danwritecode/mcp-client-server-host-demo

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

39 stars 3 forks 품질 27 트렌드 12

MCP 서버, 클라이언트 및 호스트를 보여주는 빠른 포켓몬 데모

개요

Pokemon 데이터와 모델 Context Protocol (MCP) 통합을 보여주는 데모 프로젝트. 이 프로젝트는 다음을 포함합니다: - Pokemon 데이터 및 공격 기능을 제공하는 MCP 서버 - 서버와 상호 작용하는 MCP 클라이언트 - OpenRouter를 통해 Pokemon 도구를 사용하는 HTTP 서버 MCP 서버를 자동으로 실행하는 클라이언트를 실행: OpenRouter API 키를 설정하고 HTTP 서버를 실행: 그런 다음 서버에 액세스 http://localhost:3005: - /tools - 목록 가능한 도구 - /attack - LLM을 사용하여 임의 포켓몬 공격 실행 이 프로젝트는 Bun을 JavaScript 런타임으로 사용합니다.

개요(AI 번역)

Pokemon 데이터와 모델 Context Protocol (MCP) 통합을 보여주는 데모 프로젝트. 이 프로젝트는 다음을 포함합니다:

  • Pokemon 데이터 및 공격 기능을 제공하는 MCP 서버
  • 서버와 상호 작용하는 MCP 클라이언트
  • OpenRouter를 통해 Pokemon 도구를 사용하는 HTTP 서버

설치

프로젝트 실행

MCP 서버 및 클라이언트 데모

MCP 서버를 자동으로 실행하는 클라이언트를 실행:

HTTP Server 와 LLM 통합

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.

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →