
Designing API Specs with MuleSoft Dev Agent
Simplify your API designs by generating API specifications with MuleSoft Dev Agent. Use natural language prompts in Dev Agent to build APIs. The MuleSoft MCP Server) powers these capabilities and is at the core of API spec generation in Anypoint Code Builder.
MuleSoft Dev Agent is available on US, EU, Canada, and Japan cloud hosts. |
Trust Layer
The Einstein trust layer bridges Anypoint Platform and the underlying large language models (LLMs):

1 | You create a prompt based on your use case and submit it through MuleSoft Dev Agent. |
2 | To minimize inaccurate responses, prompts are grounded with MuleSoft proprietary data and user context. |
3 | Data is sent securely through the MuleSoft MCP Server, which comes pre-configured in Dev Agent, to the LLM. |
4 | All data remains within the Salesforce Shared Trust Boundary. |
5 | After the LLM generates a response, the content is returned through the secure pathway. |
6 | MuleSoft validates the generated output to ensure that the specification works within the MuleSoft ecosystem. |
7 | Anypoint Code Builder displays the validated response in the IDE. |
AI features can produce inaccurate or harmful responses. Review all generated output for accuracy and safety before applying it in production. You assume responsibility for the generated content when making business decisions. |
MuleSoft Dev Agent Settings
MuleSoft Dev Agent provides additional options to customize and extend how you interact with generative AI in Anypoint Code Builder.
Configure Dev Agent Settings
Access the Auto-approve Settings panel by clicking the Auto-approve section at the bottom of the MuleSoft Dev Agent window. From here, you can configure permissions such as reading and editing project files, executing commands, and using MCP servers.
Add Rules and Workflows
Click the Rules & Workflows icon in the lower-left corner of the Dev Agent panel. Use global or workspace rules to guide Dev Agent behavior, and create workflows with slash commands for repeated tasks.
Provide Additional Context
Click the Add Context icon in the lower-left corner of the Dev Agent panel to upload supporting files, such as requirements, config files, or terminal outputs. These files are used as context for more accurate API generation.
Extend Dev Agent with MCP Servers
MuleSoft Dev Agent comes preconfigured with a MuleSoft MCP Server, and you can connect additional MCP servers for custom capabilities. See MuleSoft MCP Server documentation.
Adding Rules and Workflows
You can customize how Dev Agent generates API specifications by adding rules and workflows:
-
Rules let you enforce coding or design conventions across generated specs. For example, you can define error-handling patterns or naming standards.
-
Workflows define reusable sequences of steps that Dev Agent can execute automatically. Workflows can be triggered with slash commands in the Dev Agent panel.