get_current_team
Retrieve details about the current team in Coolify to manage deployments, databases, and server operations.
Instructions
Get details of the current team
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/handlers.ts:63-64 (handler)The handler logic for 'get_current_team' tool. It simply calls the CoolifyClient's GET /teams/current endpoint to fetch the current team details.case 'get_current_team': return client.get('/teams/current');
- src/tools/definitions.ts:140-144 (schema)The input schema definition for the 'get_current_team' tool. It requires no parameters and defines the tool metadata used for MCP registration.{ name: 'get_current_team', description: 'Get details of the current team', inputSchema: { type: 'object', properties: {}, required: [] } },
- src/index.ts:36-38 (registration)Registers all tools including 'get_current_team' by providing the tool definitions from getToolDefinitions() in response to ListTools requests.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:57-67 (registration)The central tool dispatcher that routes calls to the specific handleTool implementation based on the tool name 'get_current_team'.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/tools/definitions.ts:9-9 (helper)Includes 'get_current_team' in the READ_ONLY_TOOLS list, enabling it in read-only mode.'get_current_team',