A Model Context Protocol server that interfaces with PokeAPI to provide Pokémon information to LLM applications through JSON-RPC over stdio.
POKEAPI と連携し、MCP(Model Context Protocol)仕様でポケモン情報を取得できるサーバーです。
npm install
npx tsc
npx ts-node src/index.ts
MCP クライアントや LLM アプリから、標準入力/出力で JSON-RPC リクエストを送信します。
{ "jsonrpc": "2.0", "id": 1, "method": "list_tools" }
{ "jsonrpc": "2.0", "id": 1, "result": { "tools": [ { "name": "getPokemonInfo", "description": "ポケモン名またはIDから、POKEAPIでポケモン情報を取得します。", "input_schema": { ... }, "output_schema": { ... } } ] } }
{ "jsonrpc": "2.0", "id": 2, "method": "call_tool", "params": { "name": "getPokemonInfo", "arguments": { "nameOrId": "pikachu" } } }
{ "jsonrpc": "2.0", "id": 2, "result": { "content": [ { "type": "json", "data": { "name": "pikachu", "id": 25, "height": 4, "weight": 60, "types": ["electric"] } } ] } }
npm test
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!