list-teams
Retrieve all teams from Shortcut project management to view team members, roles, and organizational structure for project coordination and task assignment.
Instructions
List all Shortcut teams
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools/teams.ts:30-39 (handler)The main handler logic for the 'list-teams' tool. Fetches all teams using the Shortcut client, handles empty case, and formats the result with related entities.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' MCP tool with the server, providing description and delegating execution to the getTeams handler.server.tool("list-teams", "List all Shortcut teams", async () => await tools.getTeams());