project_status
Monitor active project TCP servers to track operational status and connectivity for project management oversight.
Instructions
Get status of all active project TCP servers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index-backup.ts:1194-1244 (registration)Registration of the 'project_status' tool, including its description, empty schema, and inline async handler that fetches active projects via serverManager.getActiveProjects() and returns a formatted Markdown status report or error message.server.tool( "project_status", "Get status of all active project TCP servers", {}, async () => { try { const projects = serverManager.getActiveProjects(); if (projects.length === 0) { return { content: [ { type: "text", text: `š **Status Server Progetti**\n\nā Nessun progetto attivo.` } ] }; } let statusText = `š **Status Server Progetti** (${projects.length} attivi)\n\n`; projects.forEach((project, index) => { statusText += `**${index + 1}. ${project.projectName}**\n`; statusText += ` ⢠ID: ${project.projectId}\n`; statusText += ` ⢠Porta TCP: ${project.port}\n`; statusText += ` ⢠PID: ${project.pid}\n`; statusText += ` ⢠Status: ${project.status}\n`; statusText += ` ⢠Avviato: ${project.startTime}\n`; statusText += ` ⢠Path: \`${project.projectPath}\`\n\n`; }); return { content: [ { type: "text", text: statusText } ] }; } catch (error) { return { content: [ { type: "text", text: `ā **Errore:** ${error instanceof Error ? error.message : String(error)}` } ] }; } } );
- The getActiveProjects() method of the ProjectServerManager class (aliased as serverManager), which retrieves the list of currently active project servers with their details, used by the project_status tool handler.getActiveProjects() { const projects = []; for (const [projectId, serverInfo] of this.activeServers) { projects.push({ projectId, projectName: serverInfo.projectName, projectPath: serverInfo.projectPath, port: serverInfo.port, pid: serverInfo.pid, status: serverInfo.status, startTime: serverInfo.startTimeString }); } return projects;