Command Palette

Search for a command to run...

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

b2c-mcp-claude-artifacts

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

Read before building, sharing, or fixing a Claude artifact, Cowork dashboard, or published page from B2C data, including a Connectors needed warning…

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

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

B2C data in Claude artifacts

This server runs locally (stdio, plugin, or Desktop configuration). Claude can call its tools while it builds a page, but the page cannot. In Claude Cowork, claude.ai, Claude Desktop chat, and published Claude Code pages, an artifact can call only connectors added to the user's claude.ai account. A Cowork artifact calling this server through window.cowork.callMcpTool fails with Tool call failed: 400; adding the tool to the artifact's MCP allowlist does not change that. Do not retry or rename tools to work around it.

Listing this server's tools in the allowlist also turns the page into a live artifact that requires connectors. Anyone who imports the shared artifact sees Connectors needed for plugin_b2c-dx-mcp_b2c-dx-mcp (for example cip_query, scapi_execute) and cannot import it until those tools are removed.

Decide the data path before writing the page.

Rules for every design

  • Keep this server's tools out of the artifact's MCP tool allowlist.
  • Do not call this server's tools from page code, such as window.cowork.callMcpTool.
  • Before finishing, and before the user shares the artifact, confirm both. Remove any entry or call added while drafting.

Choose a design

Need Design
Live data and the user can run local code Local live dashboard
Live data in an artifact, and a claude.ai connector for B2C exists Allowlist the connector's tools; the artifact calls them directly
A recurring view inside Cowork or claude.ai Refreshed snapshot
A one-time report Embed the results; state when they were collected

Ask when the choice changes what the user gets, for example live data versus a morning refresh. Otherwise state the choice and its freshness.

Local live dashboard

A page served from the user's computer can fetch live data. Write a small local app (for example, a script that serves HTML and JSON) that calls Commerce APIs with the B2C CLI or @salesforce/b2c-tooling-sdk. Both reuse the same B2C configuration as this server (dw.json, environment variables), so no credentials go into the page. Keep credentials server-side; the browser calls only the local app. Find CLI and SDK guidance through skill://index. Run it only where the user has terminal access, and tell them the start command and URL.

Refreshed snapshot

Use this in Cowork when the page must live in the artifact panel:

  1. Collect data with the MCP tools in the conversation. Bound each call: one scapi_execute per zone, site, or report keeps under the execution limit.
  2. Save the query code and a build script with the user's project files so the snapshot can be regenerated without rediscovery.
  3. Embed the results in the artifact as a data constant, with the collection time and source instance.
  4. Create a Cowork scheduled task that reruns the collection and rebuilds the artifact at the cadence the user wants (for example, weekdays at 07:00).
  5. Optionally add a Refresh now button that calls await window.cowork.runScheduledTask(taskId). It needs a click and the user's confirmation, starts a new task, and does not update the open page. Do not add a reload button; the artifact header has one.

window.cowork.askClaude can summarize or explain the embedded data; it cannot fetch new B2C data. Cowork artifacts have no persistent storage. claude.ai artifacts have window.storage, useful for user notes or filters, not B2C credentials or refreshed data.

Fix a Connectors needed warning

When a shared artifact asks for plugin_b2c-dx-mcp_b2c-dx-mcp connectors:

  1. Remove this server's tools from the artifact's MCP tool allowlist.
  2. Replace page code that calls them with embedded results; follow Refreshed snapshot if the page needs updates.
  3. Update the artifact and have the user share it again.

Do not ask recipients to install the plugin instead; even with it, the page cannot call a local server.

Page content

  • Show when the data was collected and mark it stale after the expected refresh.
  • Mask or truncate client IPs, emails, and other personal data unless the user asks for them.
  • Embed only the aggregates the page needs, not raw API responses.
  • Use libraries the artifact sandbox allows; it blocks other network requests.

Related: tool choice and the skill index skill://mcp/b2c-mcp-server/SKILL.md; SCAPI execution skill://mcp/b2c-mcp-scapi/SKILL.md; analytics skill://mcp/b2c-mcp-cip/SKILL.md.

Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Read before building, sharing, or fixing a Claude artifact, Cowork dashboard, or published page from B2C data, including a Connectors needed warning. Artifacts cannot call this local MCP server; never list its tools as artifact connectors.

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

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

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

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

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

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