mulewatch

v0.1.2
io.github.brbousnguar/mulewatch Checked 1 hour ago Published 2 months ago

Read-only MCP server for MuleSoft Anypoint: app logs, archive search, Runtime Manager, Exchange.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

anypoint_whoami Check Anypoint connection

Verify the configured Anypoint credentials and show which business group, host and environment allowlist this server is operating with. Use this first when a call fails.

anypoint_list_business_groups List business groups

List the business groups under the credentials' organization, with their ids. Environments live on business groups, not on the root organization — call this first if anypoint_list_environments returns nothing.

ParameterTypeDescription
rootOrgIdstringRoot organization id. Defaults to the credentials' own organization.

anypoint_list_environments List environments

List the Anypoint environments in a business group. If this returns nothing, the orgId is probably the root organization — call anypoint_list_business_groups to find the right id. Restricted to ANYPOINT_ALLOWED_ENVIRONMENTS when that is set.

ParameterTypeDescription
orgIdstringBusiness group id. Defaults to ANYPOINT_ORG_ID, or the credentials' own organization.

anypoint_list_deployed_apps List deployed applications

List deployed Mule applications in an environment, across Application Manager (CloudHub 2.0 / Runtime Fabric), legacy CloudHub, and hybrid on-prem targets.

ParameterTypeDescription
environmentIdstringEnvironment id. Use instead of environmentName.
environmentNamestringEnvironment name, e.g. 'Production'. Resolved to an id, must match exactly one.
includeErrorsbooleanInclude per-target errors when a target endpoint is unavailable or not permitted.
includeRawbooleanInclude the raw Anypoint API objects alongside the normalized fields.
limitintegerMaximum records to return, default 100.
orgIdstringBusiness group id. Defaults to ANYPOINT_ORG_ID, or the credentials' own organization.
targetstringDeployment target to query. Defaults to application_manager.

anypoint_list_app_logs List application logs

List the latest Runtime Manager logs for a Mule application. This reads the live tail only — a small rolling buffer. For anything older than the buffer, use anypoint_search_archived_logs.

ParameterTypeDescription
appName *stringDeployment/application name as shown in Runtime Manager.
deploymentIdstringUse when the app name is ambiguous or already known.
descendingbooleanReturn latest first, default true.
endTimestringApplication Manager time filter, ISO 8601.
environmentIdstringEnvironment id. Use instead of environmentName.
environmentNamestringEnvironment name, e.g. 'Production'. Resolved to an id, must match exactly one.
includeErrorsbooleanInclude failed target errors when target is auto.
includeRawbooleanInclude the raw Anypoint API objects alongside the normalized fields.
limitintegerMaximum log entries, default 100, max 500.
offsetintegerApplication Manager log offset, default 0.
orgIdstringBusiness group id. Defaults to ANYPOINT_ORG_ID, or the credentials' own organization.
specIdstringSpecific Application Manager deployment spec/config id.
startTimestringApplication Manager time filter, ISO 8601.
targetstringLog source. Defaults to auto, which tries Application Manager then CloudHub.

anypoint_get_app_logs_for_analysis Analyze application logs

Fetch live-tail logs for a Mule application and return an analysis-ready payload: normalized lines plus counts by priority, logger and instance. Prefer this over anypoint_list_app_logs when diagnosing a problem.

ParameterTypeDescription
appName *stringDeployment/application name as shown in Runtime Manager.
deploymentIdstringUse when the app name is ambiguous or already known.
descendingbooleanReturn latest first, default true.
endTimestringApplication Manager time filter, ISO 8601.
environmentIdstringEnvironment id. Use instead of environmentName.
environmentNamestringEnvironment name, e.g. 'Production'. Resolved to an id, must match exactly one.
errorOnlybooleanOnly return ERROR and FATAL lines.
includeErrorsbooleanInclude failed target errors when target is auto.
includeRawbooleanInclude the raw Anypoint API objects alongside the normalized fields.
limitintegerMaximum log entries, default 100, max 500.
offsetintegerApplication Manager log offset, default 0.
orgIdstringBusiness group id. Defaults to ANYPOINT_ORG_ID, or the credentials' own organization.
searchTermsarrayCase-insensitive filters matched against timestamp, priority, message, logger, thread or instance.
specIdstringSpecific Application Manager deployment spec/config id.
startTimestringApplication Manager time filter, ISO 8601.
targetstringLog source. Defaults to auto, which tries Application Manager then CloudHub.

anypoint_search_archived_logs Search archived logs

Search historical Mule application logs via the Anypoint Monitoring Archive API, for dates beyond the live tail's rolling buffer. Requires Anypoint Monitoring to be enabled for the organization. Use this for any past-date incident investigation.

ParameterTypeDescription
appName *stringDeployment name, must match the Runtime Manager name exactly.
date *stringRequired date to search, YYYY-MM-DD (UTC).
endDatestringInclusive range end, YYYY-MM-DD (UTC). Max 7 days total.
environmentIdstringEnvironment id. Use instead of environmentName.
environmentNamestringEnvironment name, e.g. 'Production'. Resolved to an id, must match exactly one.
errorOnlybooleanOnly return ERROR and FATAL lines.
includeRawbooleanInclude the raw Anypoint API objects alongside the normalized fields.
limitintegerCap on matched lines returned, default 500.
maxEntitiesintegerCap on replica entities probed during a full-scan fallback, default 150.
maxFilesintegerCap on archive files downloaded and parsed, default 100.
orgIdstringBusiness group id. Defaults to ANYPOINT_ORG_ID, or the credentials' own organization.
searchTermsarrayCase-insensitive text filters.

anypoint_list_api_manager_instances List API Manager instances

List API instances managed by Anypoint API Manager in an environment, with their assets, endpoints and technology.

ParameterTypeDescription
assetIdstringFilter by Exchange asset id.
environmentIdstringEnvironment id. Use instead of environmentName.
environmentNamestringEnvironment name, e.g. 'Production'. Resolved to an id, must match exactly one.
includeRawbooleanInclude the raw Anypoint API objects alongside the normalized fields.
limitintegerMaximum records, default 100.
offsetintegerPagination offset, default 0.
orgIdstringBusiness group id. Defaults to ANYPOINT_ORG_ID, or the credentials' own organization.
technologystringFilter by technology, e.g. mule4, flexGateway.

anypoint_search_exchange_assets Search Exchange assets

Search Anypoint Exchange for assets in the organization — APIs, connectors, templates, examples and fragments.

ParameterTypeDescription
includeRawbooleanInclude the raw Anypoint API objects alongside the normalized fields.
limitintegerMaximum records, default 50.
offsetintegerPagination offset, default 0.
orgIdstringBusiness group id. Defaults to ANYPOINT_ORG_ID, or the credentials' own organization.
searchstringFree-text search over asset names and descriptions.
typesarrayFilter by asset type, e.g. rest-api, connector, template, example.