Skip to content
Conduit

mcp server

mulesoft-cookbook

Practical MuleSoft recipes — 100+ DataWeave patterns, AI agent integration, CI/CD pipelines, migration guides, and more.

shakarbisetty/mulesoft-cookbookcommunitylistedunreviewednot running here yet

Set up

Runs on your computer. Pick your agent and operating system.

This project does not publish an install method we can turn into a config. Follow the README instead.

README

synced Oct 14, 2026

MuleSoft Cookbook

License: MIT PRs Welcome MuleSoft Recipes GitHub Stars

Practical recipes for MuleSoft developers — DataWeave patterns, error handling, performance tuning, AI agent integration, API management, CI/CD pipelines, migration guides, Salesforce integration, cost optimization, troubleshooting, enterprise architecture, messaging, and connector patterns.


What's Inside

SectionWhat You GetRecipes
DataWeaveTransformation patterns, Exchange modules, cheatsheet, anti-patterns104
Error HandlingGlobal handlers, retry/circuit breaker, DLQ, transactions, notifications51
PerformanceStreaming, memory tuning, batch optimization, caching, thread pools49
API ManagementFlex Gateway, custom policies, rate limiting, security, governance57
AI AgentsMCP, A2A, RAG, Agentforce, inference, Vibes, AI testing, AI gateway63
DevOpsCI/CD pipelines, IaC, secrets, deployment, testing, observability53
MigrationsJava versions, runtime upgrades, CloudHub, connectors, architecture63
Cost OptimizationvCore sizing, API consolidation, license audit, TCO comparison7
SalesforceBidirectional sync, Bulk API, CDC, Agentforce, OAuth, Composite API9
TroubleshootingThread dumps, OOM debugging, error decoding, deployment failures8
ArchitectureAPI-led patterns, C4E, event-driven, DR strategy, maturity model8
MessagingAnypoint MQ vs Kafka, FIFO, DLQ replay, circuit breaker, ordering7
ConnectorsSAP, Workday, ServiceNow, NetSuite, EDI, SFTP, AS2, database CDC8

Quick Start

Pick a section from the table above, or jump straight to the most popular content:

DataWeave (most popular)

%dw 2.0
output application/json
---
payload filter $.status == "active"
    map {
        name: $.firstName ++ " " ++ $.lastName,
        email: lower($.email)
    }

Browse all 104 patterns: dataweave/


Table of Contents

DataWeave Patterns (104)

CategoryPatternsDifficulty
Array Manipulation10Beginner to Advanced
Object Transformation7Beginner to Advanced
String Operations6Beginner to Intermediate
Type Coercion4Beginner to Advanced
XML Handling7Intermediate to Advanced
CSV Operations4Beginner to Intermediate
Error Handling7Beginner to Advanced
Date/Time4Beginner to Intermediate
Advanced Patterns9Advanced
Real-World Mappings6Intermediate to Advanced
Security & Encoding7Intermediate to Advanced
API Response Patterns5Intermediate to Advanced
Flat File / Fixed Width4Intermediate to Advanced
Lookup & Enrichment4Intermediate to Advanced
Performance Optimization6Advanced
Event-Driven2Advanced
Math & Precision2Intermediate
Observability2Intermediate
AI Integration2Advanced
Utility Modules5Intermediate to Advanced

Additional DataWeave Resources

Error Handling (51 recipes)

Global handlers, retry patterns, circuit breaker, dead letter queues, async errors, transactions, connector-specific errors, alerting, validation, and recovery patterns.

Browse all error handling recipes

Performance (49 recipes)

Streaming strategies, memory/heap tuning, batch optimization, connection pools, caching, threading model, API performance, database tuning, CloudHub sizing, HTTP/2 multiplexing, and monitoring.

Browse all performance recipes

API Management (57 recipes)

Flex Gateway deployment, AI gateway, custom WASM policies, rate limiting, OAuth/JWT/mTLS security, OWASP API Top 10 mapping, MCP/A2A gateway, agent governance, API design patterns, versioning, and analytics.

Browse all API management recipes

AI Agent Integration (63 recipes)

MCP server/client setup, A2A protocol, advanced MCP (OAuth, streaming, tracing), RAG pipelines, Agentforce actions, inference connector, Vibes prompt engineering and governance, LLM gateway, AI testing, multi-cloud LLMs, and AI security.

Browse all AI agent recipes

DevOps & CI/CD (53 recipes)

CI/CD pipelines (GitHub Actions, GitLab, Jenkins), environment promotion, IaC (Terraform, Helm), secrets management, deployment strategies (blue-green, canary), MUnit testing (batch, async, error, coverage), RTF, observability, and compliance.

Browse all DevOps recipes

Migrations (63 recipes)

Java version upgrades, Mule runtime migrations (3→4, 4.9→4.10, 4.10→4.11), CloudHub 1→2, API spec conversions, connector upgrades, security migrations, monitoring migrations, build tool upgrades, and architectural modernization.

Browse all migration recipes

Cost Optimization (7 recipes)

vCore right-sizing calculator, API consolidation patterns, usage-based pricing migration, dev sandbox cost reduction, CloudHub vs RTF vs on-prem TCO comparison, license audit checklist, and Anypoint MQ cost optimization.

Browse all cost optimization recipes

Salesforce Integration (9 recipes)

Bidirectional sync with conflict resolution, Bulk API 2.0 partial failure recovery, CDC vs Platform Events decision tree, governor limit-safe batch processing, Agentforce action registration, OAuth patterns, Composite API, Streaming API, and data migration strategies.

Browse all Salesforce recipes

Production Troubleshooting (8 recipes)

Thread dump analysis, top 30 error messages decoded, memory leak detection step-by-step, deployment failure flowchart, Anypoint Monitoring vs OpenTelemetry, connection pool exhaustion diagnosis, DataWeave OOM debugging, and batch job failure analysis.

Browse all troubleshooting recipes

Enterprise Architecture (8 recipes)

API-led anti-patterns, C4E setup playbook, event-driven architecture with MuleSoft, domain-driven API design, multi-region DR strategy, application network topology, microservices vs API-led, and integration maturity model.

Browse all architecture recipes

Messaging (7 recipes)

Anypoint MQ vs Kafka honest comparison, FIFO queue patterns, DLQ reprocessing, large payload workarounds, consumer circuit breaker, VM queue vs Anypoint MQ decision tree, and message ordering guarantees.

Browse all messaging recipes

Connector Patterns (8 recipes)

SAP IDoc processing, Workday custom reports, ServiceNow CMDB integration, NetSuite patterns, database change data capture, SFTP guaranteed delivery, EDI X12/EDIFACT processing, and AS2 message exchange.

Browse all connector recipes


Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Adding a new pattern? Place it in the appropriate section folder with a README explaining the concept.

Adding a new section? Open an issue first to discuss the scope.


License

MIT — Copyright (c) 2026 Shakar Bisetty


Built by WeavePilot — practical MuleSoft recipes for the community.

↑↓ navigate openesc close