Prerequisites
- Python 3.10+
- A Twexapi API key from the dashboard
- An LLM API key supported by CrewAI
Install
Full example
Multi-agent crew
Give only the data-collection agents Twexapi access. Downstream agents can work from the handoff JSON.Handoff checklist
- Preserve
tweet_id,user_id,author_username,created_at, and source query. - Preserve
has_moreandnext_cursorfor every paginated call. - Store
route_used,method, andpathso the workflow can be audited. - Require human approval before any
read_only: falseaction.
Tool filtering
When a CrewAI role should only discover endpoints, limit that agent toexplore. Give twexapi_request only to agents that are allowed to make authenticated API calls.
read_only: false call.
Environment variables
.env
Package versions
| Package | Version |
|---|---|
crewai | 1.0+ |
mcp | 1.9+ |