@limeadelabs/launchpad-mcp 1.2.4 → 1.2.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.
Files changed (2) hide show
  1. package/dist/index.js +50 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -96,6 +96,12 @@ var LaunchPadClient = class {
96
96
  getPage(projectId, pageId) {
97
97
  return this.request("GET", `/projects/${projectId}/pages/${pageId}`);
98
98
  }
99
+ createPage(projectId, title, body) {
100
+ return this.request("POST", `/projects/${projectId}/pages`, { page: { title, body } });
101
+ }
102
+ updatePage(projectId, pageId, updates) {
103
+ return this.request("PATCH", `/projects/${projectId}/pages/${pageId}`, { page: updates });
104
+ }
99
105
  getWorkflow(projectId) {
100
106
  return this.request("GET", `/projects/${projectId}/workflow`);
101
107
  }
@@ -440,6 +446,44 @@ function registerPageTools(server2, client2) {
440
446
  }
441
447
  }
442
448
  );
449
+ server2.tool(
450
+ "lp_create_page",
451
+ "Create a new spec/doc page in a LaunchPad project",
452
+ {
453
+ project_id: z7.coerce.number().describe("Project ID"),
454
+ title: z7.string().describe("Page title"),
455
+ body: z7.string().describe("Page body (markdown)")
456
+ },
457
+ async (params) => {
458
+ try {
459
+ const result = await client2.createPage(params.project_id, params.title, params.body);
460
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
461
+ } catch (error) {
462
+ return handleError(error, client2.timeoutMs);
463
+ }
464
+ }
465
+ );
466
+ server2.tool(
467
+ "lp_update_page",
468
+ "Update an existing spec/doc page in a LaunchPad project",
469
+ {
470
+ project_id: z7.coerce.number().describe("Project ID"),
471
+ page_id: z7.coerce.number().describe("Page ID"),
472
+ title: z7.string().optional().describe("New page title (optional)"),
473
+ body: z7.string().optional().describe("New page body in markdown (optional)")
474
+ },
475
+ async (params) => {
476
+ try {
477
+ const updates = {};
478
+ if (params.title) updates.title = params.title;
479
+ if (params.body) updates.body = params.body;
480
+ const result = await client2.updatePage(params.project_id, params.page_id, updates);
481
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
482
+ } catch (error) {
483
+ return handleError(error, client2.timeoutMs);
484
+ }
485
+ }
486
+ );
443
487
  server2.tool(
444
488
  "lp_get_workflow",
445
489
  "Get valid workflow states and transitions for a project",
@@ -625,16 +669,19 @@ function registerSessionTools(server2, client2) {
625
669
  {
626
670
  session_id: z9.coerce.number().optional().describe("Session ID"),
627
671
  task_id: z9.coerce.number().optional().describe("Task ID to look up session from disk"),
628
- detail: z9.string().describe("Description of progress made")
672
+ message: z9.string().optional().describe("Progress message (use this)"),
673
+ detail: z9.string().optional().describe("Progress message (alias for message)")
629
674
  },
630
- async ({ session_id, task_id, detail }) => {
675
+ async ({ session_id, task_id, message, detail }) => {
631
676
  try {
632
677
  const resolvedId = session_id ?? (task_id !== void 0 ? getSessionId(task_id) : null);
633
678
  if (resolvedId === null) {
634
679
  return { content: [{ type: "text", text: "No active session found. Provide session_id or task_id." }] };
635
680
  }
681
+ const text = message ?? detail;
682
+ if (!text) return { content: [{ type: "text", text: "message or detail is required" }] };
636
683
  const result = await client2.updateSession(resolvedId, {
637
- activity: { action: "progress", detail }
684
+ activity: { action: "progress", detail: text }
638
685
  });
639
686
  return {
640
687
  content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limeadelabs/launchpad-mcp",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "LaunchPad MCP server for Claude Code — AI-native project management integration",
5
5
  "type": "module",
6
6
  "exports": {