Files
gh-cskiro-claudex-claude-co…/skills/mcp-server-creator/workflow/phase-5-integration.md
2025-11-29 18:16:51 +08:00

61 lines
1.2 KiB
Markdown

# Phase 5: Claude Desktop Integration
**Purpose**: Configure server in Claude Desktop for immediate use
## Configuration Location
- **macOS/Linux**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
## TypeScript Configuration
```json
{
"mcpServers": {
"server-name": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-name/build/index.js"],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}
```
## Python Configuration
```json
{
"mcpServers": {
"server-name": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-server-name",
"run",
"main.py"
],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}
```
## Critical Requirements
-**Use ABSOLUTE paths** (not relative like `./` or `~/`)
- ✅ Run `npm run build` before testing (TypeScript)
- ✅ Completely restart Claude Desktop (Cmd+Q on macOS)
- ✅ Valid JSON syntax (check with `python -m json.tool`)
## Output
Complete Claude Desktop configuration with restart instructions
## Transition
Proceed to Phase 6 (Testing & Validation)