flutter-skill-mcp 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,19 @@
|
|
|
11
11
|
|
|
12
12
|
## Quick Start
|
|
13
13
|
|
|
14
|
-
### 1. Install
|
|
14
|
+
### 1. Install
|
|
15
|
+
|
|
16
|
+
**⚡ 一键安装(推荐)**
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# macOS/Linux
|
|
20
|
+
curl -fsSL https://raw.githubusercontent.com/ai-dashboad/flutter-skill/main/install.sh | bash
|
|
21
|
+
|
|
22
|
+
# Windows PowerShell (管理员权限)
|
|
23
|
+
iwr https://raw.githubusercontent.com/ai-dashboad/flutter-skill/main/install.ps1 -useb | iex
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**或手动安装:**
|
|
15
27
|
|
|
16
28
|
```bash
|
|
17
29
|
# npm (recommended - includes native binary for instant startup)
|
|
@@ -25,7 +37,7 @@ brew install flutter-skill
|
|
|
25
37
|
scoop bucket add flutter-skill https://github.com/ai-dashboad/scoop-flutter-skill
|
|
26
38
|
scoop install flutter-skill
|
|
27
39
|
|
|
28
|
-
# Dart
|
|
40
|
+
# Dart (需要 Flutter SDK)
|
|
29
41
|
dart pub global activate flutter_skill
|
|
30
42
|
|
|
31
43
|
# IDE Extensions
|
|
@@ -33,6 +45,13 @@ dart pub global activate flutter_skill
|
|
|
33
45
|
# - IntelliJ/Android Studio: Search "Flutter Skill" in Plugins
|
|
34
46
|
```
|
|
35
47
|
|
|
48
|
+
**一键安装做了什么?**
|
|
49
|
+
- ✅ 自动检测最佳安装方法(npm > Homebrew/Scoop > 源码)
|
|
50
|
+
- ✅ 自动安装工具优先级规则到 `~/.claude/prompts/`
|
|
51
|
+
- ✅ 自动配置 PATH 环境变量
|
|
52
|
+
- ✅ 解决所有依赖和版本问题
|
|
53
|
+
- ✅ 跨平台支持(macOS, Linux, Windows)
|
|
54
|
+
|
|
36
55
|
### 2. Configure AI Agent
|
|
37
56
|
|
|
38
57
|
Add to your AI agent's MCP config:
|
|
@@ -61,7 +80,28 @@ Add to your AI agent's MCP config:
|
|
|
61
80
|
}
|
|
62
81
|
```
|
|
63
82
|
|
|
64
|
-
### 3.
|
|
83
|
+
### 3. Setup Tool Priority (Recommended for Claude Code)
|
|
84
|
+
|
|
85
|
+
**One command to ensure Claude always uses flutter-skill for Flutter testing:**
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
flutter_skill setup
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
This installs priority rules that ensure Claude Code ALWAYS uses flutter-skill instead of Dart MCP for Flutter testing, giving you 100% UI automation capability.
|
|
92
|
+
|
|
93
|
+
**What it does:**
|
|
94
|
+
- ✅ Installs rules to `~/.claude/prompts/`
|
|
95
|
+
- ✅ Claude Code automatically prioritizes flutter-skill for ALL Flutter testing
|
|
96
|
+
- ✅ Adds `--vm-service-port=50000` flag automatically (Flutter 3.x compatibility)
|
|
97
|
+
- ✅ No manual tool selection needed
|
|
98
|
+
|
|
99
|
+
**First-time run auto-reminder:**
|
|
100
|
+
When you run any `flutter_skill` command for the first time, you'll see a reminder if the rules aren't installed yet.
|
|
101
|
+
|
|
102
|
+
**See also:** [Tool Priority Setup Guide](docs/TOOL_PRIORITY_SETUP.md)
|
|
103
|
+
|
|
104
|
+
### 4. Use
|
|
65
105
|
|
|
66
106
|
```javascript
|
|
67
107
|
// Option 1: Launch app with environment variables
|