@limeadelabs/launchpad-mcp 1.2.5 → 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 +44 -0
  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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limeadelabs/launchpad-mcp",
3
- "version": "1.2.5",
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": {