SM

shreyaskarnik/mcpet

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

13 stars 4 forks 品質 70 トレンド 9MIT

これは、仮想ペットシミュレーションシステムを実装するTypeScriptベースのモデルコンテキストプロトコル(MCP)サーバーです。 ペットケアや相互作用のためのツールを提供することで、コアMCPの概念を実証します.

概要

MCPet:AI時代の懐かしいバーチャルペット体験! このモデルコンテキストプロトコル(MCP)サーバーでは、あなたのケアに基づいて進化する独自のデジタルコンパニオンで、採用、育成、プレイすることができます。 それらを供給し、それらを掃除し、一緒にゲームを再生し、それらを赤ちゃんから大人まで成長を見てください。 ペットのステータスは、クラシックのタマゴットチのおもちゃと同じように、離れた場合でも時間とともに変化しますが、モデルコンテキストプロトコルを介して現代のAIによって供給されます。 今日、あなたのデジタル フレンドを採用します! 仮想ペットシミュレーションシステムを実装する TypeScript ベースの MCP サーバーです。 ペットケアや相互作用のためのツールを提供することで、コアMCPの概念を実証します.

概要(AI 翻訳)

MCPet:AI時代の懐かしいバーチャルペット体験! このモデルコンテキストプロトコル(MCP)サーバーでは、あなたのケアに基づいて進化する独自のデジタルコンパニオンで、採用、育成、プレイすることができます。 それらを供給し、それらを掃除し、一緒にゲームを再生し、それらを赤ちゃんから大人まで成長を見てください。 ペットのステータスは、クラシックのタマゴットチのおもちゃと同じように、離れた場合でも時間とともに変化しますが、モデルコンテキストプロトコルを介して現代のAIによって供給されます。 今日、あなたのデジタル フレンドを採用します!

仮想ペットシミュレーションシステムを実装する TypeScript ベースの MCP サーバーです。 ペットケアや相互作用のためのツールを提供することで、コアMCPの概念を実証します。

##特徴

###仮想ペットタイプ

  • 4つのペットタイプから選ぶ:
  • 猫 - わずかに気分がよく、愛らしい
  • 犬 - 麻痺して、いつも喜んであなたを見る
  • ドラゴン - ユニークで激しい個性
  • エイリアン - 神秘的で好奇心

ペットライフサイクル

  • ペットを4つのステージで進化させましょう。
  • 赤ちゃん - 小さくて脆弱
  • 子供 - 成長と遊び心
  • ティーン - エネルギッシュで開発
  • 大人 - 十分に成長し、賢く

統計管理

  • 5つのキーのstatsを管理することによってあなたのペットのための心配:
  • ハンガー - あなたのペットをよく供給保つ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCPet

MCPet: A nostalgic virtual pet experience for the AI age! This Model Context Protocol (MCP) server lets you adopt, nurture, and play with your very own digital companion that evolves based on your care. Feed them, clean them, play games together, and watch them grow from a baby to an adult. Your pet’s stats change over time even when you’re away - just like the classic Tamagotchi toys, but powered by modern AI through the Model Context Protocol. Adopt your digital friend today!

This is a TypeScript-based MCP server that implements a virtual pet simulation system. It demonstrates core MCP concepts by providing tools for pet care and interaction.

Features

Virtual Pet Types

  • Choose from four pet types:
    • Cat - Slightly moody but lovable
    • Dog - Energetic and always happy to see you
    • Dragon - Unique and fiery personality
    • Alien - Mysterious and curious

Pet Lifecycle

  • Watch your pet evolve through four stages:
    • Baby - Small and vulnerable
    • Child - Growing and playful
    • Teen - Energetic and developing
    • Adult - Fully grown and wise

Stats Management

  • Care for your pet by managing five key stats:
    • Hunger - Keep your pet well-fed
    • Happiness - Play with your pet to keep them happy
    • Health - Overall wellbeing affected by other stats
    • Energy - Depletes with activity, replenishes with rest
    • Cleanliness - Regular baths keep your pet fresh

Tools

  • create_pet - Adopt a new pet with a custom name and type
  • check_pet - View your pet’s current status and stats
  • feed_pet - Feed your pet with different food options:
    • Snack - Small hunger boost
    • Meal - Balanced nutrition
    • Feast - Maximum feeding (but can be unhealthy)
  • play_with_pet - Play different games:
    • Ball - Light exercise
    • Chase - High energy fun
    • Puzzle - Mental stimulation
  • clean_pet - Give your pet a bath to restore cleanliness
  • put_to_bed - Let your pet sleep to restore energy

Animations

  • Dynamic ASCII art animations for each pet type and activity
  • Randomized frames create a lively and engaging experience
  • Special animations for:
    • Eating different foods
    • Playing various games
    • Bathing
    • Sleeping
    • Being sick
    • And more!

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

Installing via Smithery

To install MCPet for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @shreyaskarnik/mcpet --client claude

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

GitHub で README 全文を見る

インストール

npx -y @smithery/cli install @shreyaskarnik/mcpet --client claude
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mcpet": { "command": "node", "args": ["/path/to/mcpet/build/index.js"], "env": { "PET_DATA_DIR": "/path/to/writable/directory" } } } }