Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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;

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/multiluca2020/visum-thinker-mcp-server'

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