get_project_status
Check project health including agent and integration status. Returns overall health, Prometheus connection, node agent deployment, and error messages.
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
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_coroot/server.py:209-216 (handler)Implementation handler for get_project_status - calls the client and returns a success/status 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/server.py:219-232 (registration)MCP tool registration via @mcp.tool() decorator - exposes get_project_status as an MCP tool with docstring describing the parameters and return data.
@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)Client helper method - makes the actual HTTP GET request to /api/project/{project_id}/status to retrieve project status.
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