directus-dev
Directus development plugin. Knowledge base for working with Directus MCP tools (12 tools), REST API, and @directus/sdk. Covers collections, items, fields, relations, files, flows, operations, and schema design.
v1.4.9Updated
- directus
- headless-cms
- collections
- fields
- relations
- flows
- schema
- mcp
- api
- sdk
- content-management
- data-modeling
Install
Pick your agent for the steps.
Install on Claude Code
1.Add the marketplace
/plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
/plugin install directus-dev@agents-store-claude-pluginsType it inside Claude Code.
Install on GitHub Copilot CLI
1.Add the marketplace
copilot plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
copilot plugin install directus-dev@agents-store-claude-plugins
GitHub Copilot CLI does not receive: commands, agents.
Install on Cursor
1.Manual install
Cursor has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Cursor reads plugins from.
Cursor’s plugin documentation now lives at docs.grok.com (cursor.com/docs/plugins redirects there). Plugins come from its marketplace, a team marketplace or a local folder.
Install on Codex
1.Add the marketplace
codex plugin marketplace add Agents-Store/codex-plugins2.Install the plugin
codex plugin add directus-dev@agents-store-codex-plugins
Codex does not receive: commands, agents.
Install on Gemini CLI
1.Clone the mirror
git clone https://github.com/Agents-Store/gemini-extensions2.Install the plugin
gemini extensions link ./gemini-extensions/directus-devRun it from the folder you cloned into.
Consumer access to Gemini CLI ended on 2026-06-18. This target serves enterprise Gemini Code Assist; Antigravity is the consumer successor.
Install on Antigravity
1.Clone the mirror
git clone https://github.com/Agents-Store/antigravity-skills2.Install the plugin
agy plugin install ./antigravity-skills/directus-devRun it from the folder you cloned into.
Antigravity does not receive: commands.
Install on Kimi Code
1.Clone the mirror
git clone https://github.com/Agents-Store/kimi-plugins2.Install the plugin
/plugins install ./kimi-plugins/directus-devRun it from the folder you cloned into, and type it inside Kimi Code.
Kimi Code does not receive: commands, agents, hooks, MCP servers.
Install on Devin
1.Install the plugin
devin plugins install Agents-Store/devin-plugins#directus-dev
Devin does not receive: commands, agents, hooks, MCP servers.
Install on Hermes Agent
1.Install the plugin
hermes plugins install Agents-Store/hermes-plugins/directus-dev
Hermes Agent does not receive: commands, agents, hooks, MCP servers.
Install on OpenCode
1.Manual install
OpenCode has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place OpenCode reads plugins from.
OpenCode does not receive: hooks.
Install on Pi
1.Manual install
Pi has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Pi reads plugins from.
Pi does not receive: commands, agents, hooks, MCP servers.
Install on OpenClaw
1.Clone the mirror
git clone https://github.com/Agents-Store/openclaw-generated-plugins2.Install the plugin
openclaw plugins install ./openclaw-generated-plugins/directus-devRun it from the folder you cloned into.
OpenClaw does not receive: commands, agents, hooks, MCP servers.
Install on Agent Plugins 1.0
1.Manual install
Agent Plugins 1.0 has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Agent Plugins 1.0 reads plugins from.
Agent Plugins 1.0 does not receive: commands, agents, hooks.
What is inside
Skills (11)
- api-reference
Directus REST API endpoints, curl examples, authentication patterns, schema migration pipeline. This skill should be used when the user asks for "Directus API endpoints", "Directus REST API", "Directus curl examples", "Directus API documentation", "Directus HTTP requests", or needs specific endpoint details for scripting.
- docker-local-dev
Run Directus 12 locally with Docker Compose — PostgreSQL, Redis, upload and extension volumes, secrets from .env, /server/ping health check, pinned image tag, first admin, extensions on hardened images, upgrades. This skill should be used when the user asks to "run Directus locally", "Directus Docker Compose", "Directus local dev stack", "start a local Directus instance", "docker-compose.yml for Directus", or needs a throwaway Directus to develop a frontend, flows or schema against.
- examples
End-to-end workflow examples, tool call patterns, and scenario walkthroughs for Directus MCP. This skill should be used when the user needs complete working examples, reference implementations, step-by-step walkthroughs, or tool call patterns for Directus.
- field-relations
Field types, relationship configuration — M2O, O2M, M2M, M2A, translations, files. This skill should be used when the user asks to add fields, configure field types, set up relations, create relationships between Directus collections, or design M2O/O2M/M2M/M2A structures.
- file-management
File and asset management — upload via URL, organize folders, query file metadata, retrieve base64 assets. This skill should be used when the user asks to manage files, upload images, import files from URLs, organize folders, query file metadata, or retrieve assets in Directus.
- flow-automation
Build and run Directus flows, covering event hooks, schedules, webhook and manual triggers, operations such as condition, request, read and update data, and the data chain that passes values between operations. Use it for any Directus question about creating, wiring, scheduling or triggering an automation flow, in any language. For a flow that does not run or a condition that never matches use troubleshoot.
- item-operations
Read, query and write records (items) in a Directus collection with the items MCP tool - filters and sorting, deep queries across relations, many-to-any field selection, aggregation with groupBy, pagination, batch create, and update or delete by keys or by query. Use it for how-to questions about the data in a collection, in any language. For SDK code use sdk-patterns, for setting up relations and field types field-relations, for data model design schema-design.
- mcp-tools
All Directus MCP tools reference — action patterns, parameters, query system. This skill should be used when the user asks about "Directus MCP tools", "which Directus tools are available", "how to use Directus MCP", "Directus tool parameters", or needs to know which MCP operations are available for Directus and how to use them correctly.
- schema-design
Schema design best practices — data modeling, collection planning, system fields, display templates, singletons, folders, versioning. This skill should be used when the user asks to design a data model, plan collections, create a database schema, or build a CMS/e-commerce/project database structure in Directus.
- sdk-patterns
@directus/sdk patterns — composable client, TypeScript types, CRUD operations, authentication, real-time subscriptions, server-side use in Next.js (fetch options, per-request tokens, relations in queries). This skill should be used when the user asks about "Directus SDK", "@directus/sdk", "Directus client library", "Directus TypeScript", "Directus in Next.js", or needs code patterns for integrating Directus into a JavaScript/TypeScript project.
- troubleshoot
Diagnose Directus problems such as 401, 403, 404, 409, 422 and 500 responses on items, fields, relations or assets, MCP connection and tool-call errors, permission and policy issues, schema conflicts, slow queries, and flows that never fire or whose conditions never match. Use it for any Directus question about something failing or behaving unexpectedly. For Docker setup use docker-local-dev; for building flows use flow-automation.
Commands (10)
- create-collection
Create a new Directus collection with optional fields
- create-item
Create a new item in a Directus collection
- explore-schema
Explore the Directus schema — list all collections or get detailed field info for a specific collection
- list-collections
List all collections in the Directus instance
- list-files
List files in Directus with optional folder or type filter
- list-flows
List all automation flows in Directus
- list-items
List items from a Directus collection with optional filters
- search-items
Search items across a Directus collection using full-text search
- snapshot-schema
Get a schema snapshot — shows complete data model for one or more collections
- trigger-flow
Trigger a Directus automation flow
Agents (2)
- directus-assistant
Interactive Directus assistant. Helps with collection management, item operations, field configuration, relation setup, file management, flow automation, and schema design via MCP tools. <example> Context: User wants to explore their Directus instance user: "Show me all collections in my Directus instance" assistant: "I'll use the directus-assistant agent to explore the schema." <commentary> User wants to discover what's in their Directus instance. </commentary> </example> <example> Context: User wants to create content user: "Create 5 blog posts in the articles collection with different topics" assistant: "I'll use the directus-assistant agent to create the items." <commentary> User needs to create items in a Directus collection. </commentary> </example> <example> Context: User wants to set up a relation user: "Set up a many-to-many relation between products and categories" assistant: "I'll use the directus-assistant agent to create the M2M relation." <commentary> User needs help with Directus relationship configuration. </commentary> </example> <example> Context: User wants to query data user: "Show me all published posts with their authors and tags" assistant: "I'll use the directus-assistant agent to query the data." <commentary> User needs to read items with relational data. </commentary> </example> <example> Context: User wants to set up automation user: "Create a flow that sends a notification when a new order is placed" assistant: "I'll use the directus-assistant agent to build the automation flow." <commentary> User needs to create a Directus flow with operations. </commentary> </example>
- directus-schema-architect
Specialized Directus schema design agent. Designs data models with collections, fields, relations (M2O, O2M, M2M, M2A), system fields, translations, and content versioning. Use when planning multi-collection Directus structures. <example> Context: User wants to design a complex data model user: "Design a blog CMS schema with posts, categories, tags, and authors" assistant: "I'll use the directus-schema-architect agent to design the data model." <commentary> User needs a multi-collection schema design with various relation types. </commentary> </example> <example> Context: User wants to plan an e-commerce backend user: "Plan an e-commerce data model with products, variants, and orders" assistant: "I'll use the directus-schema-architect agent to plan the schema." <commentary> Complex schema requiring hierarchical categories, M2M relations, and order management. </commentary> </example> <example> Context: User wants to restructure existing schema user: "My Directus schema is messy, help me redesign it properly" assistant: "I'll use the directus-schema-architect agent to analyze and redesign." <commentary> Schema refactoring requires understanding current state and planning improvements. </commentary> </example>
README
Directus development plugin for Claude Code. Knowledge base for working with Directus MCP tools (12 tools), REST API, and @directus/sdk. Covers collections, items, fields, relations, files, flows, operations, and schema design.
Features
- 11 skills covering MCP tools, item operations, schema design, field/relations, flow automation, file management, REST API, SDK patterns, local Docker Compose development, troubleshooting, and examples
- 2 agents — general assistant and schema architect
- 10 commands for quick operations
Prerequisites
- Directus v11.12+ (tested up to v12.4.1) with MCP enabled (Settings > AI > Model Context Protocol)
- OAuth sign-in (recommended) or a Directus access token for a dedicated user whose policies grant only what the work needs
Directus 12 notes
- Licensing is enforced. Self-hosted instances run on the Core tier. SSO, custom permission rules and custom or self-hosted LLMs need a licensed tier, and an instance that stays over its limits after the 30 day grace period loses GraphQL, WebSockets and MCP until the license is resolved.
- Permissions live in policies (since Directus 11). Roles organize users, policies hold the access flags and the permissions. The plugin teaches the policy model, not the role-permission model.
/server/healthneeds a token; use/server/pingfor liveness probes.- A collection with status Inactive answers
403 COLLECTION_INACTIVEon REST, GraphQL, WebSockets and MCP (12.4.0+). Use 12.4.1 or later: 12.4.0 breaks readingdirectus_foldersas a non-admin. IP_TRUST_PROXYnow defaults tofalse; set it when Directus runs behind a reverse proxy.- The JavaScript SDK moves with Directus:
@directus/sdk26 targets Directus 12.4 and needs Node 22 or later.
Installation
As Claude Code Plugin (user scope)
claude plugin install directus-dev@agents-store
This plugin provides knowledge only — it teaches Claude how to use Directus MCP tools, API, and SDK. It does NOT connect to any Directus instance.
Connecting to Directus (project scope)
MCP connection is configured per-project, NOT in this plugin. Set it up in your project:
# Recommended: OAuth, sign in in the browser (server needs MCP_OAUTH_ENABLED and a
# client registration method, see the mcp-tools skill)
claude mcp add --transport http directus https://your-directus-instance.com/mcp
# Fallback: static token of a dedicated user
claude mcp add --transport http directus \
https://your-directus-instance.com/mcp \
--header "Authorization: Bearer YOUR_ACCESS_TOKEN"
Claude Code searches MCP tools on demand, so use the default /mcp URL. A client that loads every tool definition up front, or has a tool-count limit, can use registry mode, which exposes only search, execute and schema:
claude mcp add --transport http directus_registry \
"https://your-directus-instance.com/mcp?tool_mode=registry"
For multiple instances:
claude mcp add --transport http directus_products \
https://products.example.com/mcp \
--header "Authorization: Bearer TOKEN_1"
claude mcp add --transport http directus_content \
https://content.example.com/mcp \
--header "Authorization: Bearer TOKEN_2"
Or in the project's .mcp.json (for Stack Plugins with ${VAR}):
{
"mcpServers": {
"directus": {
"type": "http",
"url": "${DIRECTUS_URL}/mcp",
"headers": {
"Authorization": "Bearer ${DIRECTUS_TOKEN}"
}
}
}
}
Skills
| Skill | Description |
|---|---|
| mcp-tools | All 12 MCP tools reference — action patterns, parameters, query system |
| item-operations | Items CRUD, filtering, deep queries, aggregation, batch operations |
| schema-design | Data modeling, creation order, system fields, content versioning, archive pattern |
| field-relations | Field types, M2O/O2M/M2M/M2A relation workflows |
| flow-automation | Flows, operations, triggers, data chains, flow folders, calling an external app (cache revalidation) |
| file-management | Files, assets, folders, imports |
| api-reference | REST API endpoints and curl examples, policies and access endpoints |
| sdk-patterns | @directus/sdk 26 composable client, login, server-side use in Next.js (fetch options, per-request tokens, relations), content versions, policies |
| docker-local-dev | Run Directus 12 locally with Docker Compose (PostgreSQL, Redis, loopback port, health checks, Live Preview) |
| troubleshoot | Common errors, diagnostics, MCP issues, Directus 12 notes |
| examples | End-to-end scenarios and tool call patterns |
Agents
| Agent | Purpose |
|---|---|
| directus-assistant | Interactive assistant for all Directus operations |
| directus-schema-architect | Specialized schema design and data modeling |
Commands
/explore-schema, /list-collections, /list-items, /create-item, /search-items, /create-collection, /list-flows, /list-files, /snapshot-schema, /trigger-flow
Source
- Source on GitHub
- Mirror: Agents-Store/claude-plugins
- Mirror: Agents-Store/cursor-plugins
- Mirror: Agents-Store/codex-plugins
- Mirror: Agents-Store/gemini-extensions
- Mirror: Agents-Store/antigravity-skills
- Mirror: Agents-Store/kimi-plugins
- Mirror: Agents-Store/devin-plugins
- Mirror: Agents-Store/hermes-plugins
- Mirror: Agents-Store/opencode-plugins
- Mirror: Agents-Store/pi-extensions
- Mirror: Agents-Store/openclaw-generated-plugins
- Mirror: Agents-Store/agentplugins