Contact Us 1-800-596-4880

Troubleshoot AI Features in Anypoint Code Builder

The following errors sometimes occur when you use MuleSoft Dev Agent in Anypoint Code Builder.

Unexpected Results When Using Dev Agent

If the generated flow doesn’t return accurate or useful results for your prompt, try rewriting your prompt and follow the guidelines to write an effective prompt.

If results are still inconsistent, verify that your project context and Dev Agent settings are correctly configured.

Troubleshoot Dev Agent Access Errors

If you can’t open MuleSoft Dev Agent, verify the following:

Required Permissions for MuleSoft Dev Agent

MuleSoft Dev Agent always uses the permissions of the logged-in Anypoint Platform user. Dev Agent cannot perform any action that the user does not already have permission to perform.

Here are the permissions required across capabilities in the MuleSoft MCP Server:

Required Permissions

Anypoint Monitoring * Monitoring Viewer

API Manager * Manage APIs Configuration * Manage Policies * View APIs Configuration * View Policies

Exchange * Exchange Administrator * Exchange Contributor * Exchange Creator * Exchange Viewer

General * View Organization * View Connected Applications

Runtime Manager * Read Applications * Create Applications * Read Runtime Fabrics * CloudHub Network Viewer

Usage * Usage Viewer

If you want to configure MuleSoft Dev Agent with a different set of permissions, you must:

  1. Remove or disable the out-of-the-box MuleSoft MCP Server.

  2. Follow the steps in the MuleSoft MCP Server documentation to set up a connected app with the desired permissions.

Troubleshoot Anypoint Platform Authorization Errors

If you receive an authorization error, contact your Anypoint Platform organization administrator. If you are the organization administrator, check the following:

  • The user has the required Anypoint Code Builder permissions.

  • Your Anypoint Platform organization is current and active.