# Quick Setup Guide
## For Phoenix
### 1. Verify Build ✅
```bash
cd ~/openclaw-mcp-server
ls dist/
# Should see: index.js, index.d.ts, etc.
```
### 2. Test Locally (Optional)
```bash
# Quick test
cd ~/openclaw-mcp-server
node dist/index.js
# Should see: "OpenClaw MCP Server started" in stderr
# Press Ctrl+C to exit
```
### 3. Add to Cursor
**File to edit:**
```
~/Library/Application Support/Cursor/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
```
**Add this config:**
```json
{
"mcpServers": {
"openclaw": {
"command": "node",
"args": ["/root/openclaw-mcp-server/dist/index.js"],
"env": {
"OPENCLAW_GATEWAY_URL": "ws://localhost:18789",
"OPENCLAW_AGENT": "phoenix"
}
}
}
}
```
**Important:** Use the FULL PATH. Check with:
```bash
echo "$HOME/openclaw-mcp-server/dist/index.js"
```
### 4. Restart Cursor
Close and reopen Cursor completely.
### 5. Test in Cursor
Open Cursor chat and try:
```
Use openclaw to ask: "Hello, are you there?"
```
Should see Tron's response!
## Troubleshooting
### MCP server not showing up in Cursor
1. **Check path is absolute:**
```bash
realpath ~/openclaw-mcp-server/dist/index.js
```
Use that full path in config
2. **Check file exists:**
```bash
ls -la ~/openclaw-mcp-server/dist/index.js
```
3. **Check Node.js version:**
```bash
node --version
# Should be v20+
```
4. **Test manually:**
```bash
cd ~/openclaw-mcp-server
node dist/index.js
# Should start without errors
```
5. **Check Cursor logs:**
- In Cursor: Help → Show Logs
- Look for MCP-related errors
### Commands not working
1. **Verify OpenClaw CLI:**
```bash
openclaw status
openclaw sessions list
```
2. **Check Gateway:**
```bash
openclaw gateway status
```
3. **Test direct CLI:**
```bash
tron-delegate "test message"
```
## Usage Examples
Once working in Cursor:
### Quick Check
```
Use openclaw to check Datadog alerts
```
### Background Task
```
Use openclaw to spawn a task: "Monitor the coder namespace for 30 minutes, alert if any pods crash"
```
### See What Tron's Doing
```
Use openclaw to list active sessions
```
## Next Steps
Once working:
1. Test delegation workflow
2. Try background tasks
3. Integrate into coding workflow
4. Iterate on what's useful
---
**Need help?** Just ask me (Tron) in Slack! 🤖