Create Agent Networks
Whether you want to use MuleSoft Dev Agent or the UI, Anypoint Code Builder includes all the agent network functionality you need to get started.
Before You Begin
Make sure you review the prerequisites.
Create a Network Using the MuleSoft Dev Agent
MuleSoft Dev Agent can help you create your project. For more information about MuleSoft Dev Agent, see Creating API Specs with MuleSoft Dev Agent.
-
In the Anypoint Code Builder activity bar, click the agent icon
. -
Describe your agent network, including the brokers, agents, MCP servers, and LLMs you want to connect. MuleSoft Dev Agent does the rest.
To get started try one of these 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.
Create a Network Using Anypoint Code Builder
-
If you’re not logged in, log in to your Anypoint Platform account.
-
In Anypoint Code Builder choose on of the following:
-
In Quick Actions, select Create an Agent Network.
-
From the Command Palette, run this command: MuleSoft: Create an Agent Network Project.
-
-
Enter a name for the project and select the location to create the project.
-
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.
-
Select Create Project.
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 Agent Network Project File Reference.
-
agent-network.yamlSpecifies brokers, agents, MCP servers, LLMs, policies, and authentication in your agent network.
-
exchange.jsonSpecifies 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.
Create a Network Using the Anypoint CLI
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.



