logistics
Onfleet MCP, CLI, and Lua Integration for AI Agents
Onfleet integration docs for AI agents: MCP gateway setup, Onfleet CLI commands, Lua API reference, credentials, and function schemas.
9 functions 6 read 3 write API key auth
Onfleet for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
onfleet- route_slug
onfleet- package
onfleet- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Onfleet CLIHeadless setup and direct function calls. Onfleet MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Onfleet MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Onfleet.
Claude Code Onfleet MCP setup for Claude Code. Cursor Onfleet MCP setup for Cursor. Codex Onfleet MCP setup for Codex. OpenAI Agents Onfleet MCP setup for OpenAI Agents SDK. Claude Agent SDK Onfleet MCP setup for Claude Agent SDK. Vercel AI SDK Onfleet MCP setup for Vercel AI SDK. LangChain Onfleet MCP setup for LangChain. LangGraph Onfleet MCP setup for LangGraph. CrewAI Onfleet MCP setup for CrewAI. MCP clients Onfleet MCP setup for Generic MCP Clients.
Onfleet CLI Matrix
Use these pages for direct Onfleet CLI workflows in scripts, CI, cron, and agent wrappers.
CI Onfleet CLI for CI. Cron Jobs Onfleet CLI for cron jobs. Shell Scripts Onfleet CLI for shell scripts. Headless Automation Onfleet CLI for headless automation. Coding Agents Onfleet CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
onfleet.onfleet_list_tasks | Read read | 10 | List delivery tasks from Onfleet. Filter by state (0=unassigned, 1=assigned, 2=active, 3=completed), worker, team, or time range. Returns task details including destination, recipient, and completion status. |
onfleet.onfleet_get_task | Read read | 1 | Get detailed information about a specific delivery task by its ID. Returns destination, recipient, worker assignment, completion details, and tracking info. |
onfleet.onfleet_create_task | Write write | 17 | Create a new delivery task in Onfleet. Requires a destination address and recipient details. Optionally assign to a worker or team, set time windows, and add notes. |
onfleet.onfleet_update_task | Write write | 11 | Update an existing delivery task in Onfleet. Only the fields you provide will be changed. You can update destination, assignment, notes, time windows, and more. |
onfleet.onfleet_delete_task | Write write | 1 | Delete a delivery task from Onfleet. Only unassigned or unsuccessfully completed tasks can be deleted. This action is permanent. |
onfleet.onfleet_list_workers | Read read | 5 | List all workers (drivers) in Onfleet. Optionally filter by team or worker state. Returns worker name, phone, vehicle details, and current status. |
onfleet.onfleet_list_teams | Read read | 0 | List all teams in your Onfleet organization. Returns team name, manager, assigned workers, and hub location. |
onfleet.onfleet_list_recipients | Read read | 4 | List recipients (delivery customers) from Onfleet. Search by name, phone, or email. Returns recipient contact details. |
onfleet.onfleet_get_current_user | Read read | 0 | Get the currently authenticated Onfleet user profile. Returns name, email, organization, and account details. Useful for verifying API connectivity. |