KosmoKrator

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_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Onfleet MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Onfleet.

Onfleet CLI Matrix

Use these pages for direct Onfleet CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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.