b2c-mcp-site-import
Required before site_archive_import. Write B2C Commerce data that has no SCAPI write (such as promotion discount rules) by importing site archive XML, then…
от SalesforceCommerceCloud★ 58 звёзд на GitHub
Установить b2c-mcp-site-import в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Site archive import
site_archive_import takes archive files as text, validates each against its
bundled schema, zips them and runs the sfcc-site-archive-import job. Nothing is
uploaded if a file fails validation, so a separate validate_xml_schema call is
not needed. No terminal, CLI or WebDAV steps are involved.
Read this skill once through resources or skills_read (mcp/b2c-mcp-site-import),
then pass skillRead: true.
When to use
Prefer SCAPI (scapi_execute) for any field its contracts cover. Use an archive
import for data SCAPI cannot write today, for example promotion discount rules
(see the SCAPI promotions reference).
Create the records themselves through SCAPI where possible, then import only
what SCAPI lacks.
Write the files
- Paths are relative to the archive root:
sites/{siteId}/promotions.xml,catalogs/{catalogId}/catalog.xml,pricebooks/{priceBookId}/pricebook.xml,inventory-lists/{listId}/inventory.xml,sites/{siteId}/preferences.xml,meta/system-objecttype-extensions.xml. Use the IDs you resolved, not guesses. - Include only the records and elements you mean to change. Import merges: a
record that carries only some elements updates those and keeps the rest (for
example, a
<promotion>with only its rule keeps its name and campaign assignment). Do not export and re-import whole files to change one record. - For element names and order, read the schema with
docs_schema_read(promotion,catalog,pricebook, ...), or copy the shape of an existing record.
Run and verify
- Call with
dryRun: truefirst when the XML is new to you. Fix everyerrorsentry (line and message) and call again. Askipstatus means no bundled schema applies; that file is imported without validation. - Run the import.
outcomeisimportedwhen the job finished OK. Onfailed, readexecution.logFilePathwithwebdav_get(tail: true) before changing anything; do not rerun an import to find out what happened. - Verify with a read: a SCAPI GET for fields it returns. For fields no API
returns, ask the user to check Business Manager, or with a terminal export the
data unit (
b2c job export). A finished job alone does not prove the data changed.
Imports are writes. Confirm the target instance and site with the user. Import records with the enabled state the user asked for, enabled by default; dates and schedules control when shoppers see them.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл b2c-mcp-site-import?
Required before site_archive_import. Write B2C Commerce data that has no SCAPI write (such as promotion discount rules) by importing site archive XML, then verify it.
Как установить скилл b2c-mcp-site-import?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл b2c-mcp-site-import запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…