Contact Us 1-800-596-4880

Create Agent Networks

Anypoint Code Builder desktop includes all the agent network functionality out of the box.

If you run operations within a CI/CD environment, you can use Anypoint CLI’s plugin to set up, create, build, publish, and deploy agent networks. For more information, see Build Agent Networks in a CI/CD Environment.

Before You Begin Creating Agent Networks

Make sure you meet the prerequisites for this task. For prerequisites, see Get Started with Agent Networks.

Create Your Agent Network Project

MuleSoft Dev Agent can help you create your project. Just click the agent icon MuleSoft Dev Agent icon in the Anypoint Code Builder activity bar. Describe your agent network, including the brokers, agents, MCP servers, and LLMs you want to connect. MuleSoft Dev Agent does the rest. For more information about MuleSoft Dev Agent, see Creating API Specs with MuleSoft Dev Agent.

Suggested Prompts

  • Create a new agent network project called "Employee Onboarding." Add HR agent and CRM agent.

  • Build a travel planner broker that plans multi-city trips and generate a new agent network.

  • Generate an agent network project for incident management. Include a broker that coordinates the resolution of incidents reported by customers.

If you don’t want to use MuleSoft Dev Agent, create your project using these steps.

  1. On the Anypoint Code Builder starting panel, in Quick Actions, select Create an Agent Network. Or, run the command MuleSoft: Create an Agent Network Project in the Command Palette.

  2. If you’re not logged in already, log in to your Anypoint Platform account.

  3. In Create an Agent Network Project, enter a name for the project and select the location where the project should be created.

  4. Select the business group associated with the target space you created in Get Started with Agent Networks. The business group you select must be the same business group you selected when you created the target space.

  5. Select Create.

Anypoint Code Builder creates these files as part of your agent network project. These files define your agent network specification to meet your business requirements. For more information, see Reference: Agent Network Project Files.

  • agent-network.yaml - Specifies brokers, agents, MCP servers, LLMs, policies, and authentication in your agent network.

  • exchange.json - Specifies Anypoint Exchange assets that are referenced in your agent network, as well as the variables to use in your agent network. Each asset has an asset ID that you use in the agent-network.yaml file.

The canvas shows a visual, read-only representation of your YAML file. Select any component to show the associated code in the code editor.

Anypoint Code Builder canvas showing two different brokers with their respective agents and MCP servers

Next, configure your agent network project for your unique business needs by defining your agent network specification.