https://github.com/wai-imyen/tamagotchi-mcp-server
實作簡易的 Tamagotchi MCP Server,模擬電子雞遊戲
https://github.com/wai-imyen/tamagotchi-mcp-server
Last synced: 2 months ago
JSON representation
實作簡易的 Tamagotchi MCP Server,模擬電子雞遊戲
- Host: GitHub
- URL: https://github.com/wai-imyen/tamagotchi-mcp-server
- Owner: wai-imyen
- Created: 2025-03-28T16:45:58.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-28T18:47:08.000Z (8 months ago)
- Last Synced: 2025-03-28T19:39:10.483Z (8 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mcp-servers - **tamagotchi-mcp-server** - 實作簡易的 Tamagotchi MCP Server,模擬電子雞遊戲 `python` `mcp` `server` `go` `pip install git+https://github.com/wai-imyen/tamagotchi-mcp-server` (🤖 AI/ML)
- awesome-mcp-servers - **tamagotchi-mcp-server** - 實作簡易的 Tamagotchi MCP Server,模擬電子雞遊戲 `python` `mcp` `server` `go` `pip install git+https://github.com/wai-imyen/tamagotchi-mcp-server` (AI/ML)
README
# Tamagotchi MCP Server
實作一個簡易的 Tamagotchi MCP Server,模擬養電子雞的遊戲。
## Prerequisites
- Python 3.11
- uvicorn
## Setup
### 1. 建立虛擬環境
```bash
python3 -m venv tamagotchi-mcp-env
```
### 2. 使用虛擬環境
```bash
source tamagotchi-mcp-env/bin/activate
```
### 3. 安裝依賴套件
```bash
pip install -r requirements.txt
```
### 4. 啟動 FastAPI 伺服器
```bash
uvicorn tamagotchi:app --host 0.0.0.0 --port 8000
```
### 5. 配置 Claude Desktop
```json
{
"mcpServers": {
"tamagotchi-mcp-server": {
"command": "/path/to/your/tamagotchi-mcp-server/tamagotchi-mcp-env/bin/python3",
"args": ["/path/to/your/tamagotchi-mcp-server/server.py"]
}
}
}
```
## Usage
基本動作
- 「幫小雞取名字」
- 「查看小雞狀況」
- 「搖晃蛋」
- 「餵小雞吃飯」
- 「跟小雞玩」
- 「讓小雞休息」
- 「幫小雞洗澡」
- 「帶小雞看醫生」
- 「清理小雞的窩」
- 「重置遊戲」
## Implementation
[🔗 實作 MCP Server:以「電子雞養成遊戲」為例](https://wai-imyen.github.io/posts/tamagotchi-mcp-server/)