@ppdocs/mcp 2.6.29 → 2.6.30
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/tools/index.js +0 -12
- package/package.json +1 -1
package/dist/tools/index.js
CHANGED
|
@@ -241,18 +241,6 @@ export function registerTools(server, projectId, _user) {
|
|
|
241
241
|
const json = JSON.stringify(output, null, 2);
|
|
242
242
|
return wrap(`${json}\n\n💡 需要详细内容请使用 kg_read_node(nodeId) 获取节点详情\n🔍 搜索模式: ${mode}`);
|
|
243
243
|
});
|
|
244
|
-
// 5.5 列出所有标签
|
|
245
|
-
server.tool('kg_list_tags', '获取所有节点使用过的标签列表(去重)', {}, async () => {
|
|
246
|
-
const nodes = await storage.listNodes(projectId);
|
|
247
|
-
const tagSet = new Set();
|
|
248
|
-
for (const node of nodes) {
|
|
249
|
-
if (node.categories && Array.isArray(node.categories)) {
|
|
250
|
-
node.categories.forEach(cat => tagSet.add(cat));
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
const tags = Array.from(tagSet).sort();
|
|
254
|
-
return wrap(JSON.stringify({ total: tags.length, tags }, null, 2));
|
|
255
|
-
});
|
|
256
244
|
// 6. 路径查找
|
|
257
245
|
server.tool('kg_find_path', '查找两节点间的依赖路径', {
|
|
258
246
|
startId: z.string().describe('起点节点ID'),
|