@ppdocs/mcp 3.2.15 → 3.2.16

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26,9 +26,11 @@ if (args.length > 0) {
26
26
  if (result === 'exit')
27
27
  process.exit(0);
28
28
  if (result === 'keep-alive') {
29
- // agent/webui 长驻模式,不继续执行 MCP Server
30
- // @ts-ignore: 阻止后续 main() 执行
31
- await new Promise(() => { }); // 永不 resolve,进程由 agent.ts 的 HTTP 服务保活
29
+ // webui 长驻模式,不继续执行 MCP Server
30
+ // 用 setInterval 保活,避免 Node.js 'unsettled top-level await' 警告
31
+ setInterval(() => { }, 1 << 30);
32
+ // @ts-ignore: 防止后续 main() 执行
33
+ await new Promise(() => { });
32
34
  }
33
35
  // result === false → 继续作为 MCP Server
34
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ppdocs/mcp",
3
- "version": "3.2.15",
3
+ "version": "3.2.16",
4
4
  "description": "ppdocs MCP Server - Knowledge Graph for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",