Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Agent Editor Statements

Statements for managing AI agent editor documents. Requires Mendix 11.9+ and the AgentEditorCommons module.

The Mendix Agent Editor introduces four document types that must be set up in dependency order:

  1. Model — an LLM configuration referencing a Mendix Cloud GenAI Portal resource key
  2. Knowledge Base — a vector knowledge base for retrieval-augmented generation
  3. Consumed MCP Service — an external tool server (Model Context Protocol)
  4. Agent — an AI agent that references a model and optionally uses knowledge bases and MCP services

A fifth, the Published MCP Service (Agent Editor 2.6+, MCP Server 5.x), is the other direction: an MCP server the app publishes, exposing its microflows as tools.

Statements

StatementDescription
CREATE AI MODELDefine an LLM model configuration
CREATE KNOWLEDGE BASEDefine a vector knowledge base
CREATE CONSUMED MCP SERVICERegister an external MCP tool server
CREATE PUBLISHED MCP SERVICEPublish the app’s microflows as an MCP server
CREATE AGENTDefine an AI agent with prompts and optional tools
StatementSyntax
List AI modelsLIST AI MODELS [IN module]
List knowledge basesLIST KNOWLEDGE BASES [IN module]
List consumed MCP servicesLIST CONSUMED MCP SERVICES [IN module]
List published MCP servicesLIST PUBLISHED MCP SERVICES [IN module]
List agentsLIST AGENTS [IN module]
DescribeDESCRIBE { MODEL | KNOWLEDGE BASE | CONSUMED MCP SERVICE | PUBLISHED MCP SERVICE | AGENT } module.Name

Drop Statements

mdl 1;
DROP AI MODEL module.Name;
DROP KNOWLEDGE BASE module.Name;
DROP CONSUMED MCP SERVICE module.Name;
DROP PUBLISHED MCP SERVICE module.Name;
DROP AGENT module.Name;

Prerequisites

  • Mendix 11.9+
  • AgentEditorCommons module installed
  • Encryption module configured (32-character key)
  • ASU_AgentEditor registered as after-startup microflow

Version Gate

All agent editor statements are version-gated to Mendix 11.9+. Running them against an older project produces:

feature not available: agent editor requires Mendix >= 11.9