@blueking/bkui-knowledge 0.0.1-beta.11 → 0.0.1-beta.12
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 +26 -8
- package/bin/bkui-knowledge.js +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
## 快速开始
|
|
10
10
|
|
|
11
|
-
只需添加 MCP
|
|
11
|
+
只需添加 MCP 服务配置(通过 `--ide` 参数指定目标 IDE,不指定时默认使用 Cursor):
|
|
12
12
|
|
|
13
13
|
### Cursor(默认)
|
|
14
14
|
|
|
@@ -36,10 +36,29 @@
|
|
|
36
36
|
}
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
### Claude Code
|
|
40
|
+
|
|
41
|
+
> Claude Code 支持从 MCP initialize 请求自动获取项目路径,无需手动传入
|
|
42
|
+
|
|
43
|
+
在 Claude Code 的 MCP 配置文件(`~/.claude/.claude.json` 或项目根目录 `.mcp.json`)中添加:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"mcpServers": {
|
|
48
|
+
"bkui-knowledge": {
|
|
49
|
+
"command": "npx",
|
|
50
|
+
"args": ["-y", "@blueking/bkui-knowledge", "--ide=claude-code"]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
40
55
|
|
|
41
56
|
### 本地开发
|
|
42
57
|
|
|
58
|
+
- 必须传递项目路径,否则 skills 无法同步到正确位置
|
|
59
|
+
|
|
60
|
+
- 使用 CodeBuddy 或者 Claude Code 本地开发时,无需 `"${workspaceFolder}"` 参数
|
|
61
|
+
|
|
43
62
|
```json
|
|
44
63
|
{
|
|
45
64
|
"mcpServers": {
|
|
@@ -54,11 +73,9 @@
|
|
|
54
73
|
}
|
|
55
74
|
```
|
|
56
75
|
|
|
57
|
-
> ⚠️ 必须传递项目路径,否则 skills 无法同步到正确位置
|
|
58
|
-
|
|
59
76
|
**特性:**
|
|
60
77
|
|
|
61
|
-
- ✅ 支持 Cursor 和
|
|
78
|
+
- ✅ 支持 Cursor、CodeBuddy 和 Claude Code 三种 IDE
|
|
62
79
|
- ✅ 首次启动自动同步推荐 skills
|
|
63
80
|
- ✅ 自动生成规则文件(自动注入 AI 上下文)
|
|
64
81
|
- ✅ 自动检测版本更新,增量同步
|
|
@@ -81,6 +98,7 @@ MCP 服务启动时,skills 会自动同步到用户项目:
|
|
|
81
98
|
| ------------- | -------------------- | ------------------------------------ |
|
|
82
99
|
| Cursor (默认) | `.cursor/skills/` | `.cursor/.bkui-knowledge-version` |
|
|
83
100
|
| CodeBuddy | `.codebuddy/skills/` | `.codebuddy/.bkui-knowledge-version` |
|
|
101
|
+
| Claude Code | `.claude/skills/` | `.claude/.bkui-knowledge-version` |
|
|
84
102
|
|
|
85
103
|
**更新机制**:
|
|
86
104
|
|
|
@@ -404,11 +422,11 @@ A: 发布新版本 npm 包后,用户下次启动 IDE 时 `npx -y` 会自动拉
|
|
|
404
422
|
|
|
405
423
|
### Q: skills 没有同步成功?
|
|
406
424
|
|
|
407
|
-
A: 检查对应 IDE 的 skills 目录是否存在(Cursor: `.cursor/skills/`,CodeBuddy: `.codebuddy/skills/`),或查看 IDE 的 MCP 日志
|
|
425
|
+
A: 检查对应 IDE 的 skills 目录是否存在(Cursor: `.cursor/skills/`,CodeBuddy: `.codebuddy/skills/`,Claude Code: `.claude/skills/`),或查看 IDE 的 MCP 日志
|
|
408
426
|
|
|
409
|
-
### Q:
|
|
427
|
+
### Q: 如何切换到其他 IDE?
|
|
410
428
|
|
|
411
|
-
A: 在 MCP 配置的 args 中添加 `--ide=codebuddy` 参数
|
|
429
|
+
A: 在 MCP 配置的 args 中添加 `--ide=codebuddy` 或 `--ide=claude-code` 参数
|
|
412
430
|
|
|
413
431
|
---
|
|
414
432
|
|
package/bin/bkui-knowledge.js
CHANGED
|
File without changes
|