@aws/nx-plugin 0.96.0 → 0.97.1

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.
Files changed (38) hide show
  1. package/LICENSE-THIRD-PARTY +97 -56
  2. package/README.md +132 -62
  3. package/package.json +1 -1
  4. package/src/mcp-server/generator-info.d.ts +1 -1
  5. package/src/mcp-server/generator-info.js +1 -1
  6. package/src/mcp-server/generator-info.js.map +1 -1
  7. package/src/mcp-server/tools/create-workspace-command.js +5 -5
  8. package/src/mcp-server/tools/create-workspace-command.js.map +1 -1
  9. package/src/mcp-server/tools/general-guidance.d.ts +1 -1
  10. package/src/mcp-server/tools/general-guidance.js +2 -2
  11. package/src/mcp-server/tools/general-guidance.js.map +1 -1
  12. package/src/mcp-server/tools/generator-guide.d.ts +1 -1
  13. package/src/mcp-server/tools/list-generators.d.ts +1 -1
  14. package/src/ts/nx-plugin/__snapshots__/generator.spec.ts.snap +17 -3
  15. package/src/ts/nx-plugin/files/mcp-server/tools/create-workspace-command.ts.template +2 -2
  16. package/src/ts/nx-plugin/files/mcp-server/utils.ts.template +11 -1
  17. package/src/ts/nx-plugin/generator.js +0 -2
  18. package/src/ts/nx-plugin/generator.js.map +1 -1
  19. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +7 -13
  20. package/src/ts/react-website/app/generator.js +3 -7
  21. package/src/ts/react-website/app/generator.js.map +1 -1
  22. package/src/utils/commands.d.ts +17 -3
  23. package/src/utils/commands.js +26 -12
  24. package/src/utils/commands.js.map +1 -1
  25. package/src/utils/generators.d.ts +4 -0
  26. package/src/utils/generators.js.map +1 -1
  27. package/src/utils/iac-providers.d.ts +7 -0
  28. package/src/utils/iac-providers.js +9 -0
  29. package/src/utils/iac-providers.js.map +1 -0
  30. package/src/utils/iac.d.ts +4 -5
  31. package/src/utils/iac.js +5 -3
  32. package/src/utils/iac.js.map +1 -1
  33. package/src/utils/nx.d.ts +9 -5
  34. package/src/utils/nx.js +4 -4
  35. package/src/utils/nx.js.map +1 -1
  36. package/src/utils/versions.d.ts +1 -2
  37. package/src/utils/versions.js +0 -1
  38. package/src/utils/versions.js.map +1 -1
@@ -3244,7 +3244,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3244
3244
 
3245
3245
  ---
3246
3246
 
3247
- The following software may be included in this product: @emnapi/core (1.9.1)
3247
+ The following software may be included in this product: @emnapi/core (1.9.2)
3248
3248
  This software contains the following license and notice below:
3249
3249
 
3250
3250
  MIT License
@@ -3271,7 +3271,7 @@ SOFTWARE.
3271
3271
 
3272
3272
  ---
3273
3273
 
3274
- The following software may be included in this product: @emnapi/runtime (1.7.1)
3274
+ The following software may be included in this product: @emnapi/runtime (1.9.2)
3275
3275
  This software contains the following license and notice below:
3276
3276
 
3277
3277
  MIT License
@@ -3298,7 +3298,7 @@ SOFTWARE.
3298
3298
 
3299
3299
  ---
3300
3300
 
3301
- The following software may be included in this product: @emnapi/wasi-threads (1.2.0)
3301
+ The following software may be included in this product: @emnapi/wasi-threads (1.2.1)
3302
3302
  This software contains the following license and notice below:
3303
3303
 
3304
3304
  MIT License
@@ -3325,12 +3325,12 @@ SOFTWARE.
3325
3325
 
3326
3326
  ---
3327
3327
 
3328
- The following software may be included in this product: @esbuild/linux-x64 (0.27.4)
3328
+ The following software may be included in this product: @esbuild/darwin-arm64 (0.27.4)
3329
3329
  This software contains the following license and notice below:
3330
3330
 
3331
3331
  MIT License
3332
3332
 
3333
- Copyright (c) The maintainers of @esbuild/linux-x64 <https://github.com/evanw/esbuild#readme>
3333
+ Copyright (c) The maintainers of @esbuild/darwin-arm64 <https://github.com/evanw/esbuild#readme>
3334
3334
 
3335
3335
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
3336
3336
  associated documentation files (the "Software"), to deal in the Software without restriction, including
@@ -3349,12 +3349,12 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
3349
3349
 
3350
3350
  ---
3351
3351
 
3352
- The following software may be included in this product: @esbuild/linux-x64 (0.28.0)
3352
+ The following software may be included in this product: @esbuild/darwin-arm64 (0.28.0)
3353
3353
  This software contains the following license and notice below:
3354
3354
 
3355
3355
  MIT License
3356
3356
 
3357
- Copyright (c) The maintainers of @esbuild/linux-x64 <https://github.com/evanw/esbuild#readme>
3357
+ Copyright (c) The maintainers of @esbuild/darwin-arm64 <https://github.com/evanw/esbuild#readme>
3358
3358
 
3359
3359
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
3360
3360
  associated documentation files (the "Software"), to deal in the Software without restriction, including
@@ -3528,12 +3528,36 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
3528
3528
 
3529
3529
  ---
3530
3530
 
3531
- The following software may be included in this product: @getgrit/gritql-linux-x64-gnu (0.0.3)
3531
+ The following software may be included in this product: @getgrit/gritql-darwin-arm64 (0.0.3)
3532
3532
  This software contains the following license and notice below:
3533
3533
 
3534
3534
  MIT License
3535
3535
 
3536
- Copyright (c) The maintainers of @getgrit/gritql-linux-x64-gnu <https://github.com/biomejs/gritql#readme>
3536
+ Copyright (c) The maintainers of @getgrit/gritql-darwin-arm64 <https://github.com/biomejs/gritql#readme>
3537
+
3538
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
3539
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
3540
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3541
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
3542
+ following conditions:
3543
+
3544
+ The above copyright notice and this permission notice shall be included in all copies or substantial
3545
+ portions of the Software.
3546
+
3547
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
3548
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
3549
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
3550
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
3551
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
3552
+
3553
+ ---
3554
+
3555
+ The following software may be included in this product: @getgrit/gritql-darwin-universal (0.0.3)
3556
+ This software contains the following license and notice below:
3557
+
3558
+ MIT License
3559
+
3560
+ Copyright (c) The maintainers of @getgrit/gritql-darwin-universal <https://github.com/biomejs/gritql#readme>
3537
3561
 
3538
3562
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
3539
3563
  associated documentation files (the "Software"), to deal in the Software without restriction, including
@@ -5053,7 +5077,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5053
5077
 
5054
5078
  ---
5055
5079
 
5056
- The following software may be included in this product: @nx/nx-linux-x64-gnu (22.6.5)
5080
+ The following software may be included in this product: @nx/nx-darwin-arm64 (22.6.5)
5057
5081
  This software contains the following license and notice below:
5058
5082
 
5059
5083
  (The MIT License)
@@ -5304,12 +5328,12 @@ SOFTWARE.
5304
5328
 
5305
5329
  ---
5306
5330
 
5307
- The following software may be included in this product: @oxc-resolver/binding-linux-x64-gnu (11.19.1)
5331
+ The following software may be included in this product: @oxc-resolver/binding-darwin-arm64 (11.19.1)
5308
5332
  This software contains the following license and notice below:
5309
5333
 
5310
5334
  MIT License
5311
5335
 
5312
- Copyright (c) The maintainers of @oxc-resolver/binding-linux-x64-gnu <https://oxc.rs>
5336
+ Copyright (c) The maintainers of @oxc-resolver/binding-darwin-arm64 <https://oxc.rs>
5313
5337
 
5314
5338
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
5315
5339
  associated documentation files (the "Software"), to deal in the Software without restriction, including
@@ -5640,12 +5664,12 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
5640
5664
 
5641
5665
  ---
5642
5666
 
5643
- The following software may be included in this product: @rolldown/binding-linux-x64-gnu (1.0.0-rc.15)
5667
+ The following software may be included in this product: @rolldown/binding-darwin-arm64 (1.0.0-rc.15)
5644
5668
  This software contains the following license and notice below:
5645
5669
 
5646
5670
  MIT License
5647
5671
 
5648
- Copyright (c) The maintainers of @rolldown/binding-linux-x64-gnu <https://rolldown.rs/>
5672
+ Copyright (c) The maintainers of @rolldown/binding-darwin-arm64 <https://rolldown.rs/>
5649
5673
 
5650
5674
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
5651
5675
  associated documentation files (the "Software"), to deal in the Software without restriction, including
@@ -5905,7 +5929,7 @@ THE SOFTWARE.
5905
5929
 
5906
5930
  ---
5907
5931
 
5908
- The following software may be included in this product: @rollup/rollup-linux-x64-gnu (4.50.1)
5932
+ The following software may be included in this product: @rollup/rollup-darwin-arm64 (4.50.1)
5909
5933
  This software contains the following license and notice below:
5910
5934
 
5911
5935
  MIT License
@@ -5957,7 +5981,7 @@ SOFTWARE.
5957
5981
 
5958
5982
  ---
5959
5983
 
5960
- The following software may be included in this product: @rspack/binding-linux-x64-gnu (1.6.8)
5984
+ The following software may be included in this product: @rspack/binding-darwin-arm64 (1.6.8)
5961
5985
  This software contains the following license and notice below:
5962
5986
 
5963
5987
  MIT License
@@ -8979,19 +9003,6 @@ SOFTWARE.
8979
9003
 
8980
9004
  ---
8981
9005
 
8982
- The following software may be included in this product: axios (1.13.6)
8983
- This software contains the following license and notice below:
8984
-
8985
- # Copyright (c) 2014-present Matt Zabriskie & Collaborators
8986
-
8987
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8988
-
8989
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8990
-
8991
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8992
-
8993
- ---
8994
-
8995
9006
  The following software may be included in this product: axios (1.15.0)
8996
9007
  This software contains the following license and notice below:
8997
9008
 
@@ -11246,6 +11257,34 @@ OTHER DEALINGS IN THE SOFTWARE.
11246
11257
 
11247
11258
  ---
11248
11259
 
11260
+ The following software may be included in this product: create-nx-workspace (22.6.5)
11261
+ This software contains the following license and notice below:
11262
+
11263
+ (The MIT License)
11264
+
11265
+ Copyright (c) 2017-2026 Narwhal Technologies Inc.
11266
+
11267
+ Permission is hereby granted, free of charge, to any person obtaining
11268
+ a copy of this software and associated documentation files (the
11269
+ 'Software'), to deal in the Software without restriction, including
11270
+ without limitation the rights to use, copy, modify, merge, publish,
11271
+ distribute, sublicense, and/or sell copies of the Software, and to
11272
+ permit persons to whom the Software is furnished to do so, subject to
11273
+ the following conditions:
11274
+
11275
+ The above copyright notice and this permission notice shall be
11276
+ included in all copies or substantial portions of the Software.
11277
+
11278
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
11279
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
11280
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
11281
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
11282
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
11283
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
11284
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11285
+
11286
+ ---
11287
+
11249
11288
  The following software may be included in this product: cron-parser (4.9.0)
11250
11289
  This software contains the following license and notice below:
11251
11290
 
@@ -14018,6 +14057,34 @@ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHE
14018
14057
 
14019
14058
  ---
14020
14059
 
14060
+ The following software may be included in this product: fsevents (2.3.3)
14061
+ This software contains the following license and notice below:
14062
+
14063
+ MIT License
14064
+ -----------
14065
+
14066
+ Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
14067
+
14068
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14069
+ of this software and associated documentation files (the "Software"), to deal
14070
+ in the Software without restriction, including without limitation the rights
14071
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14072
+ copies of the Software, and to permit persons to whom the Software is
14073
+ furnished to do so, subject to the following conditions:
14074
+
14075
+ The above copyright notice and this permission notice shall be included in
14076
+ all copies or substantial portions of the Software.
14077
+
14078
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14079
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14080
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14081
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14082
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
14083
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
14084
+ THE SOFTWARE.
14085
+
14086
+ ---
14087
+
14021
14088
  The following software may be included in this product: function-bind (1.1.2)
14022
14089
  This software contains the following license and notice below:
14023
14090
 
@@ -20829,32 +20896,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20829
20896
 
20830
20897
  ---
20831
20898
 
20832
- The following software may be included in this product: proxy-from-env (1.1.0)
20833
- This software contains the following license and notice below:
20834
-
20835
- The MIT License
20836
-
20837
- Copyright (C) 2016-2018 Rob Wu <rob@robwu.nl>
20838
-
20839
- Permission is hereby granted, free of charge, to any person obtaining a copy of
20840
- this software and associated documentation files (the "Software"), to deal in
20841
- the Software without restriction, including without limitation the rights to
20842
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
20843
- of the Software, and to permit persons to whom the Software is furnished to do
20844
- so, subject to the following conditions:
20845
-
20846
- The above copyright notice and this permission notice shall be included in all
20847
- copies or substantial portions of the Software.
20848
-
20849
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20850
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
20851
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20852
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20853
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20854
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20855
-
20856
- ---
20857
-
20858
20899
  The following software may be included in this product: proxy-from-env (2.1.0)
20859
20900
  This software contains the following license and notice below:
20860
20901
 
@@ -41434,7 +41475,7 @@ defined by the Mozilla Public License, v. 2.0.
41434
41475
 
41435
41476
  ---
41436
41477
 
41437
- The following software may be included in this product: lightningcss-linux-x64-gnu (1.32.0)
41478
+ The following software may be included in this product: lightningcss-darwin-arm64 (1.32.0)
41438
41479
  This software contains the following license and notice below:
41439
41480
 
41440
41481
  Mozilla Public License Version 2.0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
- <h1>Nx Plugin for AWS - @aws/nx-plugin</h1>
3
- <h3>Rapidly scaffold and build projects on AWS</h3>
2
+ <h1>Nx Plugin for AWS</h1>
3
+ <h3>Build full-stack AWS apps in minutes</h3>
4
4
  <a href="https://opensource.org/licenses/Apache-2.0">
5
5
  <img
6
6
  src="https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg"
@@ -10,12 +10,6 @@
10
10
  <a href="https://codecov.io/gh/awslabs/nx-plugin-for-aws">
11
11
  <img src="https://codecov.io/gh/awslabs/nx-plugin-for-aws/graph/badge.svg?token=X27pgFfxuQ" />
12
12
  </a>
13
- <a href="https://gitpod.io/new/?workspaceClass=g1-large#https://github.com/awslabs/nx-plugin-for-aws">
14
- <img
15
- src="https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod"
16
- alt="Gitpod ready-to-code"
17
- />
18
- </a>
19
13
  <a href="https://github.com/awslabs/nx-plugin-for-aws/actions/workflows/ci.yml">
20
14
  <img
21
15
  src="https://github.com/awslabs/nx-plugin-for-aws/actions/workflows/ci.yml/badge.svg"
@@ -28,84 +22,162 @@
28
22
  alt="Commit activity"
29
23
  />
30
24
  </a>
31
- <br />
32
- <br />
33
- <figure>
34
- <img src="docs/src/content/docs/assets/website-generator.gif" alt="Demo" />
35
- </figure>
36
- <br />
37
- 👉 See full documentation on <a href="https://awslabs.github.io/nx-plugin-for-aws">https://awslabs.github.io/nx-plugin-for-aws</a> 👈
38
25
  </div>
39
26
 
40
- ## Intro
27
+ ---
41
28
 
42
- [@aws/nx-plugin](https://github.com/awslabs/nx-plugin-for-aws) is a collection of generators to help you build cloud-native applications with AWS.
29
+ **@aws/nx-plugin** is a collection of code generators that scaffold full-stack, production-ready AWS applications inside an [Nx](https://nx.dev) monorepo. Every generator produces best-practice application code **and** the infrastructure to deploy it type-safe, locally runnable, and ready to deploy.
43
30
 
44
- ## Key Features
31
+ ## Quick Start
45
32
 
46
- - **Declarative**: Generate code that follows best practices for AWS cloud development.
47
- - **End-to-end**: Generate application code and CDK/Terraform infrastructure to deploy to AWS.
48
- - **Component-Based**: Add components to your project as needed, from React websites to serverless APIs using either the CLI or UI.
49
- - **Learn Once, Use Anywhere**: Consistent patterns across different AWS services and application types.
50
- - **Open for modification**: All code generated is your code and can be edited as you see fit.
51
- - **Type safety**: Type-safety is employed to support IDE completions and reduce the number of runtime errors encountered.
52
- - **Local-first**: Iterate quickly by developing locally before deploying to AWS.
53
- - **Minimal dependencies**: Getting up and running is simple and only requires langugage level global dependencies.
33
+ ### Build with AI
54
34
 
55
- ## Available Generators
35
+ Add the MCP server to your AI assistant and let it build for you.
36
+
37
+ ```bash
38
+ claude mcp add nx-plugin-for-aws -- npx -y @aws/nx-plugin-mcp
39
+ ```
40
+
41
+ <details>
42
+ <summary><strong>Kiro</strong></summary>
56
43
 
57
- - `ts#project` - Generate a new TypeScript library.
58
- - `ts#infra` - Generate a Typescript AWS CDK infrastructure project for your application.
59
- - `ts#react-website` - Generate a new React based web application using Vite.
60
- - `ts#react-website#auth` - Add AWS Cognito authentication to your React website.
61
- - `ts#trpc-api` - Generate a tRPC backend service with Amazon API Gateway/AWS Lambda integrations and [AWS Powertools](https://github.com/aws-powertools/powertools-lambda-typescript) pre-configured.
62
- - `ts#nx-generator` - Add an [Nx Generator](https://nx.dev/features/generate-code) to a TypeScript project.
63
- - `ts#mcp-server` - Add a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server to a TypeScript project.
64
- - `ts#strands-agent` - Add a [Strands Agent](https://strandsagents.com/) to a TypeScript project.
65
- - `ts#lambda-function` - Generate a TypeScript lambda function with optional type-safe event sources.
66
- - `terraform#project` - Generate a new Terraform project.
67
- - `py#project` - Generate a uv based Python project.
68
- - `py#fast-api` - Generate a FastAPI backend service with [AWS Powertools](https://github.com/aws-powertools/powertools-lambda-python) pre-configured.
69
- - `py#lambda-function` - Add a lambda function to an existing python project with optional type-safe event sources.
70
- - `py#mcp-server` - Add a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server to a Python project.
71
- - `py#strands-agent` Add a [Strands Agent](https://strandsagents.com/) to a Python project.
72
- - `connection` - Connect projects together (e.g. frontend to backend APIs).
73
- - `license` - Automatically manage LICENSE files and source code headers in your workspace.
44
+ Install the [Kiro Power](https://kiro.dev/docs/powers/) for the best experience — no manual MCP configuration needed:
74
45
 
75
- ## Getting started
46
+ 1. Open the Kiro Powers panel from the sidebar
47
+ 2. Click `+` to add a custom power
48
+ 3. Paste: `https://github.com/awslabs/nx-plugin-for-aws/tree/main/powers/nx-plugin-for-aws`
49
+ 4. Click install
76
50
 
77
- @aws/nx-plugin has been designed for gradual adoption from the start, and **you can use as little or as much of it as you need**.
51
+ Or add the MCP server manually in `.kiro/mcp.json`:
52
+
53
+ ```json
54
+ {
55
+ "mcpServers": {
56
+ "nx-plugin-for-aws": {
57
+ "command": "npx",
58
+ "args": ["-y", "@aws/nx-plugin-mcp"]
59
+ }
60
+ }
61
+ }
62
+ ```
63
+
64
+ </details>
65
+
66
+ <details>
67
+ <summary><strong>Claude Code</strong></summary>
68
+
69
+ ```bash
70
+ claude mcp add nx-plugin-for-aws -- npx -y @aws/nx-plugin-mcp
71
+ ```
72
+
73
+ </details>
74
+
75
+ <details>
76
+ <summary><strong>Cursor</strong></summary>
77
+
78
+ Add to `~/.cursor/mcp.json`:
79
+
80
+ ```json
81
+ {
82
+ "mcpServers": {
83
+ "nx-plugin-for-aws": {
84
+ "command": "npx",
85
+ "args": ["-y", "@aws/nx-plugin-mcp"]
86
+ }
87
+ }
88
+ }
89
+ ```
78
90
 
79
- Follow the [Quick Start](https://awslabs.github.io/nx-plugin-for-aws/en/get_started/quick-start) guide to create a workspace and add projects.
91
+ </details>
80
92
 
81
- ### Additional resources
93
+ <details>
94
+ <summary><strong>Codex</strong></summary>
82
95
 
83
- - [Build a Dungeon Adventure Game](https://awslabs.github.io/nx-plugin-for-aws/en/get_started/tutorials/dungeon-game/overview/) to get an in-depth guided tutorial on how to use the @aws/nx-plugin.
84
- - [Add @aws/nx-plugin to your existing project](https://awslabs.github.io/nx-plugin-for-aws/en/get_started/tutorials/existing-project/)
96
+ Add to `~/.codex/config.toml`:
85
97
 
86
- ## MCP Server Installation and Setup
98
+ ```toml
99
+ [mcp_servers.nx-plugin-for-aws]
100
+ command = "npx"
101
+ args = ["-y", "@aws/nx-plugin-mcp"]
102
+ ```
87
103
 
88
- This package additionally provides an MCP server to help AI assistants use the Nx Plugin for AWS.
104
+ </details>
89
105
 
90
- 1. Ensure you have `node` and `npm` installed ([see here](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm))
91
- 2. Add the server to your MCP client configuration
106
+ <details>
107
+ <summary><strong>Other assistants</strong></summary>
92
108
 
93
- Example configuration for Amazon Q CLI MCP (`~/.aws/amazonq/mcp.json`):
109
+ Most MCP-compatible assistants use a JSON configuration file. Add the following entry:
94
110
 
95
111
  ```json
96
112
  {
97
113
  "mcpServers": {
98
- "aws-nx-mcp": {
114
+ "nx-plugin-for-aws": {
99
115
  "command": "npx",
100
- "args": ["-y", "-p", "@aws/nx-plugin", "aws-nx-mcp"]
116
+ "args": ["-y", "@aws/nx-plugin-mcp"]
101
117
  }
102
118
  }
103
119
  }
104
120
  ```
105
121
 
106
- If you have issues such as `ENOENT npx`, replace the command with `/full/path/to/npx` (use `which npx` to find this).
122
+ </details>
123
+
124
+ Then just ask:
125
+
126
+ > _"Use the Nx Plugin for AWS to build a full-stack app with a React website, a tRPC API, Cognito auth, and CDK infrastructure."_
127
+
128
+ Your AI assistant will use the MCP tools to scaffold, connect, and configure everything. See the [Building with AI guide](https://awslabs.github.io/nx-plugin-for-aws/en/get_started/building-with-ai/) for more details.
129
+
130
+ ### Build with the CLI
131
+
132
+ Create a workspace and start adding components — zero configuration required:
107
133
 
108
- For more details, [take a look at the guide here](https://awslabs.github.io/nx-plugin-for-aws/en/get_started/building-with-ai/)
134
+ ```bash
135
+ # Create a new workspace
136
+ pnpm create @aws/nx-workspace my-project
137
+ cd my-project
138
+
139
+ # Add a tRPC API
140
+ pnpm nx g @aws/nx-plugin:ts#trpc-api
141
+
142
+ # Add a Strands AI agent (Python)
143
+ pnpm nx g @aws/nx-plugin:py#strands-agent
144
+
145
+ # Add a React website
146
+ pnpm nx g @aws/nx-plugin:ts#react-website
147
+
148
+ # Add authentication to your website
149
+ pnpm nx g @aws/nx-plugin:ts#react-website#auth
150
+
151
+ # Connect your website to your API and agent
152
+ pnpm nx g @aws/nx-plugin:connection
153
+
154
+ # Add CDK infrastructure to deploy it all (or choose Terraform)
155
+ pnpm nx g @aws/nx-plugin:ts#infra
156
+ ```
157
+
158
+ > See the full [Quick Start guide](https://awslabs.github.io/nx-plugin-for-aws/en/get_started/quick-start) and [Dungeon Adventure tutorial](https://awslabs.github.io/nx-plugin-for-aws/en/get_started/tutorials/dungeon-game/overview/) for a deeper walkthrough.
159
+
160
+ ## Available Generators
161
+
162
+ | Generator | Description |
163
+ | ----------------------- | ----------------------------------------------------------------------------------------------------------------- |
164
+ | `ts#project` | TypeScript library |
165
+ | `ts#trpc-api` | tRPC API with API Gateway + Lambda + [Powertools](https://github.com/aws-powertools/powertools-lambda-typescript) |
166
+ | `ts#react-website` | React app (Vite) |
167
+ | `ts#react-website#auth` | Add Cognito auth to a React website |
168
+ | `ts#infra` | AWS CDK infrastructure project |
169
+ | `ts#lambda-function` | TypeScript Lambda with type-safe event sources |
170
+ | `ts#mcp-server` | MCP server (TypeScript) |
171
+ | `ts#strands-agent` | [Strands Agent](https://strandsagents.com/) (TypeScript) |
172
+ | `ts#nx-generator` | Nx generator scaffold |
173
+ | `py#project` | Python project (uv) |
174
+ | `py#fast-api` | FastAPI with API Gateway + Lambda + [Powertools](https://github.com/aws-powertools/powertools-lambda-python) |
175
+ | `py#lambda-function` | Python Lambda with type-safe event sources |
176
+ | `py#mcp-server` | MCP server (Python) |
177
+ | `py#strands-agent` | [Strands Agent](https://strandsagents.com/) (Python) |
178
+ | `connection` | Connect projects together (e.g. frontend to API) |
179
+ | `terraform#project` | Terraform project |
180
+ | `license` | Manage LICENSE files and source headers |
109
181
 
110
182
  ## Community
111
183
 
@@ -113,9 +185,7 @@ Join us on Slack in the [#nx-plugin-for-aws](https://cdk-dev.slack.com/archives/
113
185
 
114
186
  ## Contributing
115
187
 
116
- The main purpose of this repository is to continue evolving @aws/nx-plugin, making it faster and easier to use. Development happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements.
117
-
118
- Read our [Contributing Guide](/CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to @aws/nx-plugin.
188
+ Read our [Contributing Guide](/CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.
119
189
 
120
190
  ## Code of Conduct
121
191
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -1,4 +1,4 @@
1
- import { NxGeneratorInfo } from '../utils/nx';
1
+ import { NxGeneratorInfo } from '../utils/generators';
2
2
  /**
3
3
  * Build a command to run nx
4
4
  */
@@ -15,7 +15,7 @@ const fs_1 = tslib_1.__importDefault(require("fs"));
15
15
  const buildNxCommand = (command, pm) => pm ? (0, commands_1.buildPackageManagerExecCommand)(pm, `nx ${command}`) : `nx ${command}`;
16
16
  exports.buildNxCommand = buildNxCommand;
17
17
  const renderSchema = (schema) => Object.entries(schema.properties)
18
- .map(([parameter, parameterSchema]) => `- ${parameter} [type: ${parameterSchema.type}]${(schema.required ?? []).includes(parameter) ? ` (required)` : ''} ${parameterSchema.description}`)
18
+ .map(([parameter, parameterSchema]) => `- ${parameter} [type: ${parameterSchema.type}]${parameterSchema.enum ? ` [options: ${parameterSchema.enum.join(', ')}]` : ''}${(schema.required ?? []).includes(parameter) ? ` (required)` : ''} ${parameterSchema.description}`)
19
19
  .join('\n');
20
20
  const renderGeneratorCommand = (generatorId, schema, packageManager) => `\`\`\`bash
21
21
  ${(0, exports.buildNxCommand)(`g @aws/nx-plugin:${generatorId} --no-interactive ${Object.entries(schema.properties)
@@ -1 +1 @@
1
- {"version":3,"file":"generator-info.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/mcp-server/generator-info.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,0CAA2C;AAC3C,gDAK2B;AAE3B,oDAAoB;AAEpB;;GAEG;AACI,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAW,EAAE,EAAE,CAC7D,EAAE,CAAC,CAAC,CAAC,IAAA,yCAA8B,EAAC,EAAE,EAAE,MAAM,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,OAAO,EAAE,CAAC;AADhE,QAAA,cAAc,kBACkD;AAE7E,MAAM,YAAY,GAAG,CAAC,MAAW,EAAE,EAAE,CACnC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC;KAC9B,GAAG,CACF,CAAC,CAAC,SAAS,EAAE,eAAe,CAAgB,EAAE,EAAE,CAC9C,KAAK,SAAS,WAAW,eAAe,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,IAAI,eAAe,CAAC,WAAW,EAAE,CACrJ;KACA,IAAI,CAAC,IAAI,CAAC,CAAC;AAEhB,MAAM,sBAAsB,GAAG,CAC7B,WAAmB,EACnB,MAAW,EACX,cAAuB,EACvB,EAAE,CAAC;EACH,IAAA,sBAAc,EACd,oBAAoB,WAAW,qBAAqB,MAAM,CAAC,OAAO,CAChE,MAAM,CAAC,UAAU,CAClB;KACE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CA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AAO,eAAe,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAe,EAAE,EAAE,CAAC,IAAA,0CAA+B,EAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;QAC7H,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC,CACF,CAAC;IAEF,0DAA0D;IAC1D,cAAc,GAAG,cAAc,CAAC,OAAO,CACrC,wDAAwD,EACxD,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,aAAa;iBACV,UAAU,CAAC,KAAK,EAAE,0BAA0B,CAAC;iBAC7C,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC;iBACpB,UAAU,CAAC,0BAA0B,EAAE,KAAK,CAAC,CACjD,CAAC;YACF,MAAM,EAAE,GAAG,cAAc,IAAI,MAAM,CAAC;YACpC,OAAO,eAAe,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAe,EAAE,EAAE,CAAC,IAAA,yCAA8B,EAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;QAC5H,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC,CACF,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAjLW,QAAA,gBAAgB,oBAiL3B"}
1
+ {"version":3,"file":"generator-info.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/mcp-server/generator-info.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,0CAA2C;AAC3C,gDAK2B;AAE3B,oDAAoB;AAEpB;;GAEG;AACI,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAW,EAAE,EAAE,CAC7D,EAAE,CAAC,CAAC,CAAC,IAAA,yCAA8B,EAAC,EAA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,cAAc,CAAC,OAAO,CACrC,wDAAwD,EACxD,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CACzB,aAAa;iBACV,UAAU,CAAC,KAAK,EAAE,0BAA0B,CAAC;iBAC7C,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC;iBACpB,UAAU,CAAC,0BAA0B,EAAE,KAAK,CAAC,CACjD,CAAC;YACF,MAAM,EAAE,GAAG,cAAc,IAAI,MAAM,CAAC;YACpC,OAAO,eAAe,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAe,EAAE,EAAE,CAAC,IAAA,yCAA8B,EAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;QAC5H,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC,CACF,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAjLW,QAAA,gBAAgB,oBAiL3B"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addCreateWorkspaceCommandTool = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schema_1 = require("../schema");
6
- const iac_1 = require("../../utils/iac");
7
- const versions_1 = require("../../utils/versions");
6
+ const iac_providers_1 = require("../../utils/iac-providers");
7
+ const commands_1 = require("../../utils/commands");
8
8
  /**
9
9
  * Add a tool which tells a model how to create an Nx workspace
10
10
  */
@@ -22,13 +22,13 @@ const addCreateWorkspaceCommandTool = (server) => {
22
22
  text: `Run the following command to create a workspace:
23
23
 
24
24
  \`\`\`bash
25
- npx create-nx-workspace@${versions_1.TS_VERSIONS['create-nx-workspace']} ${workspaceName} --pm=${packageManager} --preset=@aws/nx-plugin --ci=skip --no-interactive --analytics=false --aiAgents
25
+ ${(0, commands_1.buildCreateNxWorkspaceCommand)(packageManager, workspaceName)} --no-interactive
26
26
  \`\`\`
27
27
 
28
28
  This will create a new workspace within the ${workspaceName} directory.
29
29
 
30
- Note that this will prompt for an Infrastructure as Code provider (${iac_1.IAC_PROVIDERS.join(', ')}).
31
- If you know the preferred option, pass ${iac_1.IAC_PROVIDERS.map((iac) => `\`--iacProvider=${iac}\``).join(' or ')} to the above command to skip the prompt.
30
+ Note that this will prompt for an Infrastructure as Code provider (${iac_providers_1.IAC_PROVIDERS.join(', ')}).
31
+ If you know the preferred option, pass ${iac_providers_1.IAC_PROVIDERS.map((iac) => `\`--iacProvider=${iac}\``).join(' or ')} to the above command to skip the prompt.
32
32
  `,
33
33
  },
34
34
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"create-workspace-command.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/mcp-server/tools/create-workspace-command.ts"],"names":[],"mappings":";;;AAKA,6BAAwB;AACxB,sCAAiD;AACjD,yCAAgD;AAChD,mDAAmD;AAEnD;;GAEG;AACI,MAAM,6BAA6B,GAAG,CAAC,MAAiB,EAAE,EAAE;IACjE,MAAM,CAAC,YAAY,CACjB,0BAA0B,EAC1B;QACE,WAAW,EACT,oEAAoE;QACtE,WAAW,EAAE;YACX,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;YACzB,cAAc,EAAE,6BAAoB;SACrC;KACF,EACD,CAAC,EAAE,aAAa,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CAAC;QACtC,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAe;gBACrB,IAAI,EAAE;;;0BAGU,sBAAW,CAAC,qBAAqB,CAAC,IAAI,aAAa,SAAS,cAAc;;;8CAGtD,aAAa;;qEAEU,mBAAa,CAAC,IAAI,CAAC,IAAI,CAAC;yCACpD,mBAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;GACzG;aACM;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,6BAA6B,iCA8BxC"}
1
+ {"version":3,"file":"create-workspace-command.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/mcp-server/tools/create-workspace-command.ts"],"names":[],"mappings":";;;AAKA,6BAAwB;AACxB,sCAAiD;AACjD,6DAA0D;AAC1D,mDAAqE;AAErE;;GAEG;AACI,MAAM,6BAA6B,GAAG,CAAC,MAAiB,EAAE,EAAE;IACjE,MAAM,CAAC,YAAY,CACjB,0BAA0B,EAC1B;QACE,WAAW,EACT,oEAAoE;QACtE,WAAW,EAAE;YACX,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;YACzB,cAAc,EAAE,6BAAoB;SACrC;KACF,EACD,CAAC,EAAE,aAAa,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CAAC;QACtC,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAe;gBACrB,IAAI,EAAE;;;EAGd,IAAA,wCAA6B,EAAC,cAAc,EAAE,aAAa,CAAC;;;8CAGhB,aAAa;;qEAEU,6BAAa,CAAC,IAAI,CAAC,IAAI,CAAC;yCACpD,6BAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;GACzG;aACM;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,6BAA6B,iCA8BxC"}
@@ -3,7 +3,7 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
6
- import { NxGeneratorInfo } from '../../utils/nx';
6
+ import { NxGeneratorInfo } from '../../utils/generators';
7
7
  export declare const TOOL_SELECTION_GUIDE = "## Tool Selection Guide\n\n- Use the `general-guidance` tool for guidance and best practices for working with Nx and the Nx Plugin for AWS.\n- Use the `create-workspace-command` tool to discover how to create a workspace to start a new project.\n- Use the `list-generators` tool to discover the available generators and how to run them.\n- Use the `generator-guide` tool to retrieve detailed information about a specific generator.";
8
8
  /**
9
9
  * Add a tool which provides general guidance for using Nx and the Nx Plugin for AWS