@@ -19,7 +19,6 @@ export class ExampleStack extends cdk.Stack {
1919 ] ,
2020 } ) ;
2121
22-
2322 const mcpServerFunctionName = `${ projectName } -mcp-server-example` ;
2423 const mcpServerLogGroup = new cdk . aws_logs . LogGroup ( this , 'McpServerFunctionLogGroup' , {
2524 logGroupName : `/aws/lambda/${ mcpServerFunctionName } ` ,
@@ -40,7 +39,7 @@ export class ExampleStack extends cdk.Stack {
4039 bundling : {
4140 // No externalModules since we want to bundle everything
4241 nodeModules : [
43- '@modelcontextprotocol/sdk ' ,
42+ '@modelcontextprotocol/server ' ,
4443 'hono' ,
4544 'zod' ,
4645 ] ,
@@ -52,7 +51,7 @@ export class ExampleStack extends cdk.Stack {
5251 sourceMap : true , // ソースマップを有効化(デバッグ用)
5352 keepNames : true ,
5453 format : cdk . aws_lambda_nodejs . OutputFormat . ESM ,
55- target : 'node22 ' , // Target Node.js 22 .x
54+ target : 'node24 ' , // Target Node.js 24 .x
5655 banner : 'import { createRequire } from \'module\';const require = createRequire(import.meta.url);' ,
5756 } ,
5857 } ) ;
@@ -66,7 +65,7 @@ export class ExampleStack extends cdk.Stack {
6665 allowMethods : cdk . aws_apigateway . Cors . ALL_METHODS ,
6766 } ,
6867 deployOptions : {
69- stageName : 'v1 ' ,
68+ stageName : 'v2 ' ,
7069 } ,
7170 endpointTypes : [ cdk . aws_apigateway . EndpointType . REGIONAL ] ,
7271 } ) ;
0 commit comments