LabscoConnect MCP ↗
vercel-labs logo★ 3

marketplace-add-xmc

Opens the content side of Sitecore up to an add-on: which sites and pages exist, editing them, searching them, and moving content from one environment to another.

by vercelpart of vercel-labs/sitecore-skills
🔥🔥 ✓ VerifiedFreeQuick setup

WHEN YOUR AGENT SHOULD USE IT

A QUICK BOUNDARY

USE FOR

  • List the sites and pages available in the current XM Cloud instance.
  • Run GraphQL queries or mutations against XM Cloud's content authoring API.
  • Import or export content between XM Cloud environments.
  • Search XM Cloud content items from inside a marketplace app.
  • Invoke an XM Cloud agent from a custom marketplace app.

Documents

This is the playbook your agent receives when the skill activates — you don't need to read it to use the skill, but it's here to audit before installing.

Add XM Cloud API Integration

You are helping the user add XM Cloud API integration to their Sitecore Marketplace app.

Prerequisites

The XMC package must be installed. If not:

npx shadcn@latest add https://marketplace-sdk.sitecorecloud.io/r/xmc.json
Step 1: Determine Which API

Ask the user (or infer from $ARGUMENTS) which XMC API they need:

APINamespaceUse For
Sitesxmc.sites.*List/get sites, current site context
Pagesxmc.pages.*List/get pages, current page context
Authoringxmc.authoring.*GraphQL queries/mutations against authoring API
Content Transferxmc.contentTransfer.*Import/export content
Searchxmc.search.*Search content items
Agentxmc.agent.*Invoke XM Cloud agents
Step 2: Choose Client-Side or Server-Side
  • Client-side: Use client.query() / client.mutate() — simpler, works in any architecture
  • Server-side: Use experimental_createXMCClient() — requires Auth0 (full-stack architecture)
Step 3: Implement

See xmc-patterns.md for complete code patterns for each API.

Step 4: Suggest Related Skills
  • Use /marketplace-build-component to build UI for the data
  • Use /marketplace-sdk-reference for detailed type information
Reference Files

Installation

Install this skill from vercel-labs/sitecore-skills on GitHub, not from a copy somewhere else. The command below does this for you.

Copy & paste — that's it
npx skills add vercel-labs/sitecore-skills --skill "marketplace-add-xmc" --full-depth

Run this in your project — your agent picks the skill up automatically.

BEFORE IT WILL WORK

1 FOR THE AGENT
  1. 01

    Install the XM Cloud SDK package for the app