@shortcut/mcp 0.4.0 → 0.4.1

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 +16 -19
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21325,7 +21325,7 @@ var import_client = __toESM(require_lib(), 1);
21325
21325
 
21326
21326
  // package.json
21327
21327
  var name = "@shortcut/mcp";
21328
- var version = "0.4.0";
21328
+ var version = "0.4.1";
21329
21329
 
21330
21330
  // src/tools/base.ts
21331
21331
  class BaseTools {
@@ -21465,8 +21465,9 @@ class EpicTools extends BaseTools {
21465
21465
  }, async (params) => await tools.searchEpics(params));
21466
21466
  server.tool("create-epic", "Create a new Shortcut epic.", {
21467
21467
  name: z.string().describe("The name of the epic"),
21468
- teamId: z.string().optional().describe("The ID of the team to assign the epic to"),
21469
- description: z.string().optional().describe("The description of the epic")
21468
+ owner: z.string().optional().describe("The user ID of the owner of the epic"),
21469
+ description: z.string().optional().describe("A description of the epic"),
21470
+ team: z.string().optional().describe("The ID of a team to assign the epic to")
21470
21471
  }, async (params) => await tools.createEpic(params));
21471
21472
  return tools;
21472
21473
  }
@@ -21504,15 +21505,16 @@ ${epic.description}`);
21504
21505
  }
21505
21506
  async createEpic({
21506
21507
  name: name2,
21507
- teamId,
21508
+ owner,
21509
+ team: group_id,
21508
21510
  description
21509
21511
  }) {
21510
- if (teamId) {
21511
- const team = await this.client.getTeam(teamId);
21512
- if (!team)
21513
- throw new Error(`Team with ID ${teamId} not found`);
21514
- }
21515
- const epic = await this.client.createEpic({ name: name2, group_id: teamId, description });
21512
+ const epic = await this.client.createEpic({
21513
+ name: name2,
21514
+ group_id,
21515
+ owner_ids: owner ? [owner] : undefined,
21516
+ description
21517
+ });
21516
21518
  return this.toResult(`Epic created with ID: ${epic.id}.`);
21517
21519
  }
21518
21520
  }
@@ -21538,10 +21540,10 @@ class IterationTools extends BaseTools {
21538
21540
  }, async (params) => await tools.searchIterations(params));
21539
21541
  server.tool("create-iteration", "Create a new Shortcut iteration", {
21540
21542
  name: z.string().describe("The name of the iteration"),
21541
- description: z.string().optional().describe("The description of the iteration"),
21542
21543
  startDate: z.string().describe("The start date of the iteration"),
21543
21544
  endDate: z.string().describe("The end date of the iteration"),
21544
- teamId: z.string().optional().describe("The ID of the team to assign the iteration to")
21545
+ team: z.string().optional().describe("The ID of a team to assign the iteration to"),
21546
+ description: z.string().optional().describe("A description of the iteration")
21545
21547
  }, async (params) => await tools.createIteration(params));
21546
21548
  return tools;
21547
21549
  }
@@ -21588,19 +21590,14 @@ ${iteration.description}`);
21588
21590
  name: name2,
21589
21591
  startDate,
21590
21592
  endDate,
21591
- teamId,
21593
+ team,
21592
21594
  description
21593
21595
  }) {
21594
- if (teamId) {
21595
- const team = await this.client.getTeam(teamId);
21596
- if (!team)
21597
- throw new Error(`Team with ID ${teamId} not found`);
21598
- }
21599
21596
  const iteration = await this.client.createIteration({
21600
21597
  name: name2,
21601
21598
  start_date: startDate,
21602
21599
  end_date: endDate,
21603
- group_ids: teamId ? [teamId] : undefined,
21600
+ group_ids: team ? [team] : undefined,
21604
21601
  description
21605
21602
  });
21606
21603
  if (!iteration)
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "keywords": ["shortcut", "mcp", "modelcontextprotocol"],
10
10
  "license": "MIT",
11
- "version": "0.4.0",
11
+ "version": "0.4.1",
12
12
  "type": "module",
13
13
  "main": "dist/index.js",
14
14
  "bin": {