Skip to content

Commit fc4ce65

Browse files
committed
fix: rename handler to lambda_handler to match DEFAULT_HANDLER
The CLI writes handler: 'handler.lambda_handler' in compute config. The template must export lambda_handler, not handler.
1 parent 6273101 commit fc4ce65

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ async def fetch_post(post_id: int) -> str:
779779
780780
781781
# Create ASGI app from FastMCP server and wrap with Mangum for Lambda
782-
handler = Mangum(mcp.sse_app(), lifespan="off")
782+
lambda_handler = Mangum(mcp.sse_app(), lifespan="off")
783783
"
784784
`;
785785

src/assets/mcp/python-fastmcp-lambda/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ async def fetch_post(post_id: int) -> str:
111111

112112

113113
# Create ASGI app from FastMCP server and wrap with Mangum for Lambda
114-
handler = Mangum(mcp.sse_app(), lifespan="off")
114+
lambda_handler = Mangum(mcp.sse_app(), lifespan="off")

0 commit comments

Comments
 (0)