kickoff_crew
Start new CrewAI workflows to automate complex tasks through Claude Desktop. Provides crew IDs for monitoring task progress and results.
Instructions
Start a new crew task
Args:
inputs: Dictionary containing the query and other input parameters
Returns:
Dictionary containing the crew task response. The response will contain the crew id which needs to be returned to check the status of the crew.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes |
Implementation Reference
- crewai_enterprise_server.py:16-35 (handler)The handler function for the 'kickoff_crew' tool. It sends a POST request to the CrewAI Enterprise server with the provided inputs and returns the JSON response containing the crew task details.async def kickoff_crew(inputs: dict[str, Any]) -> dict[str, Any]: """Start a new crew task Args: inputs: Dictionary containing the query and other input parameters Returns: Dictionary containing the crew task response. The response will contain the crew id which needs to be returned to check the status of the crew. """ async with httpx.AsyncClient() as client: response = await client.post( f"{CREWAI_ENTERPRISE_SERVER_URL}/kickoff", headers={ "Authorization": f"Bearer {CREWAI_ENTERPRISE_BEARER_TOKEN}", "Content-Type": "application/json", }, json={"inputs": inputs}, ) response_json = response.json() return response_json
- crewai_enterprise_server.py:15-15 (registration)Registers the 'kickoff_crew' function as an MCP tool using the FastMCP decorator.@mcp.tool()