@aws/nx-plugin-mcp 1.4.1 → 1.6.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.
@@ -219,7 +219,7 @@ https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem
219
219
 
220
220
  ##### Runtime Container Images
221
221
 
222
- If you prepare your own container image for the runtime, download the RDS CA bundle in your Dockerfile and add it to the operating system trust store.
222
+ If you prepare your own container image for the runtime, download the RDS CA bundle in your Dockerfile and add it to the operating system trust store. Node.js does not read that store, so also set `NODE_EXTRA_CA_CERTS` to the bundle's path. Node.js loads extra CA certificates only from that variable.
223
223
 
224
224
  <Tabs>
225
225
  <TabItem label="Amazon Linux">
@@ -228,6 +228,7 @@ If you prepare your own container image for the runtime, download the RDS CA bun
228
228
  RUN curl -fsSL "https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem" \
229
229
  -o /etc/pki/ca-trust/source/anchors/rds-bundle.pem && \
230
230
  update-ca-trust
231
+ ENV NODE_EXTRA_CA_CERTS=/etc/pki/ca-trust/source/anchors/rds-bundle.pem
231
232
  ```
232
233
 
233
234
  </TabItem>
@@ -239,11 +240,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certifi
239
240
  curl -fsSL "https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem" \
240
241
  -o /usr/local/share/ca-certificates/rds-bundle.crt && \
241
242
  update-ca-certificates
243
+ ENV NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/rds-bundle.crt
242
244
  ```
243
245
 
244
246
  </TabItem>
245
247
  </Tabs>
246
248
 
249
+ ##### AgentCore Code Packages
250
+
251
+ Agents and MCP servers deployed as AgentCore code packages (`infra` set to `agentcore`, the default for the `ts#agent` and `ts#mcp-server` generators) are not covered automatically. The code package contains no CA file for `NODE_EXTRA_CA_CERTS` to point at. Keep RDS Proxy enabled (the default), or set `infra` to `agentcore-ecr` to deploy a container image, where the connection generator downloads the bundle and sets `NODE_EXTRA_CA_CERTS` for you.
252
+
247
253
  ##### Zipped Lambda Functions
248
254
 
249
255
  For zipped Lambda functions using Node.js 20 or later runtimes, load the Amazon RDS CA bundle by setting `NODE_EXTRA_CA_CERTS`:
@@ -1,35 +1,10 @@
1
1
  ---
2
2
  title: SSL Requirements when Connecting without RDS Proxy
3
3
  ---
4
- import Infrastructure from '@components/infrastructure.astro';
5
4
 
6
- The connection generator updates the Dockerfile to install the Amazon RDS CA bundle at `/usr/local/share/ca-certificates/rds-bundle.crt`. Set `NODE_EXTRA_CA_CERTS` to that path so Node.js trusts the certificate when connecting without RDS Proxy:
5
+ When the agent connects to the Aurora cluster without RDS Proxy, Node.js must trust the Amazon RDS certificate authority (CA). Node.js does not read the operating system trust store. It loads extra CA certificates only from the file that the `NODE_EXTRA_CA_CERTS` environment variable points at.
7
6
 
8
- <Infrastructure>
9
- <Fragment slot="cdk">
10
-
11
- ```ts title="packages/infra/src/stacks/application-stack.ts"
12
- new MyAgent(this, 'MyAgent', {
13
- ...
14
- environmentVariables: {
15
- NODE_EXTRA_CA_CERTS: '/usr/local/share/ca-certificates/rds-bundle.crt',
16
- },
17
- });
18
- ```
19
-
20
- </Fragment>
21
- <Fragment slot="terraform">
22
-
23
- ```hcl title="packages/infra/src/main.tf"
24
- module "my_agent" {
25
- ...
26
- env = {
27
- NODE_EXTRA_CA_CERTS = "/usr/local/share/ca-certificates/rds-bundle.crt"
28
- }
29
- }
30
- ```
31
-
32
- </Fragment>
33
- </Infrastructure>
7
+ - When the agent's `infra` is `agentcore-ecr`, the connection generator updates the Dockerfile. It downloads the Amazon RDS CA bundle to `/usr/local/share/ca-certificates/rds-bundle.crt` and sets `NODE_EXTRA_CA_CERTS` to that path, so there is nothing to configure. For a Dockerfile generated by an earlier plugin version, `nx migrate` adds the `NODE_EXTRA_CA_CERTS` line.
8
+ - When the agent's `infra` is `agentcore` (the default), the agent is deployed as a code package that does not include the RDS CA bundle. Keep RDS Proxy enabled (the default), or use `agentcore-ecr`.
34
9
 
35
10
  For more details, see the [Amazon RDS SSL/TLS documentation](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html). When using RDS Proxy, you do not need to configure `NODE_EXTRA_CA_CERTS`.
@@ -1,35 +1,10 @@
1
1
  ---
2
2
  title: SSL Requirements when Connecting without RDS Proxy
3
3
  ---
4
- import Infrastructure from '@components/infrastructure.astro';
5
4
 
6
- The connection generator updates the Dockerfile to install the Amazon RDS CA bundle at `/usr/local/share/ca-certificates/rds-bundle.crt`. Set `NODE_EXTRA_CA_CERTS` to that path so Node.js trusts the certificate when connecting without RDS Proxy:
5
+ When the MCP server connects to the Aurora cluster without RDS Proxy, Node.js must trust the Amazon RDS certificate authority (CA). Node.js does not read the operating system trust store. It loads extra CA certificates only from the file that the `NODE_EXTRA_CA_CERTS` environment variable points at.
7
6
 
8
- <Infrastructure>
9
- <Fragment slot="cdk">
10
-
11
- ```ts title="packages/infra/src/stacks/application-stack.ts"
12
- new MyMcpServer(this, 'MyMcpServer', {
13
- ...
14
- environmentVariables: {
15
- NODE_EXTRA_CA_CERTS: '/usr/local/share/ca-certificates/rds-bundle.crt',
16
- },
17
- });
18
- ```
19
-
20
- </Fragment>
21
- <Fragment slot="terraform">
22
-
23
- ```hcl title="packages/infra/src/main.tf"
24
- module "my_mcp_server" {
25
- ...
26
- env = {
27
- NODE_EXTRA_CA_CERTS = "/usr/local/share/ca-certificates/rds-bundle.crt"
28
- }
29
- }
30
- ```
31
-
32
- </Fragment>
33
- </Infrastructure>
7
+ - When the MCP server's `infra` is `agentcore-ecr`, the connection generator updates the Dockerfile. It downloads the Amazon RDS CA bundle to `/usr/local/share/ca-certificates/rds-bundle.crt` and sets `NODE_EXTRA_CA_CERTS` to that path, so there is nothing to configure. For a Dockerfile generated by an earlier plugin version, `nx migrate` adds the `NODE_EXTRA_CA_CERTS` line.
8
+ - When the MCP server's `infra` is `agentcore` (the default), the MCP server is deployed as a code package that does not include the RDS CA bundle. Keep RDS Proxy enabled (the default), or use `agentcore-ecr`.
34
9
 
35
10
  For more details, see the [Amazon RDS SSL/TLS documentation](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html). When using RDS Proxy, you do not need to configure `NODE_EXTRA_CA_CERTS`.
package/generators.json CHANGED
@@ -52,6 +52,14 @@
52
52
  "guidePages": ["agentcore-harness"],
53
53
  "experimental": true
54
54
  },
55
+ "observability#langfuse": {
56
+ "factory": "./src/observability/langfuse/generator",
57
+ "schema": "./src/observability/langfuse/schema.json",
58
+ "description": "Configure Langfuse trace export for an existing Python Strands agent",
59
+ "metric": "g79",
60
+ "experimental": true,
61
+ "guidePages": ["observability-langfuse"]
62
+ },
55
63
  "connection": {
56
64
  "factory": "./src/connection/generator",
57
65
  "schema": "./src/connection/schema.json",
@@ -327,7 +335,7 @@
327
335
  "schema": "./src/ts/website/auth/schema.json",
328
336
  "description": "Adds auth to an existing website",
329
337
  "metric": "g44",
330
- "guidePages": ["react-website-auth"]
338
+ "guidePages": ["react-website-auth", "react-website-auth-idp"]
331
339
  },
332
340
  "ts#react-website": {
333
341
  "factory": "./src/ts/react-website/app/generator",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin-mcp",
3
- "version": "1.4.1",
3
+ "version": "1.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "observability#langfuse",
4
+ "title": "observability#langfuse",
5
+ "x-label": "Langfuse Observability",
6
+ "description": "Configure Langfuse for an existing Python Strands HTTP agent using AgentCore zip deployment, IAM, and CDK",
7
+ "type": "object",
8
+ "properties": {
9
+ "project": {
10
+ "type": "string",
11
+ "description": "Project containing the Python agent",
12
+ "$default": { "$source": "argv", "index": 0 },
13
+ "x-prompt": "Which project contains the agent?",
14
+ "x-dropdown": "projects"
15
+ },
16
+ "agent": {
17
+ "type": "string",
18
+ "description": "Agent component name; required when the project contains multiple Python agents"
19
+ },
20
+ "host": {
21
+ "type": "string",
22
+ "description": "HTTPS base URL of an existing Langfuse installation, including any self-hosted path prefix. Required on first use; re-runs retain the previous value. There is no default destination.",
23
+ "x-prompt": "What is the HTTPS URL of your existing Langfuse installation?",
24
+ "x-priority": "important"
25
+ },
26
+ "secretArn": {
27
+ "type": "string",
28
+ "description": "Complete ARN of an existing Secrets Manager secret containing LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY. Required when first enabling Langfuse; never pass key values.",
29
+ "x-priority": "important"
30
+ },
31
+ "preferInstallDependencies": {
32
+ "type": "boolean",
33
+ "description": "Install dependencies after generation",
34
+ "default": true
35
+ }
36
+ },
37
+ "required": ["project"]
38
+ }
@@ -45,6 +45,12 @@
45
45
  "type": "boolean",
46
46
  "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.",
47
47
  "default": true
48
+ },
49
+ "federation": {
50
+ "type": "string",
51
+ "description": "Let users sign in through external identity providers next to the user pool's own sign-in. oidc vends OpenID Connect federation; you then list the identity providers in your infrastructure code. none adds no federation, and does not remove federation that is already there.",
52
+ "enum": ["none", "oidc"],
53
+ "default": "none"
48
54
  }
49
55
  },
50
56
  "required": ["project"]