list-teams
Retrieve all teams from Shortcut project management to view team members, roles, and structure for coordination and task assignment.
Instructions
List all Shortcut teams
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/teams.ts:30-39 (handler)Implements the core logic for the list-teams tool by fetching all teams from the Shortcut client, handling empty results, and formatting the output using base tool methods.async getTeams() { const teams = await this.client.getTeams(); if (!teams.length) return this.toResult(`No teams found.`); return this.toResult( `Result (first ${teams.length} shown of ${teams.length} total teams found):`, await this.entitiesWithRelatedEntities(teams, "teams"), ); }
- src/tools/teams.ts:17-17 (registration)Registers the 'list-teams' tool on the MCP server with no input parameters and a handler that delegates to the getTeams method.server.tool("list-teams", "List all Shortcut teams", async () => await tools.getTeams());