list_projects
Retrieve all AICre8 projects with their IDs, names, and preview URLs for project management and deployment.
Instructions
List all your AICre8 projects with their IDs, names, and preview URLs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:46-57 (handler)The `listProjects()` method in AICre8Client class that makes a GET request to `/projects` endpoint and returns an object containing an array of projects with their IDs, names, URLs, and metadata.
async listProjects(): Promise<{ projects: Array<{ id: string; url_id: string; name: string; created_at: string; preview_url: string | null; has_sandbox: boolean; }>; }> { return this.request('GET', '/projects'); } - src/index.ts:31-52 (registration)Registration of the `list_projects` MCP tool using `server.tool()`. Defines the tool name, description, empty input schema ({}), and async handler that calls `client.listProjects()` and returns the result as JSON text content.
// ── Tool: list_projects ── server.tool( 'list_projects', 'List all your AICre8 projects with their IDs, names, and preview URLs', {}, async () => { try { const result = await client.listProjects(); return { content: [ { type: 'text' as const, text: JSON.stringify(result.projects, null, 2), }, ], }; } catch (err: any) { return { content: [{ type: 'text' as const, text: `Error: ${err.message}` }], isError: true }; } }, );