@shortcut/mcp 0.11.0 → 0.11.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 CHANGED
@@ -71,6 +71,15 @@ See the [official Claude Code docs](https://docs.anthropic.com/en/docs/agents-an
71
71
 
72
72
  _You can add a new MCP server from the Claude Code CLI. But modifying the json file directly is simpler!_
73
73
 
74
+ You can either add a new MCP server from the command line:
75
+
76
+ ```shell
77
+ # Grab your Shortcut token here: https://app.shortcut.com/settings/account/api-tokens
78
+ claude mcp add shortcut --transport=stdio -e API_KEY=$SHORTCUT_API_TOKEN -- npx -y @shortcut/mcp@latest
79
+ ```
80
+
81
+ Or you can edit the local JSON file directly:
82
+
74
83
  1. Open the Claude Code configuration file (it should be in `~/.claude.json`).
75
84
  2. Find the `projects` > `mcpServers` section and add the following details and save the file:
76
85
 
package/dist/index.js CHANGED
@@ -435,7 +435,7 @@ var ShortcutClientWrapper = class {
435
435
  //#endregion
436
436
  //#region package.json
437
437
  var name = "@shortcut/mcp";
438
- var version = "0.11.0";
438
+ var version = "0.11.2";
439
439
 
440
440
  //#endregion
441
441
  //#region src/tools/base.ts
@@ -1445,8 +1445,12 @@ var UserTools = class UserTools extends BaseTools {
1445
1445
  const teams = await this.client.getTeams();
1446
1446
  const currentUser = await this.client.getCurrentUser();
1447
1447
  if (!currentUser) throw new Error("Failed to get current user.");
1448
- const userTeams = teams.filter((team) => team.member_ids.includes(currentUser.id));
1448
+ const userTeams = teams.filter((team) => !team.archived && team.member_ids.includes(currentUser.id));
1449
1449
  if (!userTeams.length) return this.toResult(`Current user is not a member of any teams.`);
1450
+ if (userTeams.length === 1) {
1451
+ const team = userTeams[0];
1452
+ return this.toResult(`Current user is a member of team "${team.name}":`, await this.entityWithRelatedEntities(team, "team"));
1453
+ }
1450
1454
  return this.toResult(`Current user is a member of ${userTeams.length} teams:`, await this.entitiesWithRelatedEntities(userTeams, "teams"));
1451
1455
  }
1452
1456
  async listMembers() {
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "modelcontextprotocol"
13
13
  ],
14
14
  "license": "MIT",
15
- "version": "0.11.0",
15
+ "version": "0.11.2",
16
16
  "type": "module",
17
17
  "main": "dist/index.js",
18
18
  "bin": {