Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 };
        }
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AICre8dev/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server