Workspace

The Workspace is a full-screen AI chat inside your WordPress admin. Think of it as your own ChatGPT, but running on your site: it can use every model you set up in AI Engine, with your own API keys, and it can read and work on your site for you (write a draft, fix a typo on a page, answer a comment, create an image for a post…).

Your conversations are kept on your own WordPress, not on a third-party service. The Workspace is free. Inside it, Knowledge, MCP Servers and Functions need AI Engine Pro. For now, only administrators can use it.

Turn it on

Go to AI Engine → Modules and enable Workspace.

The Workspace option in the AI Engine Modules tab

Then open it with the Workspace button in the AI Engine header, or from the WordPress admin bar at the top of every admin page.

The Workspace screen in WordPress admin

Chatting

Pick a model at the top right and start typing. You can switch models at any time, even in the middle of a conversation. A conversation continues on the model of its last reply, and a new chat starts on your default model. The sliders icon next to the model lets you change its parameters (temperature, reasoning, etc.) for this chat.

On the left, you’ll find your conversations. You can search them, pin them, sort them into folders, rename them, export them as Markdown, or delete them. Prompts is where you keep the prompts you use often: click one and it goes into the message box. In Settings, you can choose a light or dark theme and an accent color. These are personal, each admin has their own.

Features

Click the + button in the message box to see what the AI can use in this chat. Click the pin next to a feature to keep its button in the message box.

The Features menu of the Workspace composer
  • Attach files: send up to 8 files with your message (images, PDFs, etc.). You can also drop them on the chat. This one is always available.
  • Create Image: create and edit images by simply asking, with a model that can make images. You can then save them to your Media Library.
  • Web Search: the model searches the web on its own, with the search tool of its provider (OpenAI, Anthropic, Google, OpenRouter).
  • WordPress Tools: the AI can work on your site. More about this below.
  • Knowledge (Pro): the replies use one of your Knowledge environments.
  • MCP Servers (Pro): connect the remote MCP servers you added in AI Engine (see MCP).
  • Functions (Pro): call the functions you created with Code Engine (see Function Calling).

You decide which of these are available in AI Engine → Settings → Workspace. The choice applies to everyone using the Workspace.

Workspace features in Settings

Let the AI work on your site

WordPress Tools gives the AI the same tools Claude or ChatGPT get when they connect to your site through MCP: posts, pages, media, comments, categories, and any extra tool set you enabled (plugins, themes, WooCommerce, SEO Engine…). It needs the MCP module to be enabled, but there is nothing to connect: it works with every model, from any provider.

Tools that only read (list posts, read a page, count comments…) run right away. Before anything that changes your site, the Workspace stops and shows you what the AI wants to do, with the details. You can Deny it, Allow Once, or Always Allow in This Chat. Nothing is ever changed without your approval.

For example: “Find my last three drafts and fix the spelling mistakes”, or “Reply to the pending comments on my Japan post, in a friendly way”.

On your phone

The Workspace also exists as a free app for iPhone and Android. It talks to your own site: every model you set up, your keys and your tools, with your conversations saved on your site. Image creation works too.

To connect it, go to AI Engine → Settings → Workspace and click Show QR code (you’ll also find this on the Dashboard). In the app, choose Add a site and scan the code. That’s it!

Connect iOS or Android card in the Workspace settings

The QR code works only once, and only for 5 minutes. Behind the scenes, the app gets its own WordPress Application Password, tied to your account. Each phone appears under Paired devices, where you can rename it or disconnect it at any time.

If something doesn’t work

  • “Application Passwords are disabled on this site”: WordPress only allows Application Passwords on sites using HTTPS. Switch your site to HTTPS, or check that no security plugin turned Application Passwords off.
  • The pairing failed: click Show QR code again to get a new code. A code that was already used, or is older than 5 minutes, won’t work.
  • The app can’t reach your site, but the site works in a browser: your host probably restricts the REST API (by country, by IP, or to logged-in users), or removes the Authorization header. Have a look at When Your Host Blocks AI Engine.
  • A feature is missing from the + menu: check that it’s enabled in Settings → Workspace. WordPress Tools also needs the MCP module, and Knowledge, MCP Servers and Functions need Pro.

AI Search

AI Engine also allows you to override the default WordPress search with an AI-powered search based on keywords or embeddings.

The default WordPress search can be limited, especially if your posts are not properly indexed, tagged, or optimized, which can lead to missed results.

With AI Engine, you can use the same RAG mechanism as the chatbot does with your content via embeddings. Alternatively, if you don’t use embeddings, you can rely on AI-powered keyword search to surface relevant posts that might not appear with traditional search methods.

To get started, go to the Modules tab and enable Search (in the Frontend Extras section).

Search module in the Modules tab

This will add a new tab called “Search”. There, you can select which type of search you want to use and test them directly inside the plugin.

Simply choose your preferred option in the “Search Method” section.

Depending on the method you choose, you may need to configure additional settings in the Settings section just below. Make sure to review and complete those as well.

Each method also includes a description to help you understand what it does.

Finally, you can simply click “Search” to try the selected method.

If you want to try another method, you can use the corresponding button under the search options.

You can also use “Multi Method” to compare results across different approaches before choosing the one that works best for you.

This way, you don’t need to create your own AI-powered widget or rely on a specific AI Engine shortcode to build a search bar. You can keep using your existing setup, and the search process (as long as you’re using the default WordPress search and not a third-party solution like Elastic) will automatically become AI-powered.

Good to know

  • The Embeddings method returns any content you synced into your Knowledge environment: posts, pages, products and other custom post types.
  • The AI Keywords method searches your posts.
  • Each AI search costs a call to your AI provider, so AI Engine protects you a bit: searches made by bots and crawlers, and junk searches (one letter, a URL, very long text), get the regular WordPress search instead. And the same search is only paid for once a day, since its results are kept for 24 hours.

Content Generation

AI Engine can help you generate content for your website. However, at Meow Apps, we do not support the idea of fully AI-generated content. We believe this approach can create unnecessary content bloat on your site and across the internet. Additionally, purely AI-generated content can be easily detected by modern AI and web search tools, which may negatively impact your site’s SEO.

What we advocate instead is human-written content enhanced by AI assistance. AI should be used as a tool to help you work faster, write more clearly, and explore new ideas, not to replace human creativity and expertise.

With that in mind, here are some effective ways AI Engine can support your content creation workflow.

Content Studio

The Content Studio gives you a first draft, not a publish-ready article. Always review it, add your own experience and rewrite what needs it before you publish.

In the Modules tab, under Content Creation → Generators, enable the Content Generator.

You’ll also find a family of generator tools available for creating images and videos, allowing you to explore different types of AI-assisted content directly from the admin.

Generators in the Modules tab

This adds a Content button to the header of AI Engine, which opens the Content Studio. It guides you from a brief to a draft in four steps, shown at the top of the screen:

  • Brief: describe the article (Topic, Audience, Tone, Length, and optional Keywords and Notes for the writer), and check the model and language. Then click Plan the outline.
  • Outline: rename, reorder, add or remove sections, and add key points to guide the writer, before a single paragraph is written.
  • Draft: each section is written in turn. You can ask for a section again, make it shorter, longer, more engaging or simpler, or edit it by hand.
  • Save Draft: pick the post type and, if you like, a featured image (from your Media Library or generated). The article becomes a draft in WordPress; nothing is published.
Content Studio, Brief step

You can save a brief as a Template (with its model and language) to reuse it later. Templates are shared with the classic generator. That older screen is still available from a link in the Brief step, and it is the one to use for bulk generation from a list of topics.

Content Assistant

As the name suggests, this is not a direct content generation tool but rather an assistant tool. It adds Nyao as a popup chatbot within your post editor, allowing you to interact with it while you write.

With Nyao, you can ask for help refining your text, generating ideas, improving clarity, or rephrasing content in real time without leaving the editor, interact with blocks and more. This makes it a convenient companion for enhancing your writing workflow directly inside WordPress.

In the Modules tab, under Content Creation, enable the AI Assistant. Editing the post directly is a Pro feature.

AI Assistant module in the Modules tab

Once you click the popup, a side panel will open where you can interact with the chat assistant. This feature works with the default WordPress content editor, Gutenberg, allowing you to get assistance directly while editing your posts or pages.

The assistant has access to your WordPress Media Library, allowing it to add and manipulate images directly within your content.

MCP

MCP (Model Context Protocol) is a standardized bridge that allows AI applications (clients) to easily access tools exposed by a service. In this case, AI Engine exposes these tools through your WordPress REST API, enabling the AI to interact with your WordPress site much like a user would. This includes performing actions such as creating content, retrieving data, and managing various aspects of your website directly through AI-driven workflows.

This is the most advanced post generation tool available to date. Although AI Engine MCP is not specifically designed to generate post content, its access to all WordPress core tools makes it the best overall solution for helping you write and produce high-quality content.

You can review and edit existing content, add/generate images, refactor text, explore new ideas, improve SEO, clean/analyze current content and more by taking advantage of a wide range of powerful features.

If you want to get started read here: AI Engine MCP

Admin Modules

AI Copilot (Magic Wand)

AI Engine can also help you directly inside your posts through Magic Wand icons, and with a chatbot popup, which trigger AI-powered automated actions such as generating content, media, and more for your posts.

Start by enabling the AI Copilot module in the Modules tab (in the Content Creation section). The chatbot popup described below is a separate module, AI Assistant, right above it.

AI Assistant and AI Copilot modules in the Modules tab

These features are designed to work with the WordPress block editor (Gutenberg).

Then you’ll be able to trigger the Magic Wand from different places:

  • Post listing table
  • Post settings
  • Post content ( press space to trigger )
  • Post blocks

AI Assistant

With the AI Assistant module enabled, you will also have a Nyao pop-up icon in the bottom right corner of the editor.

If you click on it, it will open up a side panel, which is literally an AI engine chatbot. It is powered by a suite of function-calling tools made for post-editing, so you can ask it to write, correct, change, or update anything, and it will do it in front of you. Editing the post directly is a Pro feature; in the free version, the assistant gives you suggestions that you apply yourself.

Magic Wand Customization

The Magic Wand module in AI Engine allows you to customize the instructions (prompts) sent to the AI for each feature.

To modify the instructions sent to the AI, you can use the `mwai_prompt_{actionName}` filter. This allows you to change the system prompt or the instructions wrapper without replacing the entire logic.

The following actions are available for customization:

  • correctText (Correct Text)
  • enhanceText (Enhance Text)
  • longerText (Longer Text)
  • shorterText (Shorter Text)
  • translateText (Translate Text)
  • translateSection (Translate Post Section)
  • suggestSynonyms (Suggest Synonyms)
  • generateImage (Generate Image)
  • suggestExcerpts (Suggest Excerpts)
  • suggestTitles (Suggest Titles)

If you want to change the behavior of the “Correct Text” feature (e.g., to make it more formal), you can use the following code snippet in your theme’s `functions.php` or a custom plugin:

add_filter( 'mwai_prompt_correctText', function( $prompt, $arguments ) {
    // $prompt contains the default instruction.
    // $arguments contains context like 'postId', 'text', etc.
    
    // Return your custom instruction
    return "Correct the grammar and spelling in this text. Please ensure the tone is professional and formal. Keep the same language.\n\n";
}, 10, 2 );

If you need to completely change how a feature works (not just the text prompt), you can hook into the `mwai_magic_wand_{action}` filter. This filter expects the result array to be returned.

add_filter( 'mwai_magic_wand_correctText', function( $result, $arguments ) {
    // Perform your own logic here
    // ...
    
    return [
        'mode' => 'replace',
        'type' => 'text',
        'result' => 'This is the replaced text.',
        'results' => ['This is the replaced text.']
    ];
}, 10, 2 );

External Integration

You can use your AI Engine environments and chatbots on third-party services using the public REST API. You also have the possibility of integrating your chatbot UI (along with its full configuration and connections) into any other website you want using cross-site script integration, even if it’s not running WordPress!

Cross-Site is a Pro feature: it only appears when AI Engine Pro is active. On the free version of AI Engine, the option is not shown anywhere.

If you’re interested in using your AI Engine environment and chatbots in external applications like Discord, WhatsApp, webhooks, and more, you’ll need to use the REST API. You can learn more about it here: AI Engine REST API.

1. Enable Cross-Site globally

Go to the Modules tab of AI Engine and, in the Frontend Extras section (alongside Forms and Search), enable Cross-Site.

2. Configure the chatbot

Open the Chatbots tab and select the chatbot you want to embed. In that bot’s settings, open the Cross-Site section, enable the option there, and you’re done.

Note: the Cross-Site section appears for standard (shortcode) chatbots, not for chatbots used in Gutenberg block mode. Most people embed a popup chatbot; if yours is not a popup, AI Engine reminds you to enable Popup under Appearance, and the embed code adapts to the mode you chose.

You need to register the domains on which you want to load the chatbot scripts. If you don’t do so, the script requests will be rejected due to CORS. This ensures your chatbots can’t be used without your consent by someone else trying to load the same scripts.

Now you can just copy and paste the “Embed Code” into any webpage you want.

If you’re doing this on WordPress, either insert it inside a script that is loaded or use a Custom HTML block in your post directly.

If you’re using it on a site that doesn’t run WordPress, make sure you don’t insert it as plain text: the content must be interpreted as HTML so the scripts can load properly.

Discussions

Go to Settings > Chatbot and enable Discussions.

Discussions option in Settings, Chatbot

This will add a Discussions tab where you can view a history of all the conversations that have taken place in your chatbots, presented in a human-readable format. Click a conversation to read it on the right, with its details (model, chatbot, user, IP, dates). The filters in the column headers help you find a conversation by its words, its chatbot or its user, and you can export the list with Export.

Discussions tab with a selected conversation

All of this data remains entirely on your server. Meow Apps does not process or store any of it. You can read this article to learn more.

You can add a list of the discussions (like ChatGPT) next to your chatbot, by using the mwai_discussions shortcode on your website so each user can see their own conversation history.

[mwai_discussions id="default" text_new_chat="+ Start New Discussion"]
Discussions list displayed by the mwai_discussions shortcode

You can go to Settings > Chatbot > Discussions to change the display for this shortcode: the number of discussions per page, the metadata shown under each title, and whether titles are summarized by AI. By default, when the shortcode is loaded on a page, the recent discussions are fetched every 5 seconds. If you prefer to avoid repetitive requests, you can pick a longer Refresh Interval, or choose Manually to show a refresh button instead. Retention sets how long discussions are kept before a daily task deletes them.

For Developers

If you want to customize the refresh interval with more control or implement custom logic, you can also use the mwai_discussions_refresh_interval filter. The value is in milliseconds:

add_filter( 'mwai_discussions_refresh_interval', function( $interval ) {
  return 30000; // 30 seconds
} );

Local Memory

If you enable the Local Memory option (in the Chatbot section of your chatbot), the current discussion thread will be saved in the user’s browser local storage, not in your database. The shortcuts and blocks of the last reply are kept too. This means the conversation will persist even if the user refreshes the page or navigates to a different one, effectively caching the chat locally.

However, since this is browser-based, the conversation will not be preserved if the user clears their local storage, switches devices, or uses a different browser.

Local Memory option in the Chatbot section

History Strategy

If the model you have selected supports Responses (OpenAI) you will find a section called Advanced in your chatbot settings, in which you can choose the History Strategy, which basically dictates how the previous messages from the thread are sent into the current query history to maintain context.

History Strategy in the Advanced section

Available Options

Automatic

Best choice for most users as it optimizes performance while ensuring reliability

  • Default setting that intelligently chooses the best strategy for each situation
  • Uses Incremental mode when a valid previous_response_id is available
  • Automatically falls back to Full History mode when:
    • No previous response ID exists (first message in conversation)
    • The response ID has expired (after 30 days)
    • The response ID is invalid or corrupted

Incremental

  • Uses OpenAI’s previous_response_id parameter to maintain conversation state
  • Only sends the latest message instead of the entire conversation history
  • More efficient in terms of:
    • Reduced token usage (potentially lower costs)
    • Faster processing times
    • Lower bandwidth usage
  • Limitations:
    • Only works with valid response IDs (expire after 30 days per OpenAI policy)
    • Requires the conversation to have been initiated with Responses API
    • May fall back to Full History if response ID becomes invalid

Full History

  • Sends the complete conversation history with every request
  • Traditional approach used by most chat implementations
  • More reliable for complex conversations with many turns
  • Higher resource usage:
    • Increases token consumption
    • Larger request payloads
    • May impact response times for long conversations
  • Always works regardless of conversation age or API changes

Chatbots

Chatbots are the most used feature of AI Engine. Once yours is running, these pages cover how to shape it: its look and behaviour, the conversations it keeps, the moderation you can apply, and how to let visitors talk to it.

MCP (Model Context Protocol)

MCP (Model Context Protocol) is the standard way for AI assistants to use tools. With AI Engine, it works in two directions:

  • Your WordPress as an MCP server: Claude, ChatGPT, Claude Code or any other AI assistant connects to your site and can read, write and manage it through the tools AI Engine exposes.
  • Your chatbots using remote MCP servers (Orchestration): a chatbot in AI Engine connects to an MCP server somewhere else (another site, a third-party service) and uses its tools during the conversation.

WordPress MCP Server

The MCP server is free and fully available in the free version of AI Engine: the connection, the sign-in (OAuth), read-only access, Editor Access and the WordPress tools. The connection is direct, with no relay in between, and your credentials stay on your site. Pro adds more tool sets, MCP Logs and Orchestration (see below).

Turn it on in Modules > MCP & Agents > MCP. Everything else happens in Settings > MCP.

Connect an AI assistant

The Connect an AI assistant card at the top of the MCP settings does most of the work. It first checks that your host lets AI assistants reach your site (“Your site is ready to connect”), and if something blocks them, it tells you what and gives you a message for your host. Then pick Claude, ChatGPT, Claude Code or Other and follow the steps. For Claude, Open Claude, already filled in opens Claude with your site’s connector ready, so there is nothing to copy. The card turns to Connected as soon as the assistant signs in.

Connect an AI assistant card in the AI Engine MCP settings

Each assistant has its own article with the details:

  • Claude: Claude Desktop and claude.ai, through a custom connector or Claude’s directory.
  • ChatGPT: the official app, or a custom plugin in Developer mode.
  • Claude Code: control your WordPress site from your terminal.
  • OpenClaw: give your AI agent access to your WordPress site.

Something not working? Read MCP Connection.

Sign-in and access

Claude, ChatGPT and most assistants sign in with OAuth: you paste the MCP URL (https://yoursite.com/wp-json/mcp/v1/http), and the assistant opens an authorization page on your site. You must be logged in to WordPress in that browser. There you choose the access and click Approve:

  • Full access: the app can read, create, edit and delete, within what your account can do.
  • Read-only: the app can look at your site, but cannot change anything. It only sees the tools that read.
AI Engine authorization page with Full access and Read-only choices

Every action then runs as the WordPress account that approved it. By default only administrators can approve. Turn on Editor Access to let Editors connect with their own account, for content only: reading, and writing or editing the posts, pages, media, categories and comments they can already edit in WordPress. Settings, users, plugins, themes and deleting stay with administrators.

Tools that cannot sign in through a browser (scripts, custom integrations, and Claude Code if you prefer) can use the Bearer Token instead. It is one shared secret, it acts as an administrator, and its Access Level (Admin, Read-Write or Read-Only) decides which tools it can use. Keep it secret.

Connections

Every app that signed in with OAuth is listed under Connections, one row per user and app, with its access (Full access, Content only for an Editor, or Read-only). Make read-only and Allow changes switch a connection between the two, and the trash button revokes it: the app has to sign in again. Connections using the Bearer Token are not listed, since they never sign in.

Connections block listing an authorized app with its access level

Undo and change history

Every change an assistant makes through MCP is recorded with what it replaced, and kept 30 days: posts and their blocks, custom fields, categories and tags, menus, CSS and site styles, settings and users. With Pro, also Elementor pages, plugin activations, theme switches and WooCommerce products.

  • In the MCP tab: each row of Recent Changes has an Undo button. A row that groups several edits to the same item undoes them all. History opens the full list, which you can filter by assistant or by tool.
  • By asking: tell your assistant “undo what you just did”, or ask it to list its recent changes and undo one. Editors can only undo their own changes.

Undo never erases newer work. If the item was edited again after the assistant (by you or by someone else), the undo stops and the row says Changed since. In History, Undo anyway is there when you really want to go back. An undo can itself be undone.

A few changes can’t be undone, and History marks them so: anything deleted for good, new users, files edited in plugins and themes, SQL queries, and WooCommerce order statuses (changing them sends emails and moves stock, so change them back from the order).

Ask before deleting, and Drafts Only

In the MCP tab, Access > Settings has two more guards:

  • Ask Before: Never, Deleting (the default on new sites), or Deleting and site changes (settings, plugins, themes, users, files and SQL). When an assistant tries one of these, nothing happens yet: it gives you a link, and the request appears in the MCP tab under Waiting for You, in plain words, with Approve and Decline. Once you approve, tell the assistant: it sends the same request again and it runs once. Requests wait an hour for your decision, and an approval is good for 15 minutes. Edits that can be undone never ask.
  • Drafts Only: assistants create and edit drafts, but never publish, schedule, or change what is live. You publish.

MCP Settings

This block holds the MCP switch with your endpoint URL, Editor Access, and four sections:

  • How it works: a short reminder of OAuth and Bearer Token.
  • Connection Test: probes your own endpoints the way Claude does, to see if your host or CDN blocks them.
  • Logging: records every tool call in Insights > MCP Logs (needs the Insights module, Pro), optionally with arguments and results.
  • Bearer Token: the token, its Access Level, and ready-to-copy Claude Code commands.
MCP Settings block with MCP and Editor Access options

Tools

Choose what your AI can do in MCP Tool Sets. Each set shows how many tools it brings:

  • WordPress (free, on by default): posts and pages (edited block by block, so long pages stay intact), media, comments, users, taxonomies, menus, Additional CSS and site styles, block patterns, editor notes and WordPress settings, plus image generation and vision. SEO titles, descriptions, focus keywords, canonical URLs, noindex and social previews are written in the SEO plugin you already use: Yoast SEO, Rank Math, All in One SEO, SEOPress, The SEO Framework, Slim SEO or SEO Engine. With Advanced Custom Fields active, your assistant can also read and fill in ACF fields. On block themes, it can edit the header, footer and templates; on classic themes, the widgets of each sidebar. To finish its work properly, it can also check a page as visitors see it, read the PHP error log, cron and Site Health, flush caches and permalinks, and restore an earlier revision of a post. It can also moderate comments in bulk, share a draft through a preview link that works without an account (it expires, and is never indexed), manage redirects with the Redirection plugin, and read form entries from Contact Form 7 (with Flamingo), Fluent Forms and Ninja Forms.
  • Plugins and Themes (Pro): install, activate, switch and update, and read and edit their files, so your AI can build or fix a plugin or a theme.
  • Database (Pro): run SQL queries on the WordPress database.
  • Elementor (Pro): read Elementor pages as an outline and change one element at a time (text, settings, insert, delete), saved through Elementor with a revision.
  • Beaver Builder (Pro): read Beaver Builder pages as an outline, change a module’s text or settings, replace text, or remove a module, saved through Beaver Builder. Page Builder by SiteOrigin brings its own tools, which appear with Abilities on, and AI Engine adds undo to them. Pages built with WPBakery, Avada (Fusion Builder) or older Divi 4 pages (shortcodes) are read as an outline and edited piece by piece (free, shown when one of them is active); Divi 5 pages are blocks, edited with the block tools.
  • Polylang, WPML and WooCommerce (Pro): available when the plugin is installed. For WooCommerce: products and their variations (sizes, colors…), coupons, orders, stock, customers and reviews.
MCP Tool Sets with WordPress, Plugins, Themes, Database, Polylang, WPML and WooCommerce

Under From WordPress, two more options expose standard WordPress interfaces as they are. Abilities turns the abilities other plugins register through the WordPress Abilities API (WooCommerce, Easy Digital Downloads, and more) into MCP tools, each keeping its own permission checks. Dynamic REST gives raw access to the WordPress REST API; it is more technical, so only use it if you need it.

Other plugins can add their own tools too. With SEO Engine, Social Engine, Code Engine or Media Cleaner installed, your assistant can also use their tools (for example, scan your posts for SEO and get their scores). MCP Tools & Abilities lists every tool that is on, grouped by plugin.

MCP Tools and Abilities list with tool counts per plugin

After changing the tools, refresh them in your assistant so it sees the new list: Refresh in ChatGPT’s plugin page, or reconnect in Claude.

If you are a developer, you can add your own tools or make your plugin compatible with MCP through AI Engine: read this documentation.

Do I need the MCP Adapter or the WordPress AI plugin?

No. AI Engine has its own MCP server, with tools written for AI assistants (clear parameters, short answers, safety hints), OAuth for Claude and ChatGPT, and per-user access, so there is nothing else to install. The MCP Adapter is the official WordPress bridge that turns the abilities other plugins register into MCP tools. If you already run it, both live side by side on different endpoints, and the Abilities option lets AI Engine’s own server expose those abilities too.

MCP Orchestration

Orchestration (Pro) lets your chatbots use tools from remote MCP servers during a conversation. Think of it as Function Calling, but with tools that someone else already built and hosts. You can even connect another WordPress site running AI Engine. Not sure which one you need? Read Should I use Functions or MCP?

First, turn on Orchestration in Modules > MCP & Agents. A new Orchestration section appears in Settings.

Orchestration option in the MCP and Agents modules

In Settings > Orchestration, add your servers under MCP Servers: a Name, the URL (it must start with https://) and, if the server needs one, a Token. To try it, you can use https://remote.mcpservers.org/fetch/mcp, a free server with no authentication that fetches web pages and turns them into Markdown.

MCP Servers settings with a remote Fetch server

Then open your chatbot and select the servers it may use in its MCP Servers section. Their tools are fetched and offered to the model, just like functions.

MCP Servers section in the chatbot settings

If you don’t see the MCP Servers section, check the chatbot’s model: pick an actual OpenAI or Anthropic model (not “Default” or “None”), since only those can use remote MCP servers.

Manage MCP access (developers)

MCP can do a lot on your site, so access is strict by default:

  • An OAuth connection acts as the user who approved it. Only administrators (users who can manage_options) can approve, plus Editors when Editor Access is on. Anyone without manage_options gets a content-only session, where each call is checked against what that user can do in WordPress.
  • The Bearer Token acts as an administrator, limited by its Access Level. When a token is set, requests without a valid token or OAuth sign-in are refused.

Three filters let you go further. To let other users approve connections (they get the same content-only session as Editors), use mwai_mcp_oauth_user_can_authorize:

<?php
// Let authors connect an AI assistant with their own account (content only)
add_filter( 'mwai_mcp_oauth_user_can_authorize', function( $allowed, $user_id ) {
  if ( $allowed ) {
    return true;
  }
  return user_can( $user_id, 'publish_posts' );
}, 10, 2 );

mwai_allow_mcp is the final yes or no for each request to the MCP endpoint. Hook it after AI Engine’s own check (priority 20 or more), when the connected user is known:

<?php
// Only these WordPress users may use MCP, even among administrators
add_filter( 'mwai_allow_mcp', function( $allow, $request ) {
  $allowed_users = [ 1, 5, 42 ];
  return $allow && in_array( get_current_user_id(), $allowed_users, true );
}, 20, 2 );

To refuse specific tools, use mwai_mcp_callback with a priority lower than 10, so your check runs before the tool itself. Use the real tool names, listed in MCP Tools & Abilities:

<?php
// Nobody but user 1 may change WordPress options or create users through MCP
add_filter( 'mwai_mcp_callback', function( $result, $tool, $args, $id, $mcp ) {
  $protected = [ 'wp_update_option', 'wp_create_user', 'wp_update_user' ];
  if ( in_array( $tool, $protected, true ) && get_current_user_id() !== 1 ) {
    // This code makes MCP Logs show the call as denied.
    throw new Exception( "The tool '{$tool}' is not allowed for this account.", Meow_MWAI_Labs_MCP::DENIED_CODE );
  }
  return $result;
}, 5, 5 );

Function Calling

Function Calling is the idea of letting the AI model know about a list of functions it can call. The model will then wait for the result of the executed function and do (or not) something with the output, if there is one.

Function Calling (also called Tools) needs some functions to be callable so they can be executed. Note that the AI itself does not run code: it can’t execute functions directly. Instead, it knows that it has access to a list of predefined functions that you’ve created.

When the AI model determines that it wants to execute a function, it sends back a reply with the name of the function and any necessary arguments. Then, your server (in the case of AI Engine) runs the function, generates an output, and sends it back to the AI model so it can finalize its response.

Dynamic and Static

There are two types of functions that can be called: Dynamic and Static.

A dynamic function is used to enrich the AI’s final reply with additional data. Dynamic functions can also be called in a cascade, depending on the functions you’ve defined and the AI’s decisions. For example, if you ask the AI to “send me an email,” it might first call a function to retrieve your email information, then call another function to actually send the email.

It’s recommended to use dynamic functions, as the final answer will be written by the AI and will therefore flow naturally. You can register your functions using Code Engine or manually.

Code Engine

Code Engine was previously called Snippet Vault, which is now deprecated. So make sure you’re using Code Engine to continue receiving updates.

The first step is to download the Code Engine plugin. This plugin is 100% free and can be used similarly to Code Snippet, but with even more features. If you’re familiar with Code Snippet, you can even import all your code from there for an easy switch. You can find the plugin here: Code Engine.

Code Engine allows you to store PHP and/or JS snippet code inside a dashboard and execute them whenever you want, even using a REST API.

You have a special type of snippet in Code Engine called Callable. As the name suggests, this snippet contains one single function, in PHP or in JS. You can declare its arguments and define them in specialized side settings. Once this is done, the AI model can use them easily, and you don’t have to do anything more on your side.

By using Code Engine, you can declare Callable functions that can be used in Function Calling. Code Engine and AI Engine will then work together automatically to handle the entire pipeline (asking to run a function → running the function → returning the result to the AI → continuing the query) without you needing to do anything. This is very powerful and is the only plugin on WordPress that can do this!

Then go to your chatbot settings and open the “Functions” section. Select the functions this chatbot can use, and AI Engine handles the rest. Each function shows whether it runs in PHP (on your server) or in JS (in the visitor’s browser). The section only appears when the chatbot’s model supports function calling.

Functions section of the chatbot settings, with Code Engine functions to select

Here, we’re running a PHP callable function, so when the AI wants to run the function, it will be executed on your server. This is really useful if you need to access the database, get user information, fetch posts, and so on.

But it’s not limited to that. You can also create a JavaScript callable function to interact with your website. For instance, you could ask Nyao to change the color of the website, and watch it happen live!