@shortcut/mcp 0.11.0 → 0.11.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.
- package/dist/index.js +6 -2
- package/package.json +1 -1
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.
|
|
438
|
+
var version = "0.11.1";
|
|
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() {
|