Skip to content

feat: Add Directus Flows & Operations management + fix inspector CVEs#16

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/feature-add-flow-creation
Draft

feat: Add Directus Flows & Operations management + fix inspector CVEs#16
Copilot wants to merge 3 commits into
mainfrom
copilot/feature-add-flow-creation

Conversation

Copilot AI commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Directus Flows had no MCP representation, making it impossible to create or manage automations via AI clients. Also upgrades @modelcontextprotocol/inspector to patch two security vulnerabilities.

Flows & Operations tools

11 new tools covering the full Flows lifecycle:

Flows

  • getFlows / getFlow — list and retrieve flows
  • createFlow — create with name, trigger, status, accountability, options, icon, color, description
  • updateFlow / deleteFlow
  • triggerFlow — fire a flow via /flows/trigger/:id; supports GET/POST and optional payload

Operations (steps within a flow)

  • getOperations / getOperation
  • createOperation — attach to a flow with key, type, position_x/y, options, resolve, reject
  • updateOperation / deleteOperation

Example — create a scheduled flow then attach a log operation:

// createFlow
{ "name": "Nightly cleanup", "trigger": "schedule", "options": { "cron": "0 0 * * *" }, "status": "active" }

// createOperation
{ "flow": "<flow-id>", "name": "Log start", "key": "log_start", "type": "log", "position_x": 0, "position_y": 0, "options": { "message": "Cleanup started" } }

Security

Bumps @modelcontextprotocol/inspector 0.10.20.16.6 (devDependency):

Advisory Fixed in
Proxy server lacks authentication between Inspector client and proxy 0.14.1
XSS enabling potential command execution via untrusted MCP server 0.16.6

Copilot AI linked an issue Apr 20, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add ability to create flows in MCP feat: Add Directus Flows & Operations management + fix inspector CVEs Apr 20, 2026
Copilot AI requested a review from pixelsock April 20, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add Flow Creation to MCP

2 participants