@aws/nx-plugin-mcp 1.0.0-rc.45 → 1.0.0-rc.47

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 (62) hide show
  1. package/bin/aws-nx-mcp.js +63 -47
  2. package/docs/get_started/existing-project.mdx +4 -0
  3. package/docs/get_started/quick-start.mdx +1 -1
  4. package/docs/get_started/tutorials/contribute-generator.mdx +1 -1
  5. package/docs/get_started/tutorials/dungeon-game/1.mdx +2 -2
  6. package/docs/get_started/tutorials/dungeon-game/2.mdx +3 -3
  7. package/docs/guides/agentcore-gateway.mdx +1 -1
  8. package/docs/guides/connection/py-agent-dynamodb.mdx +1 -1
  9. package/docs/guides/connection/py-agent-rdb.mdx +1 -1
  10. package/docs/guides/connection/py-fast-api-dynamodb.mdx +1 -1
  11. package/docs/guides/connection/py-fast-api-rdb.mdx +2 -2
  12. package/docs/guides/connection/py-mcp-server-dynamodb.mdx +1 -1
  13. package/docs/guides/connection/py-mcp-server-rdb.mdx +1 -1
  14. package/docs/guides/connection/smithy-dynamodb.mdx +1 -1
  15. package/docs/guides/connection/smithy-rdb.mdx +3 -3
  16. package/docs/guides/connection/trpc-dynamodb.mdx +1 -1
  17. package/docs/guides/connection/ts-agent-a2a.mdx +1 -1
  18. package/docs/guides/connection/ts-agent-dynamodb.mdx +2 -2
  19. package/docs/guides/connection/ts-agent-gateway.mdx +1 -1
  20. package/docs/guides/connection/ts-agent-mcp.mdx +1 -1
  21. package/docs/guides/connection/ts-agent-rdb.mdx +4 -4
  22. package/docs/guides/connection/ts-mcp-server-dynamodb.mdx +2 -2
  23. package/docs/guides/connection/ts-mcp-server-rdb.mdx +2 -2
  24. package/docs/guides/docker-bundling.mdx +2 -2
  25. package/docs/guides/fastapi.mdx +2 -2
  26. package/docs/guides/react-website-auth.mdx +3 -3
  27. package/docs/guides/react-website.mdx +4 -3
  28. package/docs/guides/runtime-config.mdx +1 -1
  29. package/docs/guides/trpc.mdx +4 -3
  30. package/docs/guides/ts-dcr-proxy.mdx +1 -1
  31. package/docs/guides/ts-dynamodb.mdx +2 -1
  32. package/docs/guides/ts-mcp-server.mdx +44 -27
  33. package/docs/guides/ts-nx-plugin.mdx +2 -2
  34. package/docs/guides/ts-rdb.mdx +3 -2
  35. package/docs/guides/ts-smithy-api.mdx +3 -2
  36. package/docs/guides/typescript-infrastructure.mdx +10 -8
  37. package/docs/guides/typescript-project.mdx +133 -26
  38. package/docs/guides/workspace.mdx +6 -1
  39. package/docs/snippets/agent/bedrock-deployment.mdx +4 -4
  40. package/docs/snippets/agent/runtime-arn.mdx +1 -1
  41. package/docs/snippets/api/cors-configuration-cdk-note.mdx +1 -1
  42. package/docs/snippets/connection/lambda-dynamodb-access.mdx +1 -1
  43. package/docs/snippets/connection/rdb-api-infrastructure.mdx +1 -1
  44. package/docs/snippets/dynamodb/deploying-table.mdx +5 -5
  45. package/docs/snippets/lambda-function/deploying-your-function.mdx +2 -2
  46. package/docs/snippets/mcp/bedrock-deployment.mdx +4 -4
  47. package/docs/snippets/pdk-migration/example/01-migrate-api.mdx +7 -5
  48. package/docs/snippets/pdk-migration/example/02-migrate-website.mdx +29 -10
  49. package/docs/snippets/pdk-migration/example/03-migrate-infra.mdx +4 -4
  50. package/docs/snippets/pdk-migration/faq/type-safe-api.mdx +1 -1
  51. package/docs/snippets/rdb/cluster-instances.mdx +1 -1
  52. package/docs/snippets/rdb/deletion-protection.mdx +1 -1
  53. package/docs/snippets/rdb/deploying.mdx +1 -1
  54. package/docs/snippets/rdb/encryption-key-rotation.mdx +1 -1
  55. package/docs/snippets/rdb/engine-version.mdx +2 -2
  56. package/docs/snippets/rdb/performance-insights.mdx +1 -1
  57. package/docs/snippets/rdb/rds-proxy.mdx +1 -1
  58. package/docs/snippets/rdb/removal-policy.mdx +2 -2
  59. package/docs/snippets/rdb/serverless-capacity.mdx +1 -1
  60. package/generators.json +9 -9
  61. package/package.json +1 -1
  62. package/src/preset/schema.json +5 -0
@@ -15,7 +15,7 @@ The local database image is configured in the `localDev.image` field of the gene
15
15
  <Fragment slot="cdk">
16
16
 
17
17
  ```ts title="packages/infra/src/stacks/application-stack.ts"
18
- import { MyDatabase } from ':my-scope/common-constructs';
18
+ import { MyDatabase } from '@my-scope/common-constructs';
19
19
 
20
20
  const db = new MyDatabase(this, 'Db', {
21
21
  ...
@@ -41,7 +41,7 @@ module "my_database" {
41
41
  <Fragment slot="cdk">
42
42
 
43
43
  ```ts title="packages/infra/src/stacks/application-stack.ts"
44
- import { MyDatabase } from ':my-scope/common-constructs';
44
+ import { MyDatabase } from '@my-scope/common-constructs';
45
45
 
46
46
  const db = new MyDatabase(this, 'Db', {
47
47
  ...
@@ -11,7 +11,7 @@ Disable log export per database if not required:
11
11
  <Fragment slot="cdk">
12
12
 
13
13
  ```ts title="packages/infra/src/stacks/application-stack.ts"
14
- import { MyDatabase } from ':my-scope/common-constructs';
14
+ import { MyDatabase } from '@my-scope/common-constructs';
15
15
 
16
16
  const db = new MyDatabase(this, 'Db', {
17
17
  ...
@@ -22,7 +22,7 @@ You can disable the RDS proxy as follows:
22
22
  <Fragment slot="cdk">
23
23
 
24
24
  ```ts title="packages/infra/src/stacks/application-stack.ts"
25
- import { MyDatabase } from ':my-scope/common-constructs';
25
+ import { MyDatabase } from '@my-scope/common-constructs';
26
26
 
27
27
  const db = new MyDatabase(this, 'Db', {
28
28
  ...
@@ -12,7 +12,7 @@ When using `RemovalPolicy.DESTROY`, deletion protection must also be disabled be
12
12
 
13
13
  ```ts title="packages/infra/src/stacks/application-stack.ts"
14
14
  import { RemovalPolicy } from 'aws-cdk-lib';
15
- import { MyDatabase } from ':my-scope/common-constructs';
15
+ import { MyDatabase } from '@my-scope/common-constructs';
16
16
 
17
17
  const db = new MyDatabase(this, 'Db', {
18
18
  ...
@@ -24,7 +24,7 @@ For an ephemeral environment where the database should be deleted with the stack
24
24
 
25
25
  ```ts title="packages/infra/src/stacks/application-stack.ts"
26
26
  import { RemovalPolicy } from 'aws-cdk-lib';
27
- import { MyDatabase } from ':my-scope/common-constructs';
27
+ import { MyDatabase } from '@my-scope/common-constructs';
28
28
 
29
29
  const db = new MyDatabase(this, 'Db', {
30
30
  ...
@@ -9,7 +9,7 @@ Control Aurora Serverless v2 scaling limits to match your workload.
9
9
  <Fragment slot="cdk">
10
10
 
11
11
  ```ts title="packages/infra/src/stacks/application-stack.ts"
12
- import { MyDatabase } from ':my-scope/common-constructs';
12
+ import { MyDatabase } from '@my-scope/common-constructs';
13
13
 
14
14
  const db = new MyDatabase(this, 'Db', {
15
15
  ...
package/generators.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "factory": "./src/init/generator",
8
8
  "schema": "./src/init/schema.json",
9
9
  "description": "Configure an existing Nx workspace to use the @aws/nx-plugin",
10
- "metric": "g57",
10
+ "metric": "g66",
11
11
  "guidePages": ["existing-project"]
12
12
  },
13
13
  "agentcore-gateway": {
@@ -27,7 +27,7 @@
27
27
  "factory": "./src/agentcore-gateway/gateway-connection/generator",
28
28
  "schema": "./src/agentcore-gateway/gateway-connection/schema.json",
29
29
  "description": "Connect an AgentCore Gateway to another AgentCore Gateway",
30
- "metric": "g52",
30
+ "metric": "g65",
31
31
  "hidden": true
32
32
  },
33
33
  "connection": {
@@ -215,7 +215,7 @@
215
215
  "factory": "./src/ts/dcr-proxy/generator",
216
216
  "schema": "./src/ts/dcr-proxy/schema.json",
217
217
  "description": "Generate an OAuth Dynamic Client Registration (DCR) proxy construct for Cognito-authenticated MCP servers",
218
- "metric": "g56"
218
+ "metric": "g67"
219
219
  },
220
220
  "ts#mcp-server": {
221
221
  "factory": "./src/ts/mcp-server/generator",
@@ -248,7 +248,7 @@
248
248
  "factory": "./src/ts/website/app/generator",
249
249
  "schema": "./src/ts/website/app/schema.json",
250
250
  "description": "Generates a website application",
251
- "metric": "g43",
251
+ "metric": "g60",
252
252
  "guidePages": ["website", "react-website"]
253
253
  },
254
254
  "ts#website#auth": {
@@ -340,7 +340,7 @@
340
340
  "ts#sync": {
341
341
  "factory": "./src/ts/sync/generator",
342
342
  "schema": "./src/ts/sync/schema.json",
343
- "description": "TypeScript path alias sync generator",
343
+ "description": "TypeScript path alias and local workspace dependency sync generator",
344
344
  "metric": "g29",
345
345
  "hidden": true
346
346
  },
@@ -405,27 +405,27 @@
405
405
  "factory": "./src/ts/dynamodb/generator",
406
406
  "schema": "./src/ts/dynamodb/schema.json",
407
407
  "description": "Create a TypeScript DynamoDB project",
408
- "metric": "g43"
408
+ "metric": "g61"
409
409
  },
410
410
  "ts#dynamodb#trpc-connection": {
411
411
  "factory": "./src/ts/dynamodb/trpc-connection/generator",
412
412
  "schema": "./src/ts/dynamodb/trpc-connection/schema.json",
413
413
  "description": "Connect a ts#trpc-api project to a ts#dynamodb project",
414
- "metric": "g44",
414
+ "metric": "g62",
415
415
  "hidden": true
416
416
  },
417
417
  "ts#dynamodb#smithy-connection": {
418
418
  "factory": "./src/ts/dynamodb/smithy-connection/generator",
419
419
  "schema": "./src/ts/dynamodb/smithy-connection/schema.json",
420
420
  "description": "Connect a Smithy backend to a ts#dynamodb project",
421
- "metric": "g45",
421
+ "metric": "g63",
422
422
  "hidden": true
423
423
  },
424
424
  "ts#dynamodb#agent-connection": {
425
425
  "factory": "./src/ts/dynamodb/agent-connection/generator",
426
426
  "schema": "./src/ts/dynamodb/agent-connection/schema.json",
427
427
  "description": "Connect a ts#agent to a ts#dynamodb project",
428
- "metric": "g46",
428
+ "metric": "g64",
429
429
  "hidden": true
430
430
  },
431
431
  "ts#dynamodb#mcp-server-connection": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin-mcp",
3
- "version": "1.0.0-rc.45",
3
+ "version": "1.0.0-rc.47",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -37,6 +37,11 @@
37
37
  "enum": ["esm", "cjs"],
38
38
  "default": "esm"
39
39
  },
40
+ "catalog": {
41
+ "type": "boolean",
42
+ "description": "Whether generators record dependency versions in the package manager's catalog (pnpm/yarn/bun), keeping a single source of truth for versions. When false, dependencies are written directly to each project's package.json and keeping versions aligned is your responsibility.",
43
+ "default": true
44
+ },
40
45
  "preferInstallDependencies": {
41
46
  "type": "boolean",
42
47
  "description": "Whether to prefer installing dependencies after the generator runs. Set to false to defer installing when batching multiple generators (an install still runs if needed so subsequent generators can compute the Nx project graph); install once at the end.",