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★ 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 returnspec.operation()results whole. List{operationId, method, path, summary}; then return onlyparameters/requestBodyof ops you will call. - Start with
await spec.search('task words'); it matches prose (summary,description,tags) and tolerates typos. Filterawait spec.operations({api})to narrow or enumerate. scapi_searchdefaultdetail:"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 withwarnings. Tell user ifc_*/custom APIs matter. scapi.requestauths 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,TextEncoderorIntl; wait withawait 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 andspec). 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
Установить b2c-mcp-scapi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic