teams-list
Retrieve all teams from Shortcut project management to view team structure and members for project coordination.
Instructions
List all Shortcut teams
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/teams.ts:46-56 (handler)The main handler function for the "teams-list" tool. Fetches all teams using the Shortcut client and returns a formatted result, handling empty list case.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:26-30 (registration)Registration of the "teams-list" tool on the MCP server, with no input parameters, delegating to the getTeams() method.server.addToolWithReadAccess( "teams-list", "List all Shortcut teams", async () => await tools.getTeams(), );