File tree Expand file tree Collapse file tree
mcp/python-fastmcp-lambda Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ if __name__ == "__main__":
635635` ;
636636
637637exports [` Assets Directory Snapshots > MCP assets > mcp/mcp/python-fastmcp-lambda/README.md should match snapshot 1` ] = `
638- "# { { name }}
638+ "# { { Name }}
639639
640640FastMCP server running on AWS Lambda with a function URL, generated by the AgentCore CLI.
641641
@@ -687,7 +687,7 @@ from mcp.server.fastmcp import FastMCP
687687logging.basicConfig(level=logging.INFO, format="%(levelname)s - %(message)s")
688688logger = logging.getLogger(__name__)
689689
690- mcp = FastMCP("tools ")
690+ mcp = FastMCP("{ { Name } } ")
691691
692692HTTP_TIMEOUT = 10.0
693693MAX_RETRIES = 2
@@ -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- lambda_handler = Mangum(mcp.sse_app (), lifespan="off")
782+ lambda_handler = Mangum(mcp.http_app (), lifespan="off")
783783"
784784` ;
785785
@@ -789,7 +789,7 @@ requires = ["hatchling"]
789789build-backend = "hatchling.build"
790790
791791[project]
792- name = "{ { name }} "
792+ name = "{ { Name }} "
793793version = "0.1.0"
794794description = "FastMCP Server on AWS Lambda"
795795readme = "README.md"
Original file line number Diff line number Diff line change 1- # {{ name }}
1+ # {{ Name }}
22
33FastMCP server running on AWS Lambda with a function URL, generated by the AgentCore CLI.
44
Original file line number Diff line number Diff line change 1919logging .basicConfig (level = logging .INFO , format = "%(levelname)s - %(message)s" )
2020logger = logging .getLogger (__name__ )
2121
22- mcp = FastMCP ("tools " )
22+ mcp = FastMCP ("{{ Name }} " )
2323
2424HTTP_TIMEOUT = 10.0
2525MAX_RETRIES = 2
@@ -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- lambda_handler = Mangum (mcp .sse_app (), lifespan = "off" )
114+ lambda_handler = Mangum (mcp .http_app (), lifespan = "off" )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ requires = ["hatchling"]
33build-backend = " hatchling.build"
44
55[project ]
6- name = " {{ name }}"
6+ name = " {{ Name }}"
77version = " 0.1.0"
88description = " FastMCP Server on AWS Lambda"
99readme = " README.md"
You can’t perform that action at this time.
0 commit comments