Command Palette

Search for a command to run...

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

b2c-mcp-cip

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

Required before cip_query. Discover and run CIP reports or analytics SQL for sales, merchandising, and technical operations; resolve warehouse access, bound…

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

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

CIP analytics

Use CIP for warehouse analytics: sales, products, promotions, search, payments, traffic, inventory, and API/controller trends. Use SCAPI for current records; logs/metrics for immediate diagnosis. Read this skill once through resources or skills_read (mcp/b2c-mcp-cip), then pass skillRead: true to cip_query. Discovery needs no acknowledgment.

Choose and discover

  1. cip_discover defaults to report search; use query for task terms, then action: "report", name for parameters, tables used, and available result notes. The catalog is offline.
  2. Prefer a curated report when its dimensions/filters answer the question. Preview SQL with params only when adapting the report or checking a definition absent from its notes; a standard report does not need a preview before running.
  3. For custom analysis, action: "tables", query: "ccdw_aggr_%" lists live metadata; action: "table", name returns columns. Narrow names/schema and reuse findings. These calls require CIP access. Columns default to 50 per page (lists: 20). Follow nextOffset only for needed columns, not to exhaust unrelated metadata.
  4. cip_query accepts either report plus string-valued params, or sql. Do not invent parameters or use a narrower report that omits requested evidence.
  5. Before custom SQL, describe each table you use with action: "table" and use only returned column names. Do not guess: sales aggregates use num_orders and num_units (not orders/units); ccdw_dim_site has site_display_name (not site_name); ccdw_dim_promotion has npromotion_id and display_name.

Configuration and access

Reuse projectDirectory / instanceName and resolved configuration. Requires tenantId, Account Manager clientId and clientSecret; no instance hostname or SCAPI short code is needed. Authentication is managed; do not obtain tokens. CIP supports client credentials only, not user/SLAS/JWT flows. The client needs the Salesforce Commerce API role with the selected tenant in its tenant filter; the SDK requests SALESFORCE_COMMERCE_API:<tenant>.

Tenants ending _prd use production analytics; other tenants use staging analytics. staging: true / SFCC_CIP_STAGING=true forces staging; configured cipHost / SFCC_CIP_HOST takes precedence. Staging analytics is a service destination, not permission to switch the user's target instance. Non-production data requires Reports & Dashboards data tracking enabled on supported 26.1+ environments. No data or rejected access does not establish zero sales or a healthy system.

Missing values: config_inspect with masking; ask the user if the target cannot be determined. MCP configuration explains resolution. For CLI equivalents, configuration, host selection, and availability caveats: existing CIP skill (skills_read ID b2c-cli/b2c-cip) and the analytics guide (docs_read({query: "guide-analytics-reports-cip-ccac"}), online), plus the CLI reference (cli-cip, online). Read these conditionally, not as extra prerequisites. Official JDBC setup and limits.

SQL dialect

CIP SQL is Apache Calcite. Common parse errors:

  • Reserved words cannot be bare aliases or identifiers: date, day, month, year, hour, minute, second, time, timestamp, value, user, method, rows. Alias as submit_day, yr, mo, or double-quote: AS "date".
  • Dates: DATE '2026-11-01'; ranges with BETWEEN or >=/<=. Months: EXTRACT(YEAR FROM submit_date), EXTRACT(MONTH FROM submit_date), grouped by the same expressions. There is no DATEADD; compute windows as explicit dates.
  • Safe division x / NULLIF(y, 0); rounding CAST(x AS DECIMAL(15,2)).

Query and interpret

  • Fix the date window and site scope before querying. Report from/to are inclusive dates. Supply required dates explicitly; do not silently use this month.
  • Warehouse numeric site_id differs from natural nsite_id (often Sites-Example-Site) and SCAPI site IDs. Resolve through ccdw_dim_site; do not synthesize a natural ID from a configured SCAPI site ID.
  • Prefer aggregate tables and explicit columns. Filter by date/site, group and calculate in SQL, use stable ordering and LIMIT. Avoid wide SELECT *, large fact-table joins, and repeated exploratory full-table queries.
  • maxRows defaults 50, maximum 500; output also caps at 24 KB. rowCount counts returned rows, never all matches. If truncated, narrow/aggregate or query a disjoint ordered window. No retained cursor; do not present a sample as a total.
  • Queries time out after 60 seconds by default (maximum 120).
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Required before cip_query. Discover and run CIP reports or analytics SQL for sales, merchandising, and technical operations; resolve warehouse access, bound results, and interpret site/date scope.

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

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

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

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

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

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