get_team_members
Retrieve all members associated with a specific team in Coolify to manage access permissions and team composition.
Instructions
Get members of a specific team
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | Team ID |
Implementation Reference
- src/tools/handlers.ts:495-497 (handler)The handler logic for the 'get_team_members' tool. It requires a 'team_id' parameter and makes an API call to retrieve the members of the specified team using the Coolify client.case 'get_team_members': requireParam(args, 'team_id'); return client.get(`/teams/${args.team_id}/members`);
- src/tools/definitions.ts:1179-1187 (schema)The schema definition for the 'get_team_members' tool, specifying the input requirements (team_id as string) and description.{ name: 'get_team_members', description: 'Get members of a specific team', inputSchema: { type: 'object', properties: { team_id: { type: 'string', description: 'Team ID' } }, required: ['team_id'] } }
- src/index.ts:36-38 (registration)MCP registration of all tools including 'get_team_members' via the ListToolsRequestHandler, which returns definitions from getToolDefinitions().this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:41-67 (registration)MCP CallToolRequestHandler registration that dispatches to handleTool, which contains the specific handler for 'get_team_members'.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/tools/definitions.ts:10-11 (helper)'get_team_members' is listed in READ_ONLY_TOOLS array, enabling it in read-only mode.'get_current_team_members', 'get_team_members',