Command Palette

Search for a command to run...

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

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от 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 this SKILL.md. Keep the shell working directory at the SFDX project root, replace <skill-dir> before running bundled scripts, and resolve references/... links relative to this SKILL.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.
  • McpServerDefinition and related runtime records are Tooling API objects. Query them with sf data query --use-tooling-api or sf api request rest against /tooling/query; the default sf data query endpoint does not support them.
  • For authoring, create a missing sfdx-project.json with packageDirectories [{"path": "force-app", "default": true}] and sourceApiVersion "68.0". Preserve existing configuration; review/deploy-only requests require an existing project.
  • <default-package> is the path of the packageDirectories entry with "default": true, or the first entry when none is marked. Pass <default-package>/main/default as 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.md before 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 returned userMessage, without error details; exit this skill and pursue the original request another way.
  • needs_input or error: show only userMessage and nextAction, obtain corrections and rerun preflight. Proceed only on continue; never infer entitlement from errors.

Phase 1 — Experience Site + naming

  1. List local sites from the SFDX project root:
    node "<skill-dir>/scripts/list_sites.mjs"
    
    Stop if the script fails. Report only each site's name and status, without framework, metadata/source-format la
Полный SKILL.md на GitHub

Установить experience-app-mcp-generate в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

assets/__ECA_NAME__.eca-meta.xmlassets/__ECA_NAME__.ecaGlblOauth-meta.xmlassets/__ECA_NAME__.ecaOauth-meta.xmlassets/__ECA_NAME__.ecaOauthPlcy-meta.xmlassets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xmlassets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xmlreferences/eca-fields.mdreferences/mcp-objects.mdreferences/tool-bindings.mdreferences/troubleshooting.mdreferences/ui-frameworks.mdreferences/widget-resources.mdscripts/activate_server.mjsscripts/check_setup_progress.mjsscripts/list_sites.mjsscripts/merge_tools.mjsscripts/preflight.mjsscripts/render_eca.mjsscripts/render_mcp_server.mjsscripts/retrieve_existing_prompts.mjsscripts/retrieve_existing_tools.mjsscripts/scan_tool_candidates.mjsscripts/utils/callback_url.mjsscripts/utils/developer_name.mjsscripts/utils/eca_check.mjsscripts/utils/metadata_path.mjsscripts/verify_server.mjs

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить experience-app-mcp-generate с