Skip to content

example: Add FastMCP Examples - #645

Merged
bnusunny merged 7 commits into
aws:mainfrom
eldritchideen:fastmcp-examples
Mar 6, 2026
Merged

bnusunny merged 7 commits into
aws:mainfrom
eldritchideen:fastmcp-examples

Conversation

@eldritchideen

Copy link
Copy Markdown
Contributor

Description of changes:

This PR adds two new examples demonstrating how to run a FastMCP server on AWS Lambda using Lambda Web Adapter:

  • examples/fastmcp — Docker image deployment
  • examples/fastmcp-zip — Zip package deployment using managed Python runtime

Both examples deploy a minimal FastMCP server that exposes a greet tool and a /healthz health check endpoint.

Docker variant (examples/fastmcp):

  • Multi-stage Dockerfile based on python:3.14-slim
  • Copies Lambda Web Adapter into /opt/extensions/
  • Targets x86_64, 512 MB memory

Zip variant (examples/fastmcp-zip):

  • Uses the LambdaAdapterLayerArm64 Lambda layer
  • Configures AWS_LAMBDA_EXEC_WRAPPER=/opt/bootstrap wrapper script
  • Uses run.sh as the function handler to start Uvicorn
  • Targets arm64, 512 MB memory

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bnusunny

bnusunny commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Thanks for the example. Can you add "example:" to your commits? We start to follow Conventional Commits in this repo.

And don't worry about the verify examples failures. I need to find time to fix them.

@eldritchideen eldritchideen changed the title Add FastMCP Examples example: Add FastMCP Examples Feb 26, 2026
@eldritchideen

Copy link
Copy Markdown
Contributor Author

I have gone back and added example to the commits.

@bnusunny bnusunny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@bnusunny
bnusunny merged commit 9d18c09 into aws:main Mar 6, 2026
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants