@shortcut/mcp 0.7.0 → 0.7.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.
- package/README.md +2 -0
- package/dist/index.js +10 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@ See the [official Windsurf docs](https://codeium.com/docs/windsurf/mcp) for more
|
|
|
29
29
|
|
|
30
30
|
### Cursor
|
|
31
31
|
|
|
32
|
+
[](https://cursor.com/install-mcp?name=shortcut&config=eyJjb21tYW5kIjoibnB4IC15IEBzaG9ydGN1dC9tY3BAbGF0ZXN0IiwiZW52Ijp7IlNIT1JUQ1VUX0FQSV9UT0tFTiI6IjxZT1VSX1NIT1JUQ1VUX0FQSV9UT0tFTj4ifX0%3D)
|
|
33
|
+
|
|
32
34
|
See the [official Cursor docs](https://docs.cursor.com/context/model-context-protocol) for more information.
|
|
33
35
|
|
|
34
36
|
1. Open (or create) the `mcp.json` file (it should be in `~/.cursor/mcp.json` or `<project-root>/.cursor/mcp.json`, but see Cursor docs for more details).
|
package/dist/index.js
CHANGED
|
@@ -14772,9 +14772,9 @@ class ShortcutClientWrapper {
|
|
|
14772
14772
|
return { milestones: null, total: null };
|
|
14773
14773
|
return { milestones, total };
|
|
14774
14774
|
}
|
|
14775
|
-
async listIterationStories(iterationPublicId) {
|
|
14775
|
+
async listIterationStories(iterationPublicId, includeDescription = false) {
|
|
14776
14776
|
const response = await this.client.listIterationStories(iterationPublicId, {
|
|
14777
|
-
includes_description:
|
|
14777
|
+
includes_description: includeDescription
|
|
14778
14778
|
});
|
|
14779
14779
|
const stories = response?.data;
|
|
14780
14780
|
if (!stories)
|
|
@@ -21578,7 +21578,7 @@ var import_client = __toESM(require_lib(), 1);
|
|
|
21578
21578
|
|
|
21579
21579
|
// package.json
|
|
21580
21580
|
var name = "@shortcut/mcp";
|
|
21581
|
-
var version = "0.7.
|
|
21581
|
+
var version = "0.7.2";
|
|
21582
21582
|
|
|
21583
21583
|
// src/tools/base.ts
|
|
21584
21584
|
class BaseTools {
|
|
@@ -21826,7 +21826,10 @@ class EpicTools extends BaseTools {
|
|
|
21826
21826
|
class IterationTools extends BaseTools {
|
|
21827
21827
|
static create(client, server) {
|
|
21828
21828
|
const tools = new IterationTools(client);
|
|
21829
|
-
server.tool("get-iteration-stories", "Get stories in a specific iteration by iteration public ID", {
|
|
21829
|
+
server.tool("get-iteration-stories", "Get stories in a specific iteration by iteration public ID", {
|
|
21830
|
+
iterationPublicId: z.number().positive().describe("The public ID of the iteration"),
|
|
21831
|
+
includeStoryDescriptions: z.boolean().optional().default(false).describe("Indicate whether story descriptions should be included. Including descriptions may take longer and will increase the size of the response.")
|
|
21832
|
+
}, async ({ iterationPublicId, includeStoryDescriptions }) => await tools.getIterationStories(iterationPublicId, includeStoryDescriptions));
|
|
21830
21833
|
server.tool("get-iteration", "Get a Shortcut iteration by public ID", {
|
|
21831
21834
|
iterationPublicId: z.number().positive().describe("The public ID of the iteration to get")
|
|
21832
21835
|
}, async ({ iterationPublicId }) => await tools.getIteration(iterationPublicId));
|
|
@@ -21850,11 +21853,11 @@ class IterationTools extends BaseTools {
|
|
|
21850
21853
|
}, async (params) => await tools.createIteration(params));
|
|
21851
21854
|
return tools;
|
|
21852
21855
|
}
|
|
21853
|
-
async getIterationStories(iterationPublicId) {
|
|
21854
|
-
const { stories } = await this.client.listIterationStories(iterationPublicId);
|
|
21856
|
+
async getIterationStories(iterationPublicId, includeDescription) {
|
|
21857
|
+
const { stories } = await this.client.listIterationStories(iterationPublicId, includeDescription);
|
|
21855
21858
|
if (!stories)
|
|
21856
21859
|
throw new Error(`Failed to retrieve Shortcut stories in iteration with public ID: ${iterationPublicId}.`);
|
|
21857
|
-
return this.toResult(`Result (${stories.length} stories found):`, this.toCorrectedEntities(stories));
|
|
21860
|
+
return this.toResult(`Result (${stories.length} stories found):`, await this.toCorrectedEntities(stories));
|
|
21858
21861
|
}
|
|
21859
21862
|
async searchIterations(params) {
|
|
21860
21863
|
const currentUser = await this.client.getCurrentUser();
|