@aws/nx-plugin-mcp 0.96.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/LICENSE +175 -0
- package/README.md +22 -0
- package/bin/aws-nx-mcp.cjs +20437 -0
- package/generators.json +246 -0
- package/package.json +18 -0
- package/src/connection/schema.json +33 -0
- package/src/infra/app/schema.json +38 -0
- package/src/license/schema.json +23 -0
- package/src/license/sync/schema.json +9 -0
- package/src/open-api/ts-client/schema.json +20 -0
- package/src/open-api/ts-hooks/schema.json +20 -0
- package/src/open-api/ts-metadata/schema.json +20 -0
- package/src/preset/schema.json +22 -0
- package/src/py/fast-api/react/schema.json +26 -0
- package/src/py/fast-api/schema.json +82 -0
- package/src/py/lambda-function/schema.json +88 -0
- package/src/py/mcp-server/schema.json +49 -0
- package/src/py/project/schema.json +42 -0
- package/src/py/strands-agent/mcp-connection/schema.json +26 -0
- package/src/py/strands-agent/react-connection/schema.json +26 -0
- package/src/py/strands-agent/schema.json +49 -0
- package/src/smithy/project/schema.json +42 -0
- package/src/smithy/react-connection/schema.json +26 -0
- package/src/smithy/ts/api/schema.json +83 -0
- package/src/terraform/project/schema.json +40 -0
- package/src/trpc/backend/schema.json +77 -0
- package/src/trpc/react/schema.json +25 -0
- package/src/ts/lambda-function/schema.json +90 -0
- package/src/ts/lib/schema.json +32 -0
- package/src/ts/mcp-server/schema.json +49 -0
- package/src/ts/nx-generator/schema.json +38 -0
- package/src/ts/nx-plugin/schema.json +32 -0
- package/src/ts/react-website/app/schema.json +89 -0
- package/src/ts/react-website/cognito-auth/schema.json +50 -0
- package/src/ts/react-website/runtime-config/schema.json +19 -0
- package/src/ts/strands-agent/mcp-connection/schema.json +26 -0
- package/src/ts/strands-agent/react-connection/schema.json +26 -0
- package/src/ts/strands-agent/schema.json +49 -0
- package/src/ts/sync/schema.json +8 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ts#mcp-server",
|
|
4
|
+
"title": "ts#mcp-server",
|
|
5
|
+
"description": "Add a Model Context Protocol (MCP) server to an existing TypeScript project",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project to add an MCP server to",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "Select the TypeScript project to add the MCP server to",
|
|
16
|
+
"x-dropdown": "projects"
|
|
17
|
+
},
|
|
18
|
+
"computeType": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The type of compute to host your MCP server. Select None for no hosting.",
|
|
21
|
+
"x-prompt": "How would you like to host your MCP server?",
|
|
22
|
+
"enum": ["BedrockAgentCoreRuntime", "None"],
|
|
23
|
+
"default": "BedrockAgentCoreRuntime",
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The name of your MCP server (default: mcp-server)",
|
|
29
|
+
"x-prompt": "What would you like to call your MCP server? (default: mcp-server)"
|
|
30
|
+
},
|
|
31
|
+
"auth": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The method used to authenticate with your MCP server. Choose between IAM (default) or Cognito.",
|
|
34
|
+
"default": "IAM",
|
|
35
|
+
"enum": ["IAM", "Cognito"],
|
|
36
|
+
"x-prompt": "How would you like to authenticate with your MCP server?",
|
|
37
|
+
"x-priority": "important"
|
|
38
|
+
},
|
|
39
|
+
"iacProvider": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
42
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
43
|
+
"x-priority": "important",
|
|
44
|
+
"default": "Inherit",
|
|
45
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["project"]
|
|
49
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "TsGenerator",
|
|
4
|
+
"title": "Create an Nx Generator",
|
|
5
|
+
"description": "Create a TypeScript Nx Generator",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "TypeScript project to add the generator to. We recommend using the ts#nx-plugin generator to create this.",
|
|
11
|
+
"x-priority": "important",
|
|
12
|
+
"x-prompt": "Choose the TypeScript project to add the generator to",
|
|
13
|
+
"x-dropdown": "projects",
|
|
14
|
+
"$default": {
|
|
15
|
+
"$source": "argv",
|
|
16
|
+
"index": 0
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Generator name",
|
|
22
|
+
"x-priority": "important",
|
|
23
|
+
"x-prompt": "Choose a name for your generator, eg (ts#cool-project)"
|
|
24
|
+
},
|
|
25
|
+
"description": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "A description of your generator",
|
|
28
|
+
"x-prompt": "Describe your new generator",
|
|
29
|
+
"x-priority": "important"
|
|
30
|
+
},
|
|
31
|
+
"directory": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The directory within the plugin project's source folder to add the generator to (default: <name>)",
|
|
34
|
+
"x-prompt": "Choose the directory you would like to generate the generator in relative to the project's source folder (default: <name>)"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["project", "name"]
|
|
38
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ts#nx-plugin",
|
|
4
|
+
"title": "ts#nx-plugin",
|
|
5
|
+
"description": "<Describe your generator here!>",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "TypeScript project name",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-priority": "important",
|
|
16
|
+
"x-prompt": "What would you like to call your TypeScript project?"
|
|
17
|
+
},
|
|
18
|
+
"directory": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Parent directory where the library is placed.",
|
|
21
|
+
"default": "packages",
|
|
22
|
+
"x-prompt": "Which directory do you want to create the library in?",
|
|
23
|
+
"x-priority": "important"
|
|
24
|
+
},
|
|
25
|
+
"subDirectory": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The sub directory the lib is placed in. By default this is the library name.",
|
|
28
|
+
"x-prompt": "Which sub directory do you want to create the library in? (By default this is the library name)"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": ["name"]
|
|
32
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "React website",
|
|
5
|
+
"title": "Create a React website",
|
|
6
|
+
"description": "Create a React 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
|
+
"directory": {
|
|
26
|
+
"description": "The directory of the new application.",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"alias": "dir",
|
|
29
|
+
"x-priority": "important",
|
|
30
|
+
"default": "packages",
|
|
31
|
+
"x-prompt": "What directory would you like to store your application in?"
|
|
32
|
+
},
|
|
33
|
+
"subDirectory": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
36
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
37
|
+
},
|
|
38
|
+
"uxProvider": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "The preferred UX provider.",
|
|
41
|
+
"enum": ["None", "Cloudscape", "Shadcn"],
|
|
42
|
+
"x-priority": "important",
|
|
43
|
+
"default": "Cloudscape",
|
|
44
|
+
"x-prompt": {
|
|
45
|
+
"message": "Which UX provider should we scaffold for this app?",
|
|
46
|
+
"type": "list",
|
|
47
|
+
"items": [
|
|
48
|
+
{
|
|
49
|
+
"value": "None",
|
|
50
|
+
"label": "None (plain React/Vite without a UI kit)"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"value": "Cloudscape",
|
|
54
|
+
"label": "Cloudscape (AWS-first components with ready-made layouts)"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"value": "Shadcn",
|
|
58
|
+
"label": "Shadcn (shared UI library under packages/common/shadcn)"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"default": "Cloudscape"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"enableTailwind": {
|
|
65
|
+
"description": "Enable TailwindCSS for utility-first styling.",
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": true,
|
|
68
|
+
"x-priority": "important",
|
|
69
|
+
"x-prompt": "Would you like to enable TailwindCSS for additional styling capabilities?"
|
|
70
|
+
},
|
|
71
|
+
"enableTanstackRouter": {
|
|
72
|
+
"description": "Enable Tanstack router for type-safe routing.",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"default": true,
|
|
75
|
+
"x-priority": "important",
|
|
76
|
+
"x-prompt": "Would you like to enable Tanstack Router for type-safe routing?"
|
|
77
|
+
},
|
|
78
|
+
"iacProvider": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
81
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
82
|
+
"x-priority": "important",
|
|
83
|
+
"default": "Inherit",
|
|
84
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": ["name"],
|
|
88
|
+
"examplesFile": "../../../docs/application-examples.md"
|
|
89
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "Cognito Auth",
|
|
5
|
+
"title": "Cognito Auth",
|
|
6
|
+
"description": "Adds Cognito auth to a React website.",
|
|
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
|
+
"command": "nx g app myapp --classComponent",
|
|
14
|
+
"description": "Use class components instead of functional components"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"project": {
|
|
20
|
+
"description": "The root directory of the React website.",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"alias": "dir",
|
|
23
|
+
"x-priority": "important",
|
|
24
|
+
"x-prompt": "the root directory for your React website.",
|
|
25
|
+
"x-dropdown": "projects"
|
|
26
|
+
},
|
|
27
|
+
"cognitoDomain": {
|
|
28
|
+
"description": "The cognito domain prefix to use",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"x-priority": "important",
|
|
31
|
+
"x-prompt": "the cognito domain prefix to use i.e: https://{{cognitoDomain}}-123456789.auth.ap-southeast-2.amazoncognito.com"
|
|
32
|
+
},
|
|
33
|
+
"allowSignup": {
|
|
34
|
+
"description": "Whether to allow self-signup",
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"default": false,
|
|
37
|
+
"x-prompt": "Enable self signup?",
|
|
38
|
+
"x-priority": "important"
|
|
39
|
+
},
|
|
40
|
+
"iacProvider": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
43
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
44
|
+
"x-priority": "important",
|
|
45
|
+
"default": "Inherit",
|
|
46
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": ["project", "cognitoDomain"]
|
|
50
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"cli": "nx",
|
|
4
|
+
"$id": "Runtime Config",
|
|
5
|
+
"title": "Adds runtime config to a react application",
|
|
6
|
+
"description": "Adds runtime config to a react application",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"description": "The target project.",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"alias": "dir",
|
|
13
|
+
"x-priority": "important",
|
|
14
|
+
"x-prompt": "the project to target",
|
|
15
|
+
"x-dropdown": "projects"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["project"]
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ts#strands-agent#mcp-connection",
|
|
4
|
+
"title": "ts#strands-agent#mcp-connection",
|
|
5
|
+
"description": "Connect a TypeScript Strands Agent to an MCP server",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sourceProject": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project containing the Strands Agent"
|
|
11
|
+
},
|
|
12
|
+
"targetProject": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The project containing the MCP server"
|
|
15
|
+
},
|
|
16
|
+
"sourceComponent": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The agent component name"
|
|
19
|
+
},
|
|
20
|
+
"targetComponent": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The MCP server component name"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["sourceProject", "targetProject"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ts#strands-agent#react-connection",
|
|
4
|
+
"title": "ts#strands-agent#react-connection",
|
|
5
|
+
"description": "Connect a React website to a TypeScript Strands Agent",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sourceProject": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The React website project"
|
|
11
|
+
},
|
|
12
|
+
"targetProject": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The project containing the Strands Agent"
|
|
15
|
+
},
|
|
16
|
+
"sourceComponent": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The source component name"
|
|
19
|
+
},
|
|
20
|
+
"targetComponent": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The Strands Agent component name"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["sourceProject", "targetProject"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ts#strands-agent",
|
|
4
|
+
"title": "ts#strands-agent",
|
|
5
|
+
"description": "Add a Strands Agent to a TypeScript project",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project to add the Strands Agent to",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "Select the TypeScript project to add the Strands Agent to",
|
|
16
|
+
"x-dropdown": "projects"
|
|
17
|
+
},
|
|
18
|
+
"computeType": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The type of compute to host your Strands Agent.",
|
|
21
|
+
"x-prompt": "How would you like to host your Strands Agent server?",
|
|
22
|
+
"enum": ["BedrockAgentCoreRuntime", "None"],
|
|
23
|
+
"default": "BedrockAgentCoreRuntime",
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The name of your Strands Agent (default: agent)",
|
|
29
|
+
"x-prompt": "What would you like to call your Strands Agent? (default: agent)"
|
|
30
|
+
},
|
|
31
|
+
"auth": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The method used to authenticate with your Strands Agent. Choose between IAM (default) or Cognito.",
|
|
34
|
+
"default": "IAM",
|
|
35
|
+
"enum": ["IAM", "Cognito"],
|
|
36
|
+
"x-prompt": "How would you like to authenticate with your Strands Agent?",
|
|
37
|
+
"x-priority": "important"
|
|
38
|
+
},
|
|
39
|
+
"iacProvider": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
42
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
43
|
+
"x-priority": "important",
|
|
44
|
+
"default": "Inherit",
|
|
45
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["project"]
|
|
49
|
+
}
|