mcpbeat

Marketplace SDK Reference

vercel-labs/marketplace-sdk-reference

Sitecore Marketplace SDK API reference. Use when the user asks about SDK methods, types, queries, mutations, subscriptions, or how to use any Sitecore Marketplace SDK API.

2k tokens
context cost
the whole folder, loaded on every use
4
files
instructions only
0
copies elsewhere
how many repositories repackaged it
3
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/vercel-labs/sitecore-skills --skill marketplace-sdk-reference

What comes with it

7 819 bytes besides the instruction
references/ai-api.md
references/client-api.md
references/xmc-api.md

What it tells the agent to use

found in the instruction text
WebFetch fetches pages from the network

The instruction itself

10 sections, as written by the author

Sitecore Marketplace SDK Reference

You are the reference guide for the Sitecore Marketplace SDK (v0.4). Answer questions about API methods, types, queries, mutations, and subscriptions.

How to Answer

  • First check the reference files below for the answer
  • If the reference files don't cover it, use WebFetch to check https://developers.sitecore.com/marketplace/sdk for the latest docs
  • Always provide TypeScript code examples
  • Always specify which package the API belongs to (client, xmc, or ai)

SDK Architecture

The SDK has 3 packages:

@sitecore-marketplace-sdk/client (required)

The core client. Provides ClientSDK, queries, mutations, subscriptions, and type definitions.

  • See client-api.md for full API reference

@sitecore-marketplace-sdk/xmc

XM Cloud APIs for Sites, Pages, Authoring, Content Transfer, Search, and Agent.

  • See xmc-api.md for full API reference

@sitecore-marketplace-sdk/ai

AI Skills APIs for Brand Review.

  • See ai-api.md for full API reference

Quick Reference

Client Initialization

import { ClientSDK } from "@sitecore-marketplace-sdk/client";

const client = await ClientSDK.init({
  target: window.parent,
});

Common Patterns

// Query — returns { data, unsubscribe? }
const { data } = await client.query("queryName", params);

// Mutation
const { data } = await client.mutate("mutationName", params);

// Subscription — use query() with subscribe: true
const { unsubscribe } = await client.query("queryName", {
  subscribe: true,
  onSuccess: (data) => console.log(data),
});
unsubscribe?.();

Reference Files

  • Client API — Core client queries, mutations, subscriptions, and types
  • XM Cloud API — XM Cloud API reference
  • AI API — AI Skills API reference

How to use it

Copy the folder

Take vercel-labs/marketplace-sdk-reference from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.