@hupan56/wlkj 3.4.3 → 3.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hupan56/wlkj",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "description": "AI Product R&D Workflow - PRD/Prototype/Search/Task/Report",
5
5
  "bin": {
6
6
  "wlkj": "bin/cli.js"
@@ -15,17 +15,20 @@ User input: $ARGUMENTS
15
15
  **所有知识查询走 MCP 工具(云平台),绝不跑 wlkj.py kg/context 等本地脚本。**
16
16
  本地 kg.duckdb 是空的(共识:全走平台)。跑本地脚本 = 空结果 = 浪费时间。
17
17
 
18
- **直接用这些 MCP 工具:**
19
-
20
- | 要什么 | 工具名 |
21
- |---|---|
22
- | 全上下文(代码+API+字段+PRD) | context_pack |
23
- | 代码搜索 | search_code |
24
- | 业务流程问答 | semantic_search |
25
- | 影响分析 | get_impact |
26
- | 功能画像 | feature_overview |
27
- | 表字段 | search_field |
28
- | 设计系统 | get_design_system |
18
+ **直接用这些 MCP 工具(工具名必须和下表完全一致):**
19
+
20
+ | 要什么 | 工具名 | 参数 |
21
+ |---|---|---|
22
+ | 全上下文(代码+API+字段+PRD) | context_pack | {keyword, platform} |
23
+ | 代码搜索 | search_code | {keyword, platform} |
24
+ | 语义检索(业务流程/概念) | rag_search | {query, top_k} |
25
+ | 全局业务流程问答 | graphrag_ask | {q, top_k} |
26
+ | 影响分析 | get_impact | {entity, depth} |
27
+ | 功能画像 | feature_profile | {feature} |
28
+ | 表字段搜索 | search_field | {field} |
29
+ | 真表结构 | schema_link | {concept} |
30
+ | 设计系统 | get_design_system | {platform} |
31
+ | 需求串联 | aggregate_requirement | {req_key} |
29
32
 
30
33
  > QoderWork: `mcp__qoder-knowledge-graph__<工具名>` 参数用JSON
31
34
  > Qoder IDE: `cap.mcp.call("<工具名>", {参数})`
@@ -18,9 +18,9 @@ User input: $ARGUMENTS
18
18
  |---|---|---|
19
19
  | 查代码在哪 | search_code | {keyword: "考勤", platform: "web"} |
20
20
  | 全上下文 | context_pack | {keyword: "车辆保养", platform: "app"} |
21
- | 业务流程 | semantic_search | {query: "保险流程"} |
21
+ | 业务流程 | rag_search | {query: "保险流程"} |
22
22
  | 改XX影响谁 | get_impact | {endpoint: "/asset"} |
23
- | 功能画像 | feature_overview | {feature: "资产管理"} |
23
+ | 功能画像 | feature_profile | {feature: "资产管理"} |
24
24
  | 字段在哪用 | search_field | {field: "plateNo"} |
25
25
  | 设计规范 | get_design_system | {platform: "web"} |
26
26
 
@@ -122,20 +122,20 @@ class KnowledgeGraphMCPServer(BaseMCPServer):
122
122
  # 本地工具 → 云平台工具映射(名称不同或参数不同)
123
123
  _TOOL_MAP = {
124
124
  "search_code": "search_code",
125
- "search_api": "search_code",
126
- "search_prd": "rag_search",
125
+ "search_api": "search_api",
126
+ "search_prd": "search_prd_semantic",
127
127
  "get_impact": "get_impact",
128
128
  "context_360": "context_360",
129
129
  "context_pack": "context_pack",
130
130
  "get_workflow": "business_trace",
131
131
  "multi_hop": "business_trace",
132
132
  "search_wiki": "rag_search",
133
- "search_field": "schema_link",
134
- "list_modules": "search_code",
135
- "coverage_matrix": "rag_search",
136
- "feature_overview": "evidence_chain",
137
- "table_impact": "get_impact",
138
- "fill_prototype": None, # 云平台无等价(本地原型模板)
133
+ "search_field": "search_field",
134
+ "list_modules": "get_modules",
135
+ "coverage_matrix": "impact_coverage",
136
+ "feature_overview": "feature_profile",
137
+ "table_impact": "table_impact",
138
+ "fill_prototype": None,
139
139
  "get_design_system": "get_design_system",
140
140
  "semantic_search": "rag_search",
141
141
  }