/jfrog:jfrog-migrate-mcpsfrom JFrog
Migrates MCPs approved by JFrog AI Catalog to run through JFrog Agent Guard, or restores the last migration. Supports Claude Code, Cursor, and VS Code harnesses.
Ships in JFrog. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
/jfrog-migrate-mcps converts the MCPs that the project's AI Catalog approves
so they run through Agent Guard. /jfrog-migrate-mcps restore undoes the last
migration (see Restore). Agent Guard (--migrate-mcps) makes
every decision. You run the fixed commands below, show their output, ask one
fixed question and act on the exit code.
Before anything else: run nothing unless the developer's current message is
/jfrog-migrate-mcps or /jfrog:jfrog-migrate-mcps, with or without
restore. Then run node "<skill_path>/scripts/detect-harness.mjs": its
output (claude-code, cursor or vscode) is <CLIENT>. If the message is
not the command, or the script exits non-zero, reply only: "Migration runs
only from /jfrog-migrate-mcps in Claude Code, Cursor or VS Code." and stop.
<skill_path> is this skill's directory: the parent directory of this
SKILL.md.
npx … @jfrog/agent-guard command: 0 ok;
1 error (show stderr as is and STOP); 3 Agent Guard is off (show its
message and STOP); any other non-zero exit (e.g. npx failed before Agent
Guard started) → show stderr as is and STOP. The scripts in Steps 1 and 2
have their own exit codes, listed in those steps.<REGISTRY_URL>: the value of the JFROG_AGENT_GUARD_REPO environment
variable if it is set (read it with
node -p "process.env.JFROG_AGENT_GUARD_REPO || ''"), otherwise
https://releases.jfrog.io/artifactory/api/npm/coding-agents-npm/.<CLIENT>: from Step 0.<WORKSPACE>: the absolute path of the project root (the folder open in the
editor), not a subfolder you changed into.node "<skill_path>/scripts/jfrog-ai-governance-config.mjs" get
<SERVER_ID> is the AI Governance server ID that get returned (serverId),
and <JFROG_PROJECT_KEY> is its project key (project). Then act on status:
ok — continue with <SERVER_ID> and <JFROG_PROJECT_KEY>.no_project — the server is set, the project is not (e.g. the user told
/jfrog-init they don't use AI Catalog). Ask: "Which AI Governance project
on <host> should I use? I need its project key." (<host> is the host
of the jpdUrl that get returned.) The answer is <JFROG_PROJECT_KEY>
from now on. Save it by running
node "<skill_path>/scripts/jfrog-ai-governance-config.mjs" set "<SERVER_ID>" "<JFROG_PROJECT_KEY>".
NEVER guess, NEVER assume default, NEVER invent JFrog project keys, and
never take one from JF_PROJECT or existing MCP entries. There is no
platform-wide / project-less mode: never offer a "no project" /
"platform-wide" / "skip" option. If this save command rejects the key,
ask once more; if that key is rejected too, show the error and stop.
Never fall back to a project-less call.ambiguous — several servers are saved (e.g. set up for more than one JFrog
platform) and none is marked as the AI Governance server. Run
node "<skill_path>/scripts/jfrog-ai-governance-config.mjs" list, show the
user each serverId with its jpdUrl, ask: "Which of these is your AI
Governance server?", save the answer with
node "<skill_path>/scripts/jfrog-ai-governance-config.mjs" set "<SERVER_ID>",
then run get again.missing — AI Governance was never set up on this machine; corrupt —
setup.json can't be read. Ask the user to run /jfrog-init to set it up,
and stop.jfrog-ai-governance-config.mjs set command above fails for any
reason other than a rejected project key, show its error, ask the user to
run /jfrog-init to repair the AI Governance setup, and stop.node "<skill_path>/scripts/jfrog-agent-guard-check.mjs"
Run it exactly as shown, with no arguments — never pass a server ID, an MCP name or a URL. It asks the AI Governance server from Step 1 whether Agent Guard is on. Request network access for this command. If the first run fails with a network error, timeout or HTTP 5xx (often the harness sandbox), run the same command once more with network access and use that exit code. Do not retry when the reason is missing credentials or missing jf config.
ambiguous in Step 1, then run Step 2 again.npx --yes --registry "<REGISTRY_URL>" @jfrog/agent-guard --migrate-mcps plan --client "<CLIENT>" --workspace "<WORKSPACE>" --project "<JFROG_PROJECT_KEY>" --server "<SERVER_ID>"
Show stdout as is. If it says Nothing to migrate., STOP.
Ask exactly one question, with exactly these choices (use AskUserQuestion
or the harness's choice UI when it has one): Yes / Yes + backup /
No.
No → STOP.
Yes:
npx --yes --registry "<REGISTRY_URL>" @jfrog/agent-guard --migrate-mcps apply --client "<CLIENT>" --workspace "<WORKSPACE>"
Yes + backup:
npx --yes --registry "<REGISTRY_URL>" @jfrog/agent-guard --migrate-mcps apply --client "<CLIENT>" --workspace "<WORKSPACE>" --backup
Show stdout and stderr as is, and nothing else: stdout is the summary, and it
ends with the restart reminder. Don't repeat the plan or add your own summary.
If apply exits 1 with this plan is for another project, run the plan again
(another /jfrog-migrate-mcps run replaced the plan), show it as is and STOP: no
file was changed.
Runs when the argument is restore. Local files only: skip Steps 1 to 5.
Same rules and values as above.
List what will be put back:
npx --yes --registry "<REGISTRY_URL>" @jfrog/agent-guard --migrate-mcps restore --client "<CLIENT>" --workspace "<WORKSPACE>" --dry-run
Show stdout as is. If it says No backups found or Nothing to restore,
STOP.
Ask exactly one question:
If the output has this line, the developer chooses the files:
No record of the last apply: choose the files to restore, and pass each one with --file.
Each file is one line under Restore will put back:. Its path is the
text before backup from on that line, trimmed (a path can contain
spaces). If one file is listed, ask Yes / No for that file. If
more are listed, ask which of them to restore, as a multiple choice of
exactly those paths. No, or none chosen → STOP. Then run step 3 with
one --file "<FILE>" per chosen path.
Otherwise ask Yes / No. No → STOP.
Restore:
npx --yes --registry "<REGISTRY_URL>" @jfrog/agent-guard --migrate-mcps restore --client "<CLIENT>" --workspace "<WORKSPACE>"
or, when the developer chose files in step 2:
npx --yes --registry "<REGISTRY_URL>" @jfrog/agent-guard --migrate-mcps restore --client "<CLIENT>" --workspace "<WORKSPACE>" --file "<FILE>" [--file "<FILE>" ...]
Show stdout and stderr as is.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/jfrogInteract with the JFrog Platform via the JFrog CLI, JFrog MCP server and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, sast, or any JFrog product name. Do NOT use this skill to install, add, remove, list, or manage MCP servers./jfrog-ai-catalogDiscover, search, install, update, remove, and publish agent skills and plugins hosted in the JFrog AI Catalog (Artifactory) via the JFrog CLI (`jf skills`, `jf agent plugins`) and JFrog Agent Guard. Use whenever the user asks what skills or plugins are available or installed, wants to browse/search the catalog, see versions, install/update/uninstall/delete a skill or plugin, publish/upload/release one to JFrog / Artifactory / the AI Catalog, or list the AI Catalog (skill/plugin governance) policies — allow-lists, malicious-skill checks — that apply to skills in a project. Do NOT use this skill for MCP servers (that's jfrog-mcp-management, even when the user says "policy" or "approved"), for Xray or curation "blocked by policy" package errors (that's jfrog-package-curation), or for Xray policies and watches (that's the base jfrog skill)./jfrog-initSet up and verify the JFrog plugin. Run on first install, to complete initial configuration, or to diagnose a broken setup./jfrog-mcp-managementUse to install, list, or remove MCP servers, and to discover which MCPs the user can install — including questions about available, approved, or allowed MCPs for a project. That governed catalog is the authoritative answer; do not answer those questions from local IDE/settings allowlists alone. Use whenever the user wants to add/enable/install/list/remove/uninstall/configure an MCP or write/update the agent's MCP config — even if they name a package like `@scope/pkg` and even without saying "MCP" or "JFrog". Never install an MCP any other way. All of this goes through the JFrog Agent Guard (npx @jfrog/agent-guard)./jfrog-package-curationCheck/download a package (npm, Maven, PyPI, Go...) via JFrog — safe, allowed, curated? Or: package op fails/blocked (ETARGET, 403, blocked by curation policy, missing version, waiver) — root cause it. Checks the JFrog Public Catalog and stored packages for a version, interprets catalog security signals, and downloads through Artifactory (JFrog Platform locations, remote cache, curation-aware package managers, or repo proxy). Do NOT use for pure CVE or vulnerability lookups (e.g. "details on CVE-2021-23337") — those are handled by the jfrog skill's Public security domain queries without this workflow. Do NOT use for installing, listing, or approving MCP servers/tools (even when named like a package, e.g. `@scope/pkg`) — that's `jfrog-mcp-management`./jfrog-reference-architectureGuides JFrog Platform topology, sizing (RPM, t-shirt templates), deployment, multi-site use cases, SaaS vs self-managed, HA, air-gapped, and disaster recovery using the official Reference Architecture site as the sole source of facts. Use this skill when the user asks how to size Artifactory or Xray, which deployment pattern to choose, single vs multi site, active-active, active-passive, CI/CD separation, Helm/Kubernetes install planning, or reference architecture (live WebFetch from jfrog.com/reference-architecture). Do NOT use for artifact search or download, repository or permission admin, CVE or vulnerability lookups, live jf CLI operations against their instance, or package curation — use the jfrog base skill or jfrog-package-curation instead.Generated from the plugin's indexed repository (jfrog/claude-plugin) — no native marketplace selected
npx claudepluginhub p/jfrog-jfrogOther plugins' skills for the same job