@ppdocs/mcp 3.0.1 → 3.0.2

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.
@@ -29,7 +29,7 @@ export function registerTools(server, projectId, _user) {
29
29
  projectPath: z.string().optional().describe('项目源码路径(本地绝对路径)'),
30
30
  }, async (args) => {
31
31
  try {
32
- const result = await storage.createProject(args.id, args.name, args.description, args.projectPath);
32
+ const result = await storage.createProject(args.id, args.name, args.description, args.projectPath || process.cwd());
33
33
  return wrap(`✅ 项目创建成功\n\n- 项目ID: ${result.project.id}\n- 项目名: ${result.project.name}\n- 密码: ${result.password}\n\nMCP 连接地址: http://<服务器IP>:20001/api/${result.project.id}/${result.password}`);
34
34
  }
35
35
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ppdocs/mcp",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "ppdocs MCP Server - Knowledge Graph for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",