Skip to content

Commit 6ea0b09

Browse files
committed
fix: Increase timeout for functions still using default of 3 seconds
1 parent e334401 commit 6ea0b09

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

examples/servers/cat-facts/lib/cat-facts-mcp-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export class CatFactsMcpServer extends cdk.Stack {
5454
logGroup,
5555
memorySize: 2048,
5656
runtime: Runtime.NODEJS_22_X,
57+
timeout: cdk.Duration.seconds(30),
5758
environment: {
5859
LOG_LEVEL: "DEBUG",
5960
},

examples/servers/dictionary/lib/dictionary-mcp-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export class DictionaryMcpServer extends cdk.Stack {
5050
logGroup,
5151
memorySize: 2048,
5252
runtime: Runtime.NODEJS_22_X,
53+
timeout: cdk.Duration.seconds(30),
5354
environment: {
5455
LOG_LEVEL: "DEBUG",
5556
},

examples/servers/dog-facts/lib/dog-facts-mcp-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export class DogFactsMcpServer extends cdk.Stack {
5959
logGroup,
6060
memorySize: 2048,
6161
runtime: Runtime.NODEJS_22_X,
62+
timeout: cdk.Duration.seconds(30),
6263
environment: {
6364
LOG_LEVEL: "DEBUG",
6465
},

examples/servers/mcpdoc/cdk_stack.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Aspects,
44
CfnOutput,
55
DockerVolume,
6+
Duration,
67
Environment,
78
RemovalPolicy,
89
Stack,
@@ -65,6 +66,7 @@ def __init__(
6566
runtime=lambda_.Runtime.PYTHON_3_13,
6667
entry="function",
6768
memory_size=2048,
69+
timeout=Duration.seconds(30),
6870
environment={
6971
"LOG_LEVEL": "DEBUG",
7072
},

examples/servers/time/cdk_stack.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
App,
33
Aspects,
44
DockerVolume,
5+
Duration,
56
Environment,
67
RemovalPolicy,
78
Stack,
@@ -64,6 +65,7 @@ def __init__(
6465
runtime=lambda_.Runtime.PYTHON_3_13,
6566
entry="function",
6667
memory_size=2048,
68+
timeout=Duration.seconds(30),
6769
environment={
6870
"LOG_LEVEL": "DEBUG",
6971
},

examples/servers/weather-alerts/lib/weather-alerts-mcp-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class WeatherAlertsMcpServer extends cdk.Stack {
4848
logGroup,
4949
memorySize: 2048,
5050
runtime: Runtime.NODEJS_22_X,
51+
timeout: cdk.Duration.seconds(30),
5152
environment: {
5253
LOG_LEVEL: "DEBUG",
5354
},

0 commit comments

Comments
 (0)