Skip to main content
Glama

manage_projects

List and analyze indexed projects in the RAG MCP Server to manage semantic code search and knowledge graph relationships.

Instructions

Gérer et lister les projets indexés

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoAction à effectuerlist
project_pathNoChemin du projet pour les statistiques (requis pour 'stats')

Implementation Reference

  • Main execution handler for the 'manage_projects' tool. Handles 'list' action to list all indexed projects using getProjects(), and 'stats' action to get statistics for a specific project using getProjectStatistics().
    export const manageProjectsHandler: ToolHandler = async (args) => { const action = args.action || "list"; try { if (action === "stats") { if (!args.project_path || typeof args.project_path !== 'string') { throw new Error("The 'project_path' parameter is required for 'stats' action"); } const stats = await getProjectStatistics(args.project_path); return { content: [{ type: "text", text: JSON.stringify(stats, null, 2) }] }; } else { const projects = await getProjects(); return { content: [{ type: "text", text: JSON.stringify(projects, null, 2) }] }; } } catch (error) { console.error("Error in manage_projects tool:", error); throw error; } };
  • Tool definition including name, description, and input schema for 'manage_projects'. Defines parameters: action ('list' or 'stats'), and optional project_path for stats.
    export const manageProjectsTool: ToolDefinition = { name: "manage_projects", description: "Gérer et lister les projets indexés", inputSchema: { type: "object", properties: { action: { type: "string", description: "Action à effectuer", enum: ["list", "stats"], default: "list" }, project_path: { type: "string", description: "Chemin du projet pour les statistiques (requis pour 'stats')" } } }, };
  • Explicit registration of the manage_projects tool and handler into the central toolRegistry.
    // Enregistrer manage_projects try { toolRegistry.register(manageProjectsTool, manageProjectsHandler); console.log(`✅ Outil enregistré: ${manageProjectsTool.name}`); } catch (error) { console.error(`❌ Erreur lors de l'enregistrement de ${manageProjectsTool.name}:`, error); }

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/ali-48/rag-mcp-server'

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