@shortcut/mcp 0.10.0 → 0.10.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 +17 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -394,7 +394,7 @@ var ShortcutClientWrapper = class {
394
394
  //#endregion
395
395
  //#region package.json
396
396
  var name = "@shortcut/mcp";
397
- var version = "0.10.0";
397
+ var version = "0.10.1";
398
398
 
399
399
  //#endregion
400
400
  //#region src/tools/base.ts
@@ -745,7 +745,7 @@ const variations = [
745
745
  })
746
746
  ];
747
747
  const DATE_REGEXP = /* @__PURE__ */ new RegExp(`^(${variations.join("|")})$`);
748
- const date = z.string().regex(DATE_REGEXP).optional().describe("The date in \"YYYY-MM-DD\" format, or one of the keywords: \"yesterday\", \"today\", \"tomorrow\", or a date range in the format \"YYYY-MM-DD..YYYY-MM-DD\". The date range can also be open ended by using \"*\" for one of the bounds. Examples: \"2023-01-01\", \"today\", \"2023-01-01..*\" (from Jan 1, 2023 to any future date), \"*.2023-01-31\" (any date up to Jan 31, 2023), \"today..*\" (from today onwards), \"*.yesterday\" (any date up to yesterday). The keywords cannot be used to calculate relative dates (e.g. the following are not valid: \"today-1\" or \"tomorrow+1\").");
748
+ const date = () => z.string().regex(DATE_REGEXP).optional().describe("The date in \"YYYY-MM-DD\" format, or one of the keywords: \"yesterday\", \"today\", \"tomorrow\", or a date range in the format \"YYYY-MM-DD..YYYY-MM-DD\". The date range can also be open ended by using \"*\" for one of the bounds. Examples: \"2023-01-01\", \"today\", \"2023-01-01..*\" (from Jan 1, 2023 to any future date), \"*.2023-01-31\" (any date up to Jan 31, 2023), \"today..*\" (from today onwards), \"*.yesterday\" (any date up to yesterday). The keywords cannot be used to calculate relative dates (e.g. the following are not valid: \"today-1\" or \"tomorrow+1\").");
749
749
  const is = (field) => z.boolean().optional().describe(`Find only entities that are ${field} when true, or only entities that are not ${field} when false.`);
750
750
  const has = (field) => z.boolean().optional().describe(`Find only entities that have ${field} when true, or only entities that do not have ${field} when false. Example: hasOwner: true will find stories with an owner, hasOwner: false will find stories without an owner.`);
751
751
  const user = (field) => z.string().optional().describe(`Find entities where the ${field} match the specified user. This must either be the user\'s mention name or the keyword "me" for the current user.`);
@@ -779,10 +779,10 @@ var EpicTools = class EpicTools extends BaseTools {
779
779
  hasComment: has("a comment"),
780
780
  hasDeadline: has("a deadline"),
781
781
  hasLabel: has("a label"),
782
- created: date,
783
- updated: date,
784
- completed: date,
785
- due: date
782
+ created: date(),
783
+ updated: date(),
784
+ completed: date(),
785
+ due: date()
786
786
  }, async (params) => await tools.searchEpics(params));
787
787
  server$1.tool("create-epic", "Create a new Shortcut epic.", {
788
788
  name: z.string().describe("The name of the epic"),
@@ -836,10 +836,10 @@ var IterationTools = class IterationTools extends BaseTools {
836
836
  "done"
837
837
  ]).optional().describe("Find only iterations matching the specified state"),
838
838
  team: z.string().optional().describe("Find only iterations matching the specified team. This can be a team ID or mention name."),
839
- created: date,
840
- updated: date,
841
- startDate: date,
842
- endDate: date
839
+ created: date(),
840
+ updated: date(),
841
+ startDate: date(),
842
+ endDate: date()
843
843
  }, async (params) => await tools.searchIterations(params));
844
844
  server$1.tool("create-iteration", "Create a new Shortcut iteration", {
845
845
  name: z.string().describe("The name of the iteration"),
@@ -946,9 +946,9 @@ var ObjectiveTools = class ObjectiveTools extends BaseTools {
946
946
  isDone: is("completed"),
947
947
  isArchived: is("archived"),
948
948
  hasOwner: has("an owner"),
949
- created: date,
950
- updated: date,
951
- completed: date
949
+ created: date(),
950
+ updated: date(),
951
+ completed: date()
952
952
  }, async (params) => await tools.searchObjectives(params));
953
953
  return tools;
954
954
  }
@@ -1019,10 +1019,10 @@ var StoryTools = class StoryTools extends BaseTools {
1019
1019
  hasEpic: has("an epic"),
1020
1020
  hasTask: has("a task"),
1021
1021
  hasAttachment: has("an attachment"),
1022
- created: date,
1023
- updated: date,
1024
- completed: date,
1025
- due: date
1022
+ created: date(),
1023
+ updated: date(),
1024
+ completed: date(),
1025
+ due: date()
1026
1026
  }, async (params) => await tools.searchStories(params));
1027
1027
  server$1.tool("create-story", `Create a new Shortcut story.
1028
1028
  Name is required, and either a Team or Workflow must be specified:
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "modelcontextprotocol"
13
13
  ],
14
14
  "license": "MIT",
15
- "version": "0.10.0",
15
+ "version": "0.10.1",
16
16
  "type": "module",
17
17
  "main": "dist/index.js",
18
18
  "bin": {