get_project_status
Retrieve project health and integration status, including Prometheus connections and node agent deployments, to monitor and troubleshoot system performance efficiently.
Instructions
Get project status including agent and integration health.
Returns the current status of a project including:
Overall project health
Prometheus connection status
Node agent deployment status
Any error messages
Args: project_id: Project ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- src/mcp_coroot/server.py:219-232 (handler)MCP tool handler and registration for 'get_project_status'. This is the entry point decorated with @mcp.tool() that delegates to the implementation.@mcp.tool() async def get_project_status(project_id: str) -> dict[str, Any]: """Get project status including agent and integration health. Returns the current status of a project including: - Overall project health - Prometheus connection status - Node agent deployment status - Any error messages Args: project_id: Project ID """ return await get_project_status_impl(project_id) # type: ignore[no-any-return]
- src/mcp_coroot/server.py:209-217 (helper)Helper implementation in server.py that calls the CorootClient method and formats the success response.@handle_errors async def get_project_status_impl(project_id: str) -> dict[str, Any]: """Get project status.""" status = await get_client().get_project_status(project_id) return { "success": True, "status": status, }
- src/mcp_coroot/client.py:339-350 (handler)Core handler logic in CorootClient that performs the HTTP request to the Coroot API endpoint /api/project/{project_id}/status and parses the JSON response.async def get_project_status(self, project_id: str) -> dict[str, Any]: """Get project status including Prometheus and agent status. Args: project_id: Project ID. Returns: Project status dictionary. """ response = await self._request("GET", f"/api/project/{project_id}/status") data: dict[str, Any] = response.json() return data