experience-app-mcp-generate
БесплатноЗапускает вложенные скриптыНе проверенCreate, extend, deploy, review readiness for, or activate an App MCP, a Salesforce custom hosted MCP server for an Aura Experience Site. Trigger when the user…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Set Up Custom MCP for an Experience Site
End-to-end recipe: ExternalClientApplication (ECA) → custom hosted MCP server → tools and prompts → deploy → optional HXL widgets + Custom Lightning Types + MCP widget resources → activate → verify → optional client delivery. The Experience Site scopes naming and discovery; the MCP server is org-level.
Supports Aura Experience Sites with local ExperienceBundle source. The inventory checks the selected site's view components to determine source support.
Shared rules
<skill-dir>means the absolute directory containing thisSKILL.md. Keep the shell working directory at the SFDX project root, replace<skill-dir>before running bundled scripts, and resolvereferences/...links relative to thisSKILL.md.- Run Phase 0 before every entry path, including repair, resume, and preview/activate-only requests. Proceed only on
decision: continue. - Reconcile with existing state before creating or changing anything. Reuse compatible ECAs, servers, and tool bindings by default. On interruption, use the progress check.
McpServerDefinitionand related runtime records are Tooling API objects. Query them withsf data query --use-tooling-apiorsf api request restagainst/tooling/query; the defaultsf data queryendpoint does not support them.- For authoring, create a missing
sfdx-project.jsonwithpackageDirectories[{"path": "force-app", "default": true}]andsourceApiVersion"68.0". Preserve existing configuration; review/deploy-only requests require an existing project. <default-package>is thepathof thepackageDirectoriesentry with"default": true, or the first entry when none is marked. Pass<default-package>/main/defaultas the metadata directory to the render scripts. Phase 1 still inspects every package directory for the site.- Track the exact metadata files created or changed during the run. Phase 5 deploys only those MCP stack files or existing stack files selected for deployment; Phase 6 deploys only its generated artifacts and named server.
- Handle preflight results as specified in Phase 0. For later failures, stop and report what changed. Read the relevant section of
references/troubleshooting.mdbefore proposing recovery.
Review or deploy an existing stack
Run Phase 0, recover confirmed site/server/ECA identities, then use the progress check and existing-stack review. For readiness/review requests, inspect and report findings and unknowns only; do not create files, retrieve, repair, deploy, activate, or audit end-user permissions. For deployment requests, reconcile existing files and intended bindings, then continue at Phase 5 using applicable prior approvals; author only explicitly requested missing changes. Script success or file presence does not establish readiness.
Repair existing ECA or MCP metadata
For ECA files, run the renderer in read-only comparison mode:
node "<skill-dir>/scripts/render_eca.mjs" <default-package>/main/default <ECA_DEV_NAME> --check
Follow the report's field findings, expectedValues, and nextActions. To resolve unverifiedFields, rerun the Phase 2 render command with confirmed inputs plus --check. Differences are baseline findings, not automatic errors or permission to change intentional overrides. For field ownership, read references/eca-fields.md.
For MCP repairs, read assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml and references/mcp-objects.md. Patch only approved root-field differences; preserve tools, prompts, resources, and relationships. Use merge_tools.mjs for binding changes.
Phase 0 — Preflight
IMPORTANT: Set <skill-named> to true only if the user's request explicitly names experience-app-mcp-generate; otherwise use false. Do not count the agent's own skill selection or messages.
node "<skill-dir>/scripts/preflight.mjs" <target-org-alias> --skill-named <skill-named>
Read the JSON decision:
continue: follow the requested entry path; authoring starts at Phase 1. Proceed without mentioning preflight or explaining why it can't be skipped.skip: immediately exit this skill and pursue the original request another way. Say nothing about this skill, its check, or the result.disabled: say only the returneduserMessage, without error details; exit this skill and pursue the original request another way.needs_inputorerror: show onlyuserMessageandnextAction, obtain corrections and rerun preflight. Proceed only oncontinue; never infer entitlement from errors.
Phase 1 — Experience Site + naming
- List local sites from the SFDX project root:
Stop if the script fails. Report only each site's name and status, without framework, metadata/source-format lanode "<skill-dir>/scripts/list_sites.mjs"
Установить experience-app-mcp-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл experience-app-mcp-generate?
Create, extend, deploy, review readiness for, or activate an App MCP, a Salesforce custom hosted MCP server for an Aura Experience Site. Trigger when the user wants to expose an Experience UI or backend action to agents, create local ECA and server metadata, add eligible global invocable Apex or autolaunched Flow tools, add Prompt Builder templates as MCP prompts or tools, preview or perform server activation, deploy the existing MCP stack, or review its readiness. For server setup, always ask whether the user wants HXL widgets for eligible Apex-backed tools through platform-mcp-tool-widget-coordinate. For a standalone request to generate Custom Lightning Types or widgets for an Apex-backed MCP tool, route directly to platform-mcp-tool-widget-coordinate; do not trigger this skill for HXL generation alone. Do not trigger for remote MCP registration or generic Apex and Flow work unrelated to Experience Site agent access.
Как установить скилл experience-app-mcp-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл experience-app-mcp-generate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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