list_projects
Retrieve all projects from your Coolify self-hosted PaaS instance to manage deployments, databases, and server operations.
Instructions
List all projects
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/handlers.ts:104-105 (handler)The handler case for the list_projects tool within the handleTool function. It simply calls client.get('/projects') to fetch the list of projects from the Coolify API.case 'list_projects': return client.get('/projects');
- src/tools/definitions.ts:204-208 (schema)The input schema and metadata definition for the list_projects tool, indicating no parameters are required.{ name: 'list_projects', description: 'List all projects', inputSchema: { type: 'object', properties: {}, required: [] } },
- src/index.ts:36-38 (registration)Registration of the tool list (including list_projects schema) in the MCP server via ListToolsRequestHandler using getToolDefinitions().this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:57-60 (registration)The MCP CallToolRequestHandler that invokes the specific tool handler (handleTool) for list_projects execution.const result = await handleTool(this.client, name, args || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
- src/tools/definitions.ts:16-16 (helper)list_projects is included in the READ_ONLY_TOOLS array, allowing it in read-only mode.'list_projects',