Skip to main content
skill CX Codex

mcloud-variables — Claude Code skill: Medusa Cloud env vars

An agent skill that drives mcloud variables for Medusa Cloud environments: list keys, read one, write, delete, export to .env.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add medusajs/medusa-agent-skills --skill mcloud-variables -a claude-code
Open on GitHub

What mcloud-variables does

The skill hands your agent a narrow set of mcloud variables calls. It can pull a full key list for an environment, fetch a single entry by key or var_... ID, create or update values, remove them, and dump everything into dotenv format. Four subcommands cover the work: list, get, set, delete. Tool access is scoped to Bash(mcloud variables*), Bash(mcloud environments*) and Bash(jq*).

Writes alone change nothing in a running app. A runtime value needs mcloud environments redeploy <env> afterwards; a build value needs mcloud environments trigger-build <env>, because a redeploy reuses the existing image and skips build-time changes. Miss that and the agent reports success while the live app keeps the old value.

Secrets stay masked unless you ask to see them, and the skill treats --reveal as off-limits otherwise. System variables cannot be deleted. In non-interactive runs delete also needs --yes. Key-based lookup and creation require --project and --environment, while an ID lookup skips both. You need mcloud CLI v0.1.10 or later for set and delete.

What it helps with

  • audit every variable in an environment before a release
  • push a local .env file into a Cloud environment
  • check whether a key is stored as a secret
  • mark a key build-only and rebuild the image
  • remove an obsolete flag without touching system entries

Example prompts for the agent

  • List the runtime variables for production as JSON, system ones included
  • Create REDIS_URL set to redis://cache:6379 and redeploy so it takes effect
  • Export everything to .env and show the secrets, I'm asking for them explicitly

How to install mcloud-variables

1Skills CLI (Vercel)

npx skills add medusajs/medusa-agent-skills --skill mcloud-variables -a claude-code

2Manually: put the files in place

~/.claude/skills/mcloud-variables/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/mcloud-variables/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about mcloud-variables

How do I install mcloud-variables in Claude Code?

Run npx skills add medusajs/medusa-agent-skills --skill mcloud-variables -a claude-code. The skill lands at ~/.claude/skills/mcloud-variables/SKILL.md.

What does mcloud-variables do?

It lets an agent manage Medusa Cloud environment variables through the CLI: list them, read one, set values, delete entries, and export the set as dotenv.

Why did my variable change have no effect?

set and delete only store the change. Run mcloud environments redeploy <env> for a runtime variable, or mcloud environments trigger-build <env> for a build variable.

Similar skills

All skills for DevOps and infrastructure →

From the same set12

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor