14
14
import os
15
15
16
16
17
+ # For testing, the mcp-server-in-aws-lambda module is built and bundled
18
+ # from local files. Remove these command hooks if using the
19
+ # mcp-server-in-aws-lambda from PyPi.
17
20
@jsii .implements (lambda_python .ICommandHooks )
18
21
class CommandHooks :
19
22
@jsii .member (jsii_name = "afterBundling" )
@@ -22,6 +25,7 @@ def after_bundling(self, input_dir: str, output_dir: str) -> list[str]:
22
25
f"cd { output_dir } " ,
23
26
f"curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL='{ output_dir } ' sh" ,
24
27
f"mkdir { output_dir } /mcp_lambda_build" ,
28
+ f"cp /mcp_lambda_src/README.md { output_dir } /mcp_lambda_build/README.md" ,
25
29
f"cp /mcp_lambda_src/pyproject.toml { output_dir } /mcp_lambda_build/pyproject.toml" ,
26
30
f"cp /mcp_lambda_src/uv.lock { output_dir } /mcp_lambda_build/uv.lock" ,
27
31
f"cp -r /mcp_lambda_src/src { output_dir } /mcp_lambda_build/src" ,
@@ -61,7 +65,9 @@ def __init__(
61
65
environment = {
62
66
"LOG_LEVEL" : "DEBUG" ,
63
67
},
64
- # Workaround to install the local module during packaging for testing
68
+ # For testing, the mcp-server-in-aws-lambda module is built and bundled
69
+ # from local files. Remove the bundling configuration if using the
70
+ # mcp-server-in-aws-lambda from PyPi.
65
71
bundling = lambda_python .BundlingOptions (
66
72
# asset_excludes=[".venv", ".mypy_cache", "__pycache__"],
67
73
volumes = [
0 commit comments