@@ -15,8 +15,8 @@ export class WeatherAlertsMcpServer extends cdk.Stack {
1515 ) {
1616 super ( scope , id , props ) ;
1717
18- // For testing, the run-mcp-servers-with-aws-lambda package is bundled from local files.
19- // Remove this layer if using the run-mcp-servers-with-aws-lambda package from npm.
18+ // For testing, the @aws/ run-mcp-servers-with-aws-lambda package is bundled from local files.
19+ // Remove this layer if using the @aws / run-mcp-servers-with-aws-lambda package from npm.
2020 const mcpLambdaLayer = new LayerVersion ( this , "McpLambdaLayer" , {
2121 code : Code . fromAsset ( path . join ( __dirname , "../../../../src/typescript" ) , {
2222 bundling : {
@@ -25,8 +25,8 @@ export class WeatherAlertsMcpServer extends cdk.Stack {
2525 "bash" ,
2626 "-c" ,
2727 [
28- "mkdir -p /asset-output/nodejs/node_modules/run-mcp-servers-with-aws-lambda" ,
29- `cp -r /asset-input/* /asset-output/nodejs/node_modules/run-mcp-servers-with-aws-lambda/` ,
28+ "mkdir -p /asset-output/nodejs/node_modules/@aws/ run-mcp-servers-with-aws-lambda" ,
29+ `cp -r /asset-input/* /asset-output/nodejs/node_modules/@aws/ run-mcp-servers-with-aws-lambda/` ,
3030 ] . join ( " && " ) ,
3131 ] ,
3232 } ,
@@ -53,9 +53,9 @@ export class WeatherAlertsMcpServer extends cdk.Stack {
5353 layers : [ mcpLambdaLayer ] ,
5454 bundling : {
5555 nodeModules : [ "openapi-mcp-server" ] ,
56- // For testing, the run-mcp-servers-with-aws-lambda package is bundled from local files using the Lambda layer above.
57- // Remove the layer and this externalModules configuration if using the run-mcp-servers-with-aws-lambda package from npm.
58- externalModules : [ "run-mcp-servers-with-aws-lambda" ] ,
56+ // For testing, the @aws/ run-mcp-servers-with-aws-lambda package is bundled from local files using the Lambda layer above.
57+ // Remove the layer and this externalModules configuration if using the @aws / run-mcp-servers-with-aws-lambda package from npm.
58+ externalModules : [ "@aws/ run-mcp-servers-with-aws-lambda" ] ,
5959 commandHooks : {
6060 beforeBundling ( inputDir : string , outputDir : string ) : string [ ] {
6161 return [ ] ;
0 commit comments