@aws/nx-plugin-mcp 0.121.0 → 1.0.0-rc.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.
- package/bin/aws-nx-mcp.js +63 -18
- package/docs/guides/astro-docs.mdx +5 -3
- package/docs/guides/connection/py-agent-a2a.mdx +1 -1
- package/docs/guides/connection/py-agent-mcp.mdx +1 -1
- package/docs/guides/connection/react-agui.mdx +3 -3
- package/docs/guides/connection/react-fastapi.mdx +1 -1
- package/docs/guides/connection/react-py-agent.mdx +3 -3
- package/docs/guides/connection/react-smithy.mdx +1 -1
- package/docs/guides/connection/react-trpc.mdx +2 -2
- package/docs/guides/connection/react-ts-agent.mdx +3 -3
- package/docs/guides/connection/ts-agent-a2a.mdx +1 -1
- package/docs/guides/connection/ts-agent-mcp.mdx +1 -1
- package/docs/guides/docs.mdx +21 -0
- package/docs/guides/fastapi.mdx +11 -9
- package/docs/guides/py-agent.mdx +18 -18
- package/docs/guides/py-api.mdx +22 -0
- package/docs/guides/py-mcp-server.mdx +5 -5
- package/docs/guides/python-lambda-function.mdx +4 -4
- package/docs/guides/react-website-auth.mdx +3 -3
- package/docs/guides/react-website.mdx +8 -5
- package/docs/guides/trpc.mdx +18 -16
- package/docs/guides/ts-agent.mdx +18 -18
- package/docs/guides/ts-api.mdx +28 -0
- package/docs/guides/ts-lambda-function.mdx +4 -4
- package/docs/guides/ts-mcp-server.mdx +5 -5
- package/docs/guides/ts-rdb.mdx +3 -3
- package/docs/guides/ts-smithy-api.mdx +8 -6
- package/docs/guides/website.mdx +21 -0
- package/docs/guides/workspace.mdx +2 -2
- package/docs/snippets/agent/architecture.mdx +4 -4
- package/docs/snippets/agent/bedrock-deployment.mdx +2 -2
- package/docs/snippets/api/api-architecture.mdx +2 -2
- package/docs/snippets/api/cors-configuration-cdk-note.mdx +1 -1
- package/docs/snippets/api/cors-configuration-terraform-note.mdx +1 -1
- package/docs/snippets/api/type-safe-api-integrations.mdx +2 -2
- package/docs/snippets/lambda-function/deploying-your-function.mdx +2 -2
- package/docs/snippets/mcp/architecture.mdx +4 -4
- package/docs/snippets/mcp/bedrock-deployment.mdx +2 -2
- package/generators.json +47 -6
- package/package.json +1 -1
- package/src/infra/app/schema.json +1 -1
- package/src/preset/schema.json +4 -4
- package/src/py/agent/schema.json +18 -18
- package/src/py/api/schema.json +100 -0
- package/src/py/fast-api/schema.json +15 -15
- package/src/py/lambda-function/schema.json +7 -7
- package/src/py/mcp-server/schema.json +15 -15
- package/src/py/project/schema.json +2 -2
- package/src/smithy/ts/api/schema.json +15 -15
- package/src/trpc/backend/schema.json +15 -15
- package/src/ts/agent/schema.json +18 -18
- package/src/ts/api/schema.json +105 -0
- package/src/ts/docs/schema.json +70 -0
- package/src/ts/lambda-function/schema.json +7 -7
- package/src/ts/mcp-server/schema.json +15 -15
- package/src/ts/rdb/schema.json +13 -13
- package/src/ts/react-website/app/schema.json +13 -13
- package/src/ts/react-website/cognito-auth/schema.json +4 -4
- package/src/ts/website/app/schema.json +97 -0
- package/src/ts/website/auth/schema.json +46 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "Website",
|
|
5
|
+
"title": "Create a Website",
|
|
6
|
+
"description": "Create a website application for Nx.",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"command": "nx g app myapp --directory=myorg",
|
|
10
|
+
"description": "Generate `apps/myorg/myapp` and `apps/myorg/myapp-e2e`"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"name": {
|
|
16
|
+
"description": "The name of the application.",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"$default": {
|
|
19
|
+
"$source": "argv",
|
|
20
|
+
"index": 0
|
|
21
|
+
},
|
|
22
|
+
"x-prompt": "What name would you like to use for the application?",
|
|
23
|
+
"pattern": "^[a-zA-Z][^:]*$"
|
|
24
|
+
},
|
|
25
|
+
"framework": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The frontend framework to use.",
|
|
28
|
+
"enum": ["react"],
|
|
29
|
+
"default": "react",
|
|
30
|
+
"x-priority": "important",
|
|
31
|
+
"x-prompt": "Which frontend framework would you like to use?"
|
|
32
|
+
},
|
|
33
|
+
"directory": {
|
|
34
|
+
"description": "The directory of the new application.",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"alias": "dir",
|
|
37
|
+
"x-priority": "important",
|
|
38
|
+
"default": "packages",
|
|
39
|
+
"x-prompt": "What directory would you like to store your application in?"
|
|
40
|
+
},
|
|
41
|
+
"subDirectory": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
44
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
45
|
+
},
|
|
46
|
+
"ux": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "The preferred UX provider.",
|
|
49
|
+
"enum": ["none", "cloudscape", "shadcn"],
|
|
50
|
+
"x-priority": "important",
|
|
51
|
+
"default": "cloudscape",
|
|
52
|
+
"x-prompt": {
|
|
53
|
+
"message": "Which UX provider should we scaffold for this app?",
|
|
54
|
+
"type": "list",
|
|
55
|
+
"items": [
|
|
56
|
+
{
|
|
57
|
+
"value": "none",
|
|
58
|
+
"label": "None (plain React/Vite without a UI kit)"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"value": "cloudscape",
|
|
62
|
+
"label": "Cloudscape (AWS-first components with ready-made layouts)"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": "shadcn",
|
|
66
|
+
"label": "Shadcn (shared UI library under packages/common/shadcn)"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"default": "cloudscape"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"tailwind": {
|
|
73
|
+
"description": "Enable TailwindCSS for utility-first styling.",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"default": true,
|
|
76
|
+
"x-priority": "important",
|
|
77
|
+
"x-prompt": "Would you like to enable TailwindCSS for additional styling capabilities?"
|
|
78
|
+
},
|
|
79
|
+
"tanstackRouter": {
|
|
80
|
+
"description": "Enable Tanstack router for type-safe routing.",
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"default": true,
|
|
83
|
+
"x-priority": "important",
|
|
84
|
+
"x-prompt": "Would you like to enable Tanstack Router for type-safe routing?"
|
|
85
|
+
},
|
|
86
|
+
"iac": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
89
|
+
"enum": ["inherit", "cdk", "terraform"],
|
|
90
|
+
"x-priority": "important",
|
|
91
|
+
"default": "inherit",
|
|
92
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: inherit)"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": ["name"],
|
|
96
|
+
"examplesFile": "../../../docs/application-examples.md"
|
|
97
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "Website Auth",
|
|
5
|
+
"title": "Website Auth",
|
|
6
|
+
"description": "Adds auth to an existing website.",
|
|
7
|
+
"examples": [
|
|
8
|
+
{
|
|
9
|
+
"command": "nx g @aws/nx-plugin:ts#website#auth --project=my-website",
|
|
10
|
+
"description": "Add Cognito auth to an existing website"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"project": {
|
|
16
|
+
"description": "The root directory of the website.",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"alias": "dir",
|
|
19
|
+
"x-priority": "important",
|
|
20
|
+
"x-prompt": "the root directory for your website.",
|
|
21
|
+
"x-dropdown": "projects"
|
|
22
|
+
},
|
|
23
|
+
"cognitoDomain": {
|
|
24
|
+
"description": "The cognito domain prefix to use. If omitted, a value is derived from the npm scope and website project name.",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"x-priority": "important",
|
|
27
|
+
"x-prompt": "the cognito domain prefix to use i.e: https://{{cognitoDomain}}-123456789.auth.ap-southeast-2.amazoncognito.com (leave blank to derive from scope and project name)"
|
|
28
|
+
},
|
|
29
|
+
"allowSignup": {
|
|
30
|
+
"description": "Whether to allow self-signup",
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"default": false,
|
|
33
|
+
"x-prompt": "Enable self signup?",
|
|
34
|
+
"x-priority": "important"
|
|
35
|
+
},
|
|
36
|
+
"iac": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
39
|
+
"enum": ["inherit", "cdk", "terraform"],
|
|
40
|
+
"x-priority": "important",
|
|
41
|
+
"default": "inherit",
|
|
42
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: inherit)"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": ["project"]
|
|
46
|
+
}
|