Skip to main content
Glama

list_projects

Retrieve a list of all analyzed projects with their names, file paths, and last analysis timestamps from the CodeAtlas codebase analysis server.

Instructions

List all projects that have been analyzed by CodeAtlas. Returns project names, paths, and last analysis time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the `list_projects` MCP tool, which calls `discoverProjects` to retrieve and format the list of analyzed projects.
    server.tool(
      "list_projects",
      "List all projects that have been analyzed by CodeAtlas. Returns project names, paths, and last analysis time.",
      {},
      async () => {
        const projects = discoverProjects();
        if (projects.length === 0) {
          return { content: [{ type: "text" as const, text: "No analyzed projects found. Run 'CodeAtlas: Analyze Project' in VS Code first." }] };
        }
    
        const result = {
          projectCount: projects.length,
          projects: projects.map((p) => ({
            name: p.name,
            path: p.dir,
            lastAnalyzed: p.modifiedAt.toISOString(),
          })),
        };
    
        return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] };
      }
    );

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/giauphan/codeatlas-mcp'

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