list_teams
Retrieve all teams accessible to your authenticated user in Coolify's self-hosted PaaS environment for deployment and management operations.
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)Handler implementation for the 'list_teams' tool. Dispatches to CoolifyClient.get('/teams') to retrieve the list of accessible teams.case 'list_teams': return client.get('/teams');
- src/tools/definitions.ts:124-127 (schema)JSON schema definition for the 'list_teams' tool, specifying no input parameters are required.{ name: 'list_teams', description: 'List all teams accessible to the authenticated user', inputSchema: { type: 'object', properties: {}, required: [] }
- src/index.ts:41-67 (registration)MCP server registration of the generic tool call handler, which dispatches to specific tool handlers like 'list_teams' via handleTool based on the tool name.this.server.setRequestHandler(CallToolRequestSchema, async (request) => { if (!this.client) { throw new McpError(ErrorCode.InternalError, 'Client not initialized'); } const { name, arguments: args } = request.params; // Block write operations in read-only mode if (isReadOnlyMode() && !READ_ONLY_TOOLS.includes(name)) { throw new McpError( ErrorCode.InvalidRequest, `Operation '${name}' is not allowed in read-only mode. Set COOLIFY_READONLY=false to enable write operations.` ); } try { const result = await handleTool(this.client, name, args || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { if (error instanceof McpError) throw error; const message = error instanceof Error ? error.message : 'Unknown error'; throw new McpError(ErrorCode.InternalError, `Tool execution failed: ${message}`); } });
- src/index.ts:36-38 (registration)MCP server registration of the listTools request handler, which returns all tool definitions including 'list_teams'.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));