get_crew_status
Retrieve the current status of a specific crew task by providing the crew ID, enabling real-time monitoring of CrewAI workflows initiated through Claude Desktop.
Instructions
Get the status of a crew task
Args:
crew_id: The ID of the crew task to check
Returns:
Dictionary containing the crew task status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crew_id | Yes |
Implementation Reference
- crewai_enterprise_server.py:38-56 (handler)The main handler function for the 'get_crew_status' MCP tool. It is registered via the @mcp.tool() decorator and implements the logic to query the CrewAI Enterprise server for the status of a given crew_id using HTTP GET request.@mcp.tool() async def get_crew_status(crew_id: str) -> dict[str, Any]: """Get the status of a crew task Args: crew_id: The ID of the crew task to check Returns: Dictionary containing the crew task status """ async with httpx.AsyncClient() as client: response = await client.get( f"{CREWAI_ENTERPRISE_SERVER_URL}/status/{crew_id}", headers={ "Authorization": f"Bearer {CREWAI_ENTERPRISE_BEARER_TOKEN}", "Content-Type": "application/json", }, ) return response.json()