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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:114-135 (handler)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) }] }; } );