list_teams
Retrieve all teams available to your authenticated user in the Coolify MCP Server for managing self-hosted PaaS instances.
Instructions
List all teams accessible to the authenticated user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/handlers.ts:56-57 (handler)The core handler logic for the 'list_teams' tool. It makes a GET request to the Coolify API endpoint '/teams' using the CoolifyClient to retrieve the list of teams accessible to the authenticated user.case 'list_teams': return client.get('/teams');
- src/tools/definitions.ts:124-128 (schema)The JSON schema definition for the 'list_teams' tool, specifying no input parameters are required and providing the tool description.{ name: 'list_teams', description: 'List all teams accessible to the authenticated user', inputSchema: { type: 'object', properties: {}, required: [] } },
- src/index.ts:35-38 (registration)MCP server registration of the tools list request handler, which returns all tool definitions (including 'list_teams') from getToolDefinitions().// List available tools (filtered by read-only mode) this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:56-60 (registration)MCP server CallTool request handler that dispatches to handleTool (which contains the 'list_teams' case), formats the result as MCP content, and handles errors.try { const result = await handleTool(this.client, name, args || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
- src/tools/definitions.ts:7-7 (helper)'list_teams' is marked as a read-only tool in the READ_ONLY_TOOLS array, ensuring it is always available even in read-only mode.'list_teams',