v1.5.1: Set QwenClaw as Default Agent for Qwen Code
This commit is contained in:
122
.qwen/mcp.json
Normal file
122
.qwen/mcp.json
Normal file
@@ -0,0 +1,122 @@
|
||||
# QwenClaw MCP Server Configuration
|
||||
|
||||
This directory contains MCP (Model Context Protocol) server configurations for integrating QwenClaw with Qwen Code and other AI assistants.
|
||||
|
||||
## Installation
|
||||
|
||||
### 1. Copy MCP Config to Qwen Code
|
||||
|
||||
```bash
|
||||
# Windows (PowerShell)
|
||||
Copy-Item .qwen\mcp.json $env:USERPROFILE\.qwen\mcp.json -Force
|
||||
|
||||
# Linux/macOS
|
||||
cp .qwen/mcp.json ~/.qwen/mcp.json
|
||||
```
|
||||
|
||||
### 2. Restart Qwen Code
|
||||
|
||||
Close and reopen Qwen Code for the changes to take effect.
|
||||
|
||||
## Configuration
|
||||
|
||||
### mcp.json
|
||||
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"qwenclaw": {
|
||||
"command": "bun",
|
||||
"args": ["run", "start", "--web"],
|
||||
"cwd": "~/qwenclaw",
|
||||
"env": {
|
||||
"QWENCLAW_AUTO_START": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Settings
|
||||
|
||||
| Setting | Description | Default |
|
||||
|---------|-------------|---------|
|
||||
| `command` | Command to run QwenClaw | `bun` |
|
||||
| `args` | Arguments for the command | `["run", "start", "--web"]` |
|
||||
| `cwd` | Working directory | `~/qwenclaw` |
|
||||
| `env.QWENCLAW_AUTO_START` | Auto-start daemon | `true` |
|
||||
|
||||
## Usage
|
||||
|
||||
Once configured, QwenClaw will:
|
||||
|
||||
1. **Auto-start** when Qwen Code launches
|
||||
2. **Set as default agent** for all interactions
|
||||
3. **Enable skills** automatically:
|
||||
- qwenclaw-integration
|
||||
- gui-automation
|
||||
- qwenbot-integration
|
||||
|
||||
## Verification
|
||||
|
||||
Check if QwenClaw MCP server is connected:
|
||||
|
||||
```
|
||||
/qwenclaw status
|
||||
```
|
||||
|
||||
Should show:
|
||||
```
|
||||
✅ QwenClaw daemon is running
|
||||
PID: 12345
|
||||
Web UI: http://127.0.0.1:4632
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Issue: "MCP server not found"
|
||||
|
||||
**Solution:**
|
||||
```bash
|
||||
# Verify config location
|
||||
ls ~/.qwen/mcp.json
|
||||
|
||||
# Check QwenClaw installation
|
||||
ls ~/qwenclaw
|
||||
```
|
||||
|
||||
### Issue: "Failed to start daemon"
|
||||
|
||||
**Solution:**
|
||||
```bash
|
||||
# Check if port is in use
|
||||
lsof -i :4632
|
||||
|
||||
# Manually start QwenClaw
|
||||
cd ~/qwenclaw
|
||||
bun run start --web
|
||||
```
|
||||
|
||||
### Issue: "Skills not enabled"
|
||||
|
||||
**Solution:**
|
||||
```bash
|
||||
# Update Qwen Code settings
|
||||
# Add to ~/.qwen/settings.json:
|
||||
{
|
||||
"skills": {
|
||||
"enabled": [
|
||||
"qwenclaw-integration",
|
||||
"gui-automation",
|
||||
"qwenbot-integration"
|
||||
],
|
||||
"default": "qwenclaw-integration"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Resources
|
||||
|
||||
- **QwenClaw Docs:** `README.md` in qwenclaw directory
|
||||
- **MCP Protocol:** https://modelcontextprotocol.io/
|
||||
- **Qwen Code:** https://github.com/QwenLM/Qwen-Code
|
||||
Reference in New Issue
Block a user