KosmoKrator

data

Directus MCP, CLI, and Lua Integration for AI Agents

Directus integration docs for AI agents: MCP gateway setup, Directus CLI commands, Lua API reference, credentials, and function schemas.

7 functions 4 read 3 write Bearer token auth

Directus 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
directus
route_slug
directus
package
directus
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Directus MCP Client Matrix

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

Directus CLI Matrix

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

Function Catalog

FunctionTypeParametersDescription
directus.directus_list_items Read read 9 List items in a Directus collection with optional filtering, sorting, and pagination. Returns an array of items from the specified collection.
directus.directus_get_item Read read 3 Retrieve a single item from a Directus collection by its primary key ID.
directus.directus_create_item Write write 2 Create a new item in a Directus collection with the provided field values.
directus.directus_update_item Write write 3 Update an existing item in a Directus collection by its primary key ID.
directus.directus_delete_item Write write 2 Delete an item from a Directus collection by its primary key ID. This action cannot be undone.
directus.directus_list_collections Read read 0 List all available collections (tables) in the Directus instance. Returns collection names and metadata.
directus.directus_get_current_user Read read 1 Get the profile of the currently authenticated Directus user. Useful for verifying the connection and understanding user permissions.