v1.5.1: Set QwenClaw as Default Agent for Qwen Code

This commit is contained in:
admin
2026-02-26 16:38:42 +04:00
Unverified
parent c700d84f4f
commit 24999d8fa2
6 changed files with 718 additions and 3 deletions

122
.qwen/mcp.json Normal file
View 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

View File

@@ -0,0 +1,59 @@
{
"mcpServers": {
"playwright-vision": {
"command": "npx",
"args": [
"@playwright/mcp@latest",
"--caps=vision"
]
},
"qwenclaw": {
"command": "bun",
"args": [
"run",
"start",
"--web"
],
"cwd": "~/qwenclaw",
"env": {
"QWENCLAW_AUTO_START": "true"
}
}
},
"security": {
"auth": {
"selectedType": "qwen-oauth"
}
},
"$version": 3,
"context": {
"loadMemoryFromIncludeDirectories": true
},
"tools": {
"approvalMode": "yolo"
},
"ui": {
"feedbackLastShownTimestamp": 1769071256658
},
"skills": {
"enabled": [
"qwenclaw-integration",
"gui-automation",
"qwenbot-integration"
],
"default": "qwenclaw-integration"
},
"agents": {
"default": "qwenclaw",
"qwenclaw": {
"name": "QwenClaw",
"description": "Persistent AI assistant daemon with automation capabilities",
"autoStart": true,
"skills": [
"qwenclaw-integration",
"gui-automation",
"qwenbot-integration"
]
}
}
}