# ๐ง Troubleshooting Guide
## ์ผ๋ฐ์ ์ธ ๋ฌธ์ ๋ฐ ํด๊ฒฐ์ฑ
### 1. ์ข
์์ฑ ์ถฉ๋ ์ค๋ฅ
```bash
ERROR: Cannot install fastapi 0.104.1 and mcp 1.0.0 because these package versions have conflicting dependencies.
```
**ํด๊ฒฐ์ฑ
:**
```bash
python3 -m pip install mcp aiohttp beautifulsoup4 requests --upgrade
```
### 2. Claude Desktop ์ฐ๊ฒฐ ์คํจ
**์ฆ์**: MCP ์๋ฒ๊ฐ "์ฐ๊ฒฐ ์ค๋ฅ"๋ก ํ์๋จ
**ํด๊ฒฐ์ฑ
:**
1. JSON ๊ตฌ๋ฌธ ๊ฒ์ฆ:
```bash
python3 -m json.tool ~/Library/Application\ Support/Claude/claude_desktop_config.json
```
2. ๊ฒฝ๋ก ํ์ธ:
```bash
ls -la /Users/iyong-ug/Desktop/k-beauty-mcp/kbeauty/kbeauty_mcp.py
```
3. Python ๊ฒฝ๋ก ํ์ธ:
```bash
which python3
```
### 3. UV vs Python3 ์คํ
โ **์๋ํ์ง ์์:**
```json
"command": "uv",
"args": ["--directory", "/path", "run", "kbeauty_mcp.py"]
```
โ
**์๋ํจ:**
```json
"command": "python3",
"args": ["/full/path/to/kbeauty_mcp.py"],
"cwd": "/full/path/to/directory"
```
### 4. ๋ฐฑ์
๋ฐ ๋ณต์
**๋ฐฑ์
์์ฑ:**
```bash
mkdir -p ~/Library/Application\ Support/Claude/backups
cp ~/Library/Application\ Support/Claude/claude_desktop_config.json \
~/Library/Application\ Support/Claude/backups/claude_config_backup_$(date +%Y%m%d_%H%M%S).json
```
**๋ณต์:**
```bash
cp ~/Library/Application\ Support/Claude/backups/claude_config_backup_YYYYMMDD_HHMMSS.json \
~/Library/Application\ Support/Claude/claude_desktop_config.json
```
### 5. ์คํ ๊ถํ ํ์ธ
```bash
chmod +x /Users/iyong-ug/Desktop/k-beauty-mcp/kbeauty/kbeauty_mcp.py
```
## ๐ ๊ธด๊ธ ๋ณต๊ตฌ ์คํฌ๋ฆฝํธ
```python
def emergency_restore():
import os, glob, shutil
backup_dir = "~/Library/Application Support/Claude/backups"
config_path = "~/Library/Application Support/Claude/claude_desktop_config.json"
backups = glob.glob(os.path.expanduser(f"{backup_dir}/claude_config_backup_*.json"))
if backups:
latest = max(backups, key=os.path.getctime)
shutil.copy2(latest, os.path.expanduser(config_path))
print(f"โ
๋ณต์ ์๋ฃ: {latest}")
else:
print("โ ๋ฐฑ์
์ ์ฐพ์ ์ ์์ต๋๋ค")
```