@uni-helper/mcp 0.0.5 → 0.0.6

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/dist/package.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.0.5";
2
+ var version = "0.0.6";
3
3
 
4
4
  //#endregion
5
5
  export { version };
@@ -11,10 +11,13 @@ async function createMcpServer() {
11
11
  });
12
12
  server.registerTool("search-docs-by-Uniapp-official", {
13
13
  title: "搜索 Uniapp 官方文档",
14
- description: "在 Uniapp 文档知识库中进行搜索,可查找相关信息、代码示例、API参考文档和操作指南。当您需要解答关于Uniapp文档的问题、查找特定文档内容、了解功能运作原理或定位实现细节时,可使用此工具。搜索结果将返回带有标题的上下文相关内容,并附有直达文档页面的链接。",
15
- inputSchema: { query: z.string().describe("用于搜索内容的查询语句") }
16
- }, async ({ query }) => {
17
- return { content: (await (await loadVectorStore("uniapp")).similaritySearch(query, 3)).map((doc) => ({
14
+ description: "在 Uniapp 文档知识库中进行搜索,可查找相关信息、代码示例、API参考文档和操作指南。当您需要解答关于Uniapp文档的问题、查找特定文档内容、了解功能运作原理或定位实现细节时,可使用此工具。使用此工具前,请对用户的原始查询进行智能改写和优化,将口语化或模糊的表述转换为技术术语和关键词,以最大化检索到相关的有用数据。搜索结果将返回带有标题的上下文相关内容,并附有直达文档页面的链接。",
15
+ inputSchema: {
16
+ query: z.string().describe("用于搜索内容的查询语句"),
17
+ k: z.number().int().min(1).default(3).describe("返回的结果数量,默认值为3")
18
+ }
19
+ }, async ({ query, k = 3 }) => {
20
+ return { content: (await (await loadVectorStore("uniapp")).similaritySearch(query, k)).map((doc) => ({
18
21
  type: "text",
19
22
  text: JSON.stringify(doc)
20
23
  })) };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uni-helper/mcp",
3
3
  "type": "module",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "description": "为uniapp提供ai开发体验",
6
6
  "author": "FliPPeDround <flippedround@qq.com>",
7
7
  "license": "MIT",
@@ -43,15 +43,8 @@
43
43
  "@lancedb/lancedb": "0.22.3",
44
44
  "@langchain/community": "^1.1.4",
45
45
  "@modelcontextprotocol/sdk": "^1.25.2",
46
- "cac": "^6.7.14",
47
- "commander": "^14.0.2",
48
46
  "consola": "^3.2.3",
49
- "fs-extra": "^11.3.3",
50
47
  "langchain": "^1.2.8",
51
- "local-pkg": "^1.1.2",
52
- "minimist": "^1.2.8",
53
- "open": "^11.0.0",
54
- "pathe": "^2.0.3",
55
48
  "which": "^6.0.0",
56
49
  "zod": "^4.3.5"
57
50
  },
@@ -63,20 +56,15 @@
63
56
  "@langchain/textsplitters": "^1.0.1",
64
57
  "@modelcontextprotocol/inspector": "^0.18.0",
65
58
  "@types/debug": "^4.1.12",
66
- "@types/fs-extra": "^11.0.4",
67
- "@types/minimist": "^1.2.5",
68
59
  "@types/node": "^25.0.8",
69
60
  "@types/turndown": "^5.0.6",
70
- "ansis": "^4.2.0",
71
61
  "bumpp": "^10.4.0",
72
62
  "cheerio": "^1.1.2",
73
63
  "debug": "^4.4.3",
74
64
  "eslint": "^9.39.2",
75
65
  "lint-staged": "^16.2.7",
76
66
  "simple-git-hooks": "^2.13.1",
77
- "tinyexec": "^1.0.2",
78
67
  "tsdown": "^0.20.0-beta.3",
79
- "tsx": "^4.21.0",
80
68
  "turndown": "^7.2.2",
81
69
  "typescript": "^5.9.3",
82
70
  "vitest": "^4.0.17",