Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

b2c-mcp-scapi

БесплатноБез исполняемых скриптовНе проверен

Required before scapi_search or scapi_execute. Discover standard and live custom SCAPI contracts, compose Admin and Shopper requests, and verify changes under…

SalesforceCommerceCloudот SalesforceCommerceCloud★ 58 звёзд на GitHub

Об этом скилле

SCAPI Code Mode

Dedicated tool first. Else scapi_search (find op) then scapi_execute (call it). Code = JS async arrow fn. No TypeScript, no imports. Read this once, then pass skillRead: true. Reading does not authorize mutations. Warehouse SQL/reports: cip_*, not here. Files: webdav_*. Local build/fs: terminal. Operations or incidents (jobs, checkout, orders, eCDN edge traffic and rules): read the matching b2c-ops runbook from the skill index first.

spec shape (search and execute)

Only these exist; every member is an async host call (await it). No spec.paths, no spec.schemas. Do not probe.

declare const spec: {
  apis(o?: {api?: string}): Promise<Array<{id: string; apiFamily: string; apiName: string; apiVersion: string; status: string}>>; // id: 'product/catalogs/v1'
  // one row per operation; filter by API id/family and method
  operations(o?: {api?: string; method?: string}): Promise<Array<{api: string; method: string; path: string; operationId?: string; summary?: string}>>;
  operation(path: string, method: string): Promise<Operation>; // full op for a path + method from search/operations
  resolve(value: unknown, apiId: string): Promise<unknown>; // expand local $ref
  // ranked fuzzy search over summary/description/tags/operationId/path; newest API version only
  search(query: string, o?: {limit?: number}): Promise<Array<Match>>; // limit default 10, max 50
};
// await spec.operation(m.path, m.method) is the full op; otherVersions = older versions with the same op
type Match = {api: string; method: string; path: string; operationId?: string; summary?: string; score: number; otherVersions?: string[]};
// path = '/' + api id + path, e.g. '/product/catalogs/v1/organizations/{organizationId}/catalogs/{catalogId}'
interface Operation {
  api: string;
  operationId: string;
  summary?: string;
  description?: string;
  tags?: string[];
  parameters: Array<{name: string; in: string; required?: boolean; schema?: unknown}>;
  requestBody?: {required?: boolean; content: Record<string, {schema: any}>};
  responses?: Record<string, unknown>;
  security: Array<Record<string, string[]>>;
  auth: {types: string[]; schemes: string[]; executable: boolean}; // executable = runtime support, not access
}

scapi_execute also has (async (input) => ..., input = tool input):

declare const organizationId: string | undefined;
declare const siteId: string | undefined;
declare function sleep(ms: number): Promise<void>; // wait between polls; no setTimeout
declare const scapi: {
  request(o: {
    method: string;
    path: string;
    query?: Record<string, unknown>;
    body?: unknown;
  }): Promise<{status: number; ok: boolean; data: any; diagnostic?: {code: string; message: string}}>;
};

Rules

  • Result cap 24 KB (SCAPI_RESULT_TOO_LARGE). Whole op = 6-20 KB. NEVER return spec.operation() results whole. List {operationId, method, path, summary}; then return only parameters/requestBody of ops you will call.
  • Start with await spec.search('task words'); it matches prose (summary, description, tags) and tolerates typos. Filter await spec.operations({api}) to narrow or enumerate.
  • scapi_search default detail:"outline" drops nested descriptions/examples. detail:"full" restores. Execute sees full.
  • Default corpus = bundled standard. schemas:"live" = tenant (c_*, custom APIs, newer APIs); falls back to bundled with warnings. Tell user if c_*/custom APIs matter.
  • scapi.request auths itself. Never fetch tokens first. Path {organizationId} auto-fills.
  • Check ok/status. Writes: read back. Check before retry. Await every request.
  • Limits: 20 calls, 4 parallel, 30 s. No fetch, WebSocket, setTimeout, URL, TextEncoder or Intl; wait with await sleep(ms).
  • Write needing approval pauses for client elicitation. Accept re-runs the program from the start: calls already answered replay without being sent again, so keep code deterministic (no reads of anything but input, results and spec). Decline = whole run ends. Never fake approval.
  • Claude artifact/dashboard: page code cannot call scapi_execute. Never allowlist this server's tools as artifact connectors (shared copies fail with Connectors needed). Embed results.
// rank candidates by prose (await it)
async () => spec.search('apply coupon to basket', {limit: 8});

// enumerate with a filter
async () =>
  (await spec.operations({api: 'checkout'})).filter(
    (o) => /basket/i.test(o.summary ?? '') && /coupon|promotion/i.test(o.summary ?? ''),
  );

// inspect only needed fields
async () => {
  const op = await spec.operation('/product/products/v1/organizations/{organizationId}/products/{productId}', 'put');
  const body = op.requestBody.content['application/json'].schema;
  return {parameters: op.parameters, required: body.required, security: op.security, auth: op.auth};
};

Authentication

  • Admin `AmOA
Полный SKILL.md на GitHub

Установить b2c-mcp-scapi в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/admin-config.mdreferences/authentication.mdreferences/catalogs.mdreferences/compose-verify.mdreferences/confirmation.mdreferences/custom-apis.mdreferences/custom-properties.mdreferences/discover.mdreferences/file-transfer.mdreferences/jobs.mdreferences/object-definitions.mdreferences/products.mdreferences/promotions.mdreferences/saving.mdreferences/snippets.mdreferences/tokens.mdreferences/workflows.md

FAQ

Что делает скилл b2c-mcp-scapi?

Required before scapi_search or scapi_execute. Discover standard and live custom SCAPI contracts, compose Admin and Shopper requests, and verify changes under configured authentication and Safety Mode.

Как установить скилл b2c-mcp-scapi?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл b2c-mcp-scapi запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить b2c-mcp-scapi с