[𝍋 MCP Server Tool] Add pwa-kit-create-app guideline tool @@W-18812373@@ #2663
Conversation
Add new guideline tool for pwa-kit project generation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
|
|
||
| ## Overview | ||
|
|
||
| This document defines the behavior agents must follow when using the \`@salesforce/pwa-kit-create-app\` CLI tool to generate new PWA Kit projects. The CLI supports both **presets** and **templates** for project creation, and agents must clearly distinguish between these two modes of operation. |
There was a problem hiding this comment.
Could you have a section explains presets and templates options? So that agent knows the difference if asked.
There was a problem hiding this comment.
The agent in fact already knows that because it has imported program.json from the create-app package itself which has all the schema's and data for presets and templates.
I did this so that the information defined by the create-app project stays co-located with that project and not in ours where it can become out-of-sync. This way if some we add a feature by means of new template type or preset, or argument to the create app project, the mcp will ingest that information without having to make a change to the tool.
…3_add-project-creation-tool
…3_add-project-creation-tool
yhsieh1
left a comment
There was a problem hiding this comment.
LGTM, please make sure tests and build failures are fixed in the coming PR.
c89dec5
into
feature/pwa-developer-agent-only
Description
This PR introduces a new project creation tool that improves the developer experience when bootstrapping new PWA Kit apps.
Previously, project creation was tightly coupled to a CLI script with little flexibility or structure. This update extracts and formalizes that logic into a new module that can be reused, extended, and tested more easily. It lays the foundation for deeper integration with automated agents and developer tools.
This change:
createProject()utility that handles the full lifecycle of creating a new appNo new dependencies were introduced.
NOTE: Before this tool can work, the associated changes to the project generator in this PR have to be merged and released.
Types of Changes
Changes
scripts/project/create.js, a modular entry point for project creationcreate-mobify-app.jsto usecreateProject()How to Test-Drive This PR
Pull this branch.
Run the CLI:
Verify that the project is scaffolded correctly and that the output matches the previous behavior.
(Optional) Call
createProject()directly in a test script to validate its programmatic interface.Checklists
General
Accessibility Compliance
Localization
Let me know if you want to highlight specific use cases for
createProject()like agent integrations or test automation!