get_project_status
Retrieve project health status, including agent deployment, Prometheus connections, and error details for monitoring infrastructure performance.
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:210-217 (handler)Core handler implementation that fetches project status via CorootClient and wraps in success response.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/server.py:219-232 (registration)MCP tool registration using @mcp.tool() decorator with input schema from signature and docstring.@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/client.py:339-350 (helper)CorootClient helper method that performs the actual HTTP request to retrieve project status from Coroot API.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