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★ 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:
- Collect data with the MCP tools in the conversation. Bound each call: one
scapi_executeper zone, site, or report keeps under the execution limit. - Save the query code and a build script with the user's project files so the snapshot can be regenerated without rediscovery.
- Embed the results in the artifact as a data constant, with the collection time and source instance.
- 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).
- 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:
- Remove this server's tools from the artifact's MCP tool allowlist.
- Replace page code that calls them with embedded results; follow Refreshed snapshot if the page needs updates.
- 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.
Установить 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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create 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…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic