@aws/nx-plugin-mcp 0.105.0 → 0.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/aws-nx-mcp.js +10 -7
- package/package.json +1 -1
package/bin/aws-nx-mcp.js
CHANGED
|
@@ -19036,19 +19036,22 @@ const buildCreateNxWorkspaceCommand = (pm, workspace, iacProvider) => {
|
|
|
19036
19036
|
const addCreateWorkspaceCommandTool = (server) => {
|
|
19037
19037
|
server.registerTool("create-workspace-command", {
|
|
19038
19038
|
description: "Tool to discover how to create a workspace to start a new project.",
|
|
19039
|
-
inputSchema: {
|
|
19040
|
-
|
|
19041
|
-
packageManager: PackageManagerSchema
|
|
19042
|
-
}
|
|
19043
|
-
}, ({ workspaceName, packageManager }) => ({ content: [{
|
|
19039
|
+
inputSchema: { packageManager: PackageManagerSchema }
|
|
19040
|
+
}, ({ packageManager }) => ({ content: [{
|
|
19044
19041
|
type: "text",
|
|
19045
19042
|
text: `Run the following command to create a workspace:
|
|
19046
19043
|
|
|
19047
19044
|
\`\`\`bash
|
|
19048
|
-
${buildCreateNxWorkspaceCommand(packageManager,
|
|
19045
|
+
${buildCreateNxWorkspaceCommand(packageManager, "<workspace-name>")} --no-interactive
|
|
19049
19046
|
\`\`\`
|
|
19050
19047
|
|
|
19051
|
-
This will create a new workspace within the
|
|
19048
|
+
This will create a new workspace within the \`<workspace-name>\` directory.
|
|
19049
|
+
|
|
19050
|
+
If you are already inside an empty directory intended for this project, you can pass \`.\` as the workspace name to create the workspace in the current directory:
|
|
19051
|
+
|
|
19052
|
+
\`\`\`bash
|
|
19053
|
+
${buildCreateNxWorkspaceCommand(packageManager, ".")} --no-interactive
|
|
19054
|
+
\`\`\`
|
|
19052
19055
|
|
|
19053
19056
|
Note that this will prompt for an Infrastructure as Code provider (${IAC_PROVIDERS.join(", ")}).
|
|
19054
19057
|
If you know the preferred option, pass ${IAC_PROVIDERS.map((iac) => `\`--iacProvider=${iac}\``).join(" or ")} to the above command to skip the prompt.
|