Skip to content
medusajs avatar

Mcloud Logs

Fetch and stream runtime logs for Cloud backends and storefronts with time, search, and deployment filters.

CCM score
75 of 100
skills.sh installs
1.6K
GitHub stars
237
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers reading and streaming runtime logs through mcloud logs, scoped by organization, project, and environment handles
  • Filters by time range (--from/--to), substring search, deployment or build ID, source, and metadata key=value pairs
  • Enforces that --follow cannot be combined with --json, and that streaming is limited to interactive use rather than scripts
  • Designed for agents analyzing backend or storefront logs with bounded windows, --json output, and jq post-processing

Install

$ npx -y skills add medusajs/medusa-agent-skills --skill mcloud-logs -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cloud CLI: Logs Command

Execute mcloud logs to fetch runtime logs for a Cloud environment's backend or storefront.

Constraints

  • --follow and --json are incompatible. For programmatic log analysis, use bounded time windows with --from/--to and --json.
  • --follow streams until interrupted with Ctrl+C — do not use in scripts or pipelines.
  • Default retrieves the last 500 log lines from the past 15 minutes.

Command

mcloud logs \
  --organization <org-id> \
  --project <project-id-or-handle> \
  --environment <environment-handle> \
  [options]

Options

Details

Repository
github.com/medusajs/medusa-agent-skills
Categories
DevOps & Cloud, Debugging
First seen
Jun 3, 2026

Questions

What does the mcloud-logs skill do?

The mcloud-logs skill runs the mcloud logs command to fetch and stream runtime logs for Cloud environments. It covers backend and storefront logs, time range filtering, error searches, and scoping logs to a specific deployment.

How do I search for errors in Cloud logs with mcloud?

Run mcloud logs with the --search error option and add --json for structured output. Use --limit to set how many lines come back, since the default is 500 lines from the past 15 minutes.

How do I install the mcloud-logs skill?

Run npx -y skills add medusajs/medusa-agent-skills --skill mcloud-logs -y in your project. After that, the agent can read and filter Cloud environment logs with the mcloud logs command.

Can mcloud-logs stream live logs for scripts?

The --follow option streams logs continuously until you press Ctrl+C, so it suits interactive use only. It cannot be combined with --json, so use bounded --from and --to time windows with --json for scripts.

Where does mcloud-logs sit in the DevOps and Cloud category?

The mcloud-logs skill is listed in the DevOps and Cloud category on Claude Marketplaces. Its neighbors there include the azure-diagnostics, azure-deploy and azure-storage skills, which target Azure rather than Medusa Cloud environments.

More from medusajs/medusa-agent-skills

All 15

Similar to Mcloud Logs

More DevOps & Cloud