awslabs.cdk-mcp-server 0.0.91005__tar.gz → 0.0.2025141004__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/.pre-commit-config.yaml +1 -1
- awslabs_cdk_mcp_server-0.0.2025141004/CHANGELOG.md +29 -0
- awslabs_cdk_mcp_server-0.0.2025141004/LICENSE +175 -0
- awslabs_cdk_mcp_server-0.0.2025141004/NOTICE +2 -0
- awslabs_cdk_mcp_server-0.0.91005/README.md → awslabs_cdk_mcp_server-0.0.2025141004/PKG-INFO +59 -8
- awslabs_cdk_mcp_server-0.0.91005/PKG-INFO → awslabs_cdk_mcp_server-0.0.2025141004/README.md +29 -19
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/core/server.py +1 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/core/tools.py +53 -0
- awslabs_cdk_mcp_server-0.0.2025141004/awslabs/cdk_mcp_server/data/lambda_layer_parser.py +231 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/data/solutions_constructs_parser.py +1 -1
- awslabs_cdk_mcp_server-0.0.2025141004/awslabs/cdk_mcp_server/static/CDK_GENERAL_GUIDANCE.md +204 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/vector/pinecone.md +2 -2
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/lambda_powertools/bedrock.md +21 -36
- awslabs_cdk_mcp_server-0.0.2025141004/awslabs/cdk_mcp_server/static/lambda_powertools/cdk.md +53 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/lambda_powertools/insights.md +12 -21
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/lambda_powertools/metrics.md +5 -36
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/pyproject.toml +26 -1
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/uv.lock +37 -1
- awslabs_cdk_mcp_server-0.0.91005/CHANGELOG.md +0 -12
- awslabs_cdk_mcp_server-0.0.91005/awslabs/cdk_mcp_server/static/CDK_GENERAL_GUIDANCE.md +0 -280
- awslabs_cdk_mcp_server-0.0.91005/awslabs/cdk_mcp_server/static/lambda_powertools/cdk.md +0 -99
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/.gitignore +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/.python-version +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/__init__.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/__init__.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/core/__init__.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/core/resources.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/core/search_utils.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/data/__init__.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/data/cdk_nag_parser.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/data/construct_descriptions.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/data/genai_cdk_loader.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/data/lambda_powertools_loader.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/data/schema_generator.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/server.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/CDK_NAG_GUIDANCE.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/__init__.py +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/agent/actiongroups.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/agent/alias.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/agent/collaboration.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/agent/creation.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/agent/custom_orchestration.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/agent/overview.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/agent/prompt_override.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/bedrockguardrails.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/chunking.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/datasources.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/kendra.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/overview.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/parsing.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/transformation.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/vector/aurora.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/vector/creation.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/knowledgebases/vector/opensearch.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/bedrock/profiles.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/opensearch-vectorindex/overview.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/genai_cdk/opensearchserverless/overview.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/lambda_powertools/dependencies.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/lambda_powertools/index.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/lambda_powertools/logging.md +0 -0
- {awslabs_cdk_mcp_server-0.0.91005 → awslabs_cdk_mcp_server-0.0.2025141004}/awslabs/cdk_mcp_server/static/lambda_powertools/tracing.md +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## Unreleased
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Initial project setup
|
|
13
|
+
- New `GenerateLambdaLayerCode` tool for creating properly configured Lambda layers
|
|
14
|
+
- Extracts data directly from AWS documentation
|
|
15
|
+
- Provides smart fallback mechanisms for various AWS doc formats
|
|
16
|
+
- Integrates with CDK General Guidance flow
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Reorganized CDK_GENERAL_GUIDANCE.md to eliminate duplication
|
|
22
|
+
- Created unified Implementation Approach and Workflow section
|
|
23
|
+
- Added clear separation between common and GenAI patterns
|
|
24
|
+
- Added section showing how both approaches can be used together
|
|
25
|
+
- Improved Lambda Powertools documentation
|
|
26
|
+
- Centralized CDK integration guidance
|
|
27
|
+
- Added explicit Lambda layer requirement notices
|
|
28
|
+
- Removed duplicate code examples from feature-specific files
|
|
29
|
+
- Updated Bedrock integration examples with proper layer creation patterns
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: awslabs.cdk-mcp-server
|
|
3
|
+
Version: 0.0.2025141004
|
|
4
|
+
Summary: An AWS CDK MCP server that provides guidance on AWS Cloud Development Kit best practices, infrastructure as code patterns, and security compliance with CDK Nag. This server offers tools to validate infrastructure designs, explain CDK Nag rules, analyze suppressions, generate Bedrock Agent schemas, and discover Solutions Constructs patterns.
|
|
5
|
+
Project-URL: Homepage, https://awslabs.github.io/mcp/
|
|
6
|
+
Project-URL: Documentation, https://awslabs.github.io/mcp/servers/cdk-mcp-server/
|
|
7
|
+
Project-URL: Source, https://github.com/awslabs/mcp.git
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/awslabs/mcp/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/awslabs/mcp/blob/main/src/cdk-mcp-server/CHANGELOG.md
|
|
10
|
+
Author: Amazon Web Services
|
|
11
|
+
Author-email: AWSLabs MCP <203918161+awslabs-mcp@users.noreply.github.com>
|
|
12
|
+
License: Apache-2.0
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
License-File: NOTICE
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Requires-Dist: aws-lambda-powertools>=2.30.0
|
|
25
|
+
Requires-Dist: bs4>=0.0.2
|
|
26
|
+
Requires-Dist: httpx>=0.27.0
|
|
27
|
+
Requires-Dist: mcp[cli]>=1.6.0
|
|
28
|
+
Requires-Dist: pydantic>=2.10.6
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
1
31
|
# AWS CDK MCP Server
|
|
2
32
|
|
|
3
33
|
MCP server for AWS Cloud Development Kit (CDK) best practices, infrastructure as code patterns, and security compliance with CDK Nag.
|
|
@@ -28,6 +58,13 @@ MCP server for AWS Cloud Development Kit (CDK) best practices, infrastructure as
|
|
|
28
58
|
- Discover specialized constructs for AI/ML workloads
|
|
29
59
|
- Get implementation guidance for generative AI applications
|
|
30
60
|
|
|
61
|
+
### Lambda Layer Documentation Provider
|
|
62
|
+
|
|
63
|
+
- Access comprehensive documentation for AWS Lambda layers
|
|
64
|
+
- Get code examples for generic Lambda layers and Python-specific layers
|
|
65
|
+
- Retrieve directory structure information and implementation best practices
|
|
66
|
+
- Seamless integration with AWS Documentation MCP Server for detailed documentation
|
|
67
|
+
|
|
31
68
|
### Amazon Bedrock Agent Schema Generation
|
|
32
69
|
|
|
33
70
|
- Use this tool when creating Bedrock Agents with Action Groups that use Lambda functions
|
|
@@ -46,7 +83,8 @@ This diagram provides a comprehensive view of the recommended CDK implementation
|
|
|
46
83
|
|
|
47
84
|
```mermaid
|
|
48
85
|
graph TD
|
|
49
|
-
Start([Start]) -->
|
|
86
|
+
Start([Start]) --> A["CDKGeneralGuidance"]
|
|
87
|
+
A --> Init["cdk init app"]
|
|
50
88
|
|
|
51
89
|
Init --> B{Choose Approach}
|
|
52
90
|
B -->|"Common Patterns"| C1["GetAwsSolutionsConstructPattern"]
|
|
@@ -74,11 +112,13 @@ graph TD
|
|
|
74
112
|
|
|
75
113
|
%% Conditional Lambda Powertools implementation
|
|
76
114
|
D1 & D2 & D3 --> HasLambda{"Using Lambda<br/>Functions?"}
|
|
77
|
-
HasLambda
|
|
78
|
-
|
|
115
|
+
HasLambda --> UseLayer{"Using Lambda<br/>Layers?"}
|
|
116
|
+
UseLayer -->|"Yes"| LLDP["LambdaLayerDocumentationProvider"]
|
|
117
|
+
|
|
118
|
+
HasLambda -->|"No"| SkipL["Skip"]
|
|
79
119
|
|
|
80
120
|
%% Rest of workflow
|
|
81
|
-
|
|
121
|
+
LLDP["LambdaLayerDocumentationProvider"] --> Synth["cdk synth"]
|
|
82
122
|
SkipL --> Synth
|
|
83
123
|
|
|
84
124
|
Synth --> Nag{"CDK Nag<br/>warnings?"}
|
|
@@ -98,22 +138,33 @@ graph TD
|
|
|
98
138
|
classDef decision fill:#5d4037,stroke:#ffffff,stroke-width:1px,color:#ffffff;
|
|
99
139
|
|
|
100
140
|
class Init,Synth,Deploy,BSR cmd;
|
|
101
|
-
class C1,C2,BS,E,CN tool;
|
|
141
|
+
class A,C1,C2,BS,E,CN,LLDP tool;
|
|
102
142
|
class JSON output;
|
|
103
|
-
class HasLambda,Nag decision;
|
|
143
|
+
class HasLambda,UseLayer,Nag decision;
|
|
104
144
|
```
|
|
105
145
|
|
|
106
|
-
##
|
|
146
|
+
## Available MCP Tools
|
|
147
|
+
|
|
148
|
+
- **CDKGeneralGuidance**: Get prescriptive advice for building AWS applications with CDK
|
|
149
|
+
- **GetAwsSolutionsConstructPattern**: Find vetted architecture patterns combining AWS services
|
|
150
|
+
- **SearchGenAICDKConstructs**: Discover GenAI CDK constructs by name or features
|
|
151
|
+
- **GenerateBedrockAgentSchema**: Create OpenAPI schemas for Bedrock Agent action groups
|
|
152
|
+
- **LambdaLayerDocumentationProvider**: Access documentation for Lambda layers implementation
|
|
153
|
+
- **ExplainCDKNagRule**: Get detailed guidance on CDK Nag security rules
|
|
154
|
+
- **CheckCDKNagSuppressions**: Validate CDK Nag suppressions in your code
|
|
155
|
+
|
|
156
|
+
## Available MCP Resources
|
|
107
157
|
|
|
108
158
|
- **CDK Nag Rules**: Access rule packs via `cdk-nag://rules/{rule_pack}`
|
|
109
|
-
- **Lambda Powertools**: Get guidance on Lambda Powertools via `lambda-powertools://{topic}`
|
|
110
159
|
- **AWS Solutions Constructs**: Access patterns via `aws-solutions-constructs://{pattern_name}`
|
|
111
160
|
- **GenAI CDK Constructs**: Access documentation via `genai-cdk-constructs://{construct_type}/{construct_name}`
|
|
161
|
+
- **Lambda Powertools**: Get guidance on Lambda Powertools via `lambda-powertools://{topic}`
|
|
112
162
|
|
|
113
163
|
## Prerequisites
|
|
114
164
|
|
|
115
165
|
1. Install `uv` from [Astral](https://docs.astral.sh/uv/getting-started/installation/) or the [GitHub README](https://github.com/astral-sh/uv#installation)
|
|
116
166
|
2. Install Python using `uv python install 3.10`
|
|
167
|
+
3. Install AWS CDK CLI using `npm install -g aws-cdk` (Note: The MCP server itself doesn't use the CDK CLI directly, but it guides users through CDK application development that requires the CLI)
|
|
117
168
|
|
|
118
169
|
## Installation
|
|
119
170
|
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: awslabs.cdk-mcp-server
|
|
3
|
-
Version: 0.0.91005
|
|
4
|
-
Summary: An AWS CDK MCP server that provides guidance on AWS Cloud Development Kit best practices, infrastructure as code patterns, and security compliance with CDK Nag. This server offers tools to validate infrastructure designs, explain CDK Nag rules, analyze suppressions, generate Bedrock Agent schemas, and discover Solutions Constructs patterns.
|
|
5
|
-
Requires-Python: >=3.10
|
|
6
|
-
Requires-Dist: aws-lambda-powertools>=2.30.0
|
|
7
|
-
Requires-Dist: httpx>=0.27.0
|
|
8
|
-
Requires-Dist: mcp[cli]>=1.6.0
|
|
9
|
-
Requires-Dist: pydantic>=2.10.6
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
|
|
12
1
|
# AWS CDK MCP Server
|
|
13
2
|
|
|
14
3
|
MCP server for AWS Cloud Development Kit (CDK) best practices, infrastructure as code patterns, and security compliance with CDK Nag.
|
|
@@ -39,6 +28,13 @@ MCP server for AWS Cloud Development Kit (CDK) best practices, infrastructure as
|
|
|
39
28
|
- Discover specialized constructs for AI/ML workloads
|
|
40
29
|
- Get implementation guidance for generative AI applications
|
|
41
30
|
|
|
31
|
+
### Lambda Layer Documentation Provider
|
|
32
|
+
|
|
33
|
+
- Access comprehensive documentation for AWS Lambda layers
|
|
34
|
+
- Get code examples for generic Lambda layers and Python-specific layers
|
|
35
|
+
- Retrieve directory structure information and implementation best practices
|
|
36
|
+
- Seamless integration with AWS Documentation MCP Server for detailed documentation
|
|
37
|
+
|
|
42
38
|
### Amazon Bedrock Agent Schema Generation
|
|
43
39
|
|
|
44
40
|
- Use this tool when creating Bedrock Agents with Action Groups that use Lambda functions
|
|
@@ -57,7 +53,8 @@ This diagram provides a comprehensive view of the recommended CDK implementation
|
|
|
57
53
|
|
|
58
54
|
```mermaid
|
|
59
55
|
graph TD
|
|
60
|
-
Start([Start]) -->
|
|
56
|
+
Start([Start]) --> A["CDKGeneralGuidance"]
|
|
57
|
+
A --> Init["cdk init app"]
|
|
61
58
|
|
|
62
59
|
Init --> B{Choose Approach}
|
|
63
60
|
B -->|"Common Patterns"| C1["GetAwsSolutionsConstructPattern"]
|
|
@@ -85,11 +82,13 @@ graph TD
|
|
|
85
82
|
|
|
86
83
|
%% Conditional Lambda Powertools implementation
|
|
87
84
|
D1 & D2 & D3 --> HasLambda{"Using Lambda<br/>Functions?"}
|
|
88
|
-
HasLambda
|
|
89
|
-
|
|
85
|
+
HasLambda --> UseLayer{"Using Lambda<br/>Layers?"}
|
|
86
|
+
UseLayer -->|"Yes"| LLDP["LambdaLayerDocumentationProvider"]
|
|
87
|
+
|
|
88
|
+
HasLambda -->|"No"| SkipL["Skip"]
|
|
90
89
|
|
|
91
90
|
%% Rest of workflow
|
|
92
|
-
|
|
91
|
+
LLDP["LambdaLayerDocumentationProvider"] --> Synth["cdk synth"]
|
|
93
92
|
SkipL --> Synth
|
|
94
93
|
|
|
95
94
|
Synth --> Nag{"CDK Nag<br/>warnings?"}
|
|
@@ -109,22 +108,33 @@ graph TD
|
|
|
109
108
|
classDef decision fill:#5d4037,stroke:#ffffff,stroke-width:1px,color:#ffffff;
|
|
110
109
|
|
|
111
110
|
class Init,Synth,Deploy,BSR cmd;
|
|
112
|
-
class C1,C2,BS,E,CN tool;
|
|
111
|
+
class A,C1,C2,BS,E,CN,LLDP tool;
|
|
113
112
|
class JSON output;
|
|
114
|
-
class HasLambda,Nag decision;
|
|
113
|
+
class HasLambda,UseLayer,Nag decision;
|
|
115
114
|
```
|
|
116
115
|
|
|
117
|
-
##
|
|
116
|
+
## Available MCP Tools
|
|
117
|
+
|
|
118
|
+
- **CDKGeneralGuidance**: Get prescriptive advice for building AWS applications with CDK
|
|
119
|
+
- **GetAwsSolutionsConstructPattern**: Find vetted architecture patterns combining AWS services
|
|
120
|
+
- **SearchGenAICDKConstructs**: Discover GenAI CDK constructs by name or features
|
|
121
|
+
- **GenerateBedrockAgentSchema**: Create OpenAPI schemas for Bedrock Agent action groups
|
|
122
|
+
- **LambdaLayerDocumentationProvider**: Access documentation for Lambda layers implementation
|
|
123
|
+
- **ExplainCDKNagRule**: Get detailed guidance on CDK Nag security rules
|
|
124
|
+
- **CheckCDKNagSuppressions**: Validate CDK Nag suppressions in your code
|
|
125
|
+
|
|
126
|
+
## Available MCP Resources
|
|
118
127
|
|
|
119
128
|
- **CDK Nag Rules**: Access rule packs via `cdk-nag://rules/{rule_pack}`
|
|
120
|
-
- **Lambda Powertools**: Get guidance on Lambda Powertools via `lambda-powertools://{topic}`
|
|
121
129
|
- **AWS Solutions Constructs**: Access patterns via `aws-solutions-constructs://{pattern_name}`
|
|
122
130
|
- **GenAI CDK Constructs**: Access documentation via `genai-cdk-constructs://{construct_type}/{construct_name}`
|
|
131
|
+
- **Lambda Powertools**: Get guidance on Lambda Powertools via `lambda-powertools://{topic}`
|
|
123
132
|
|
|
124
133
|
## Prerequisites
|
|
125
134
|
|
|
126
135
|
1. Install `uv` from [Astral](https://docs.astral.sh/uv/getting-started/installation/) or the [GitHub README](https://github.com/astral-sh/uv#installation)
|
|
127
136
|
2. Install Python using `uv python install 3.10`
|
|
137
|
+
3. Install AWS CDK CLI using `npm install -g aws-cdk` (Note: The MCP server itself doesn't use the CDK CLI directly, but it guides users through CDK application development that requires the CLI)
|
|
128
138
|
|
|
129
139
|
## Installation
|
|
130
140
|
|
|
@@ -63,6 +63,7 @@ mcp.tool(name='CheckCDKNagSuppressions')(tools.check_cdk_nag_suppressions_tool)
|
|
|
63
63
|
mcp.tool(name='GenerateBedrockAgentSchema')(tools.bedrock_schema_generator_from_file)
|
|
64
64
|
mcp.tool(name='GetAwsSolutionsConstructPattern')(tools.get_aws_solutions_construct_pattern)
|
|
65
65
|
mcp.tool(name='SearchGenAICDKConstructs')(tools.search_genai_cdk_constructs)
|
|
66
|
+
mcp.tool(name='LambdaLayerDocumentationProvider')(tools.lambda_layer_documentation_provider)
|
|
66
67
|
|
|
67
68
|
|
|
68
69
|
def main():
|
|
@@ -22,6 +22,7 @@ from awslabs.cdk_mcp_server.data.cdk_nag_parser import (
|
|
|
22
22
|
from awslabs.cdk_mcp_server.data.genai_cdk_loader import (
|
|
23
23
|
list_available_constructs,
|
|
24
24
|
)
|
|
25
|
+
from awslabs.cdk_mcp_server.data.lambda_layer_parser import LambdaLayerParser
|
|
25
26
|
from awslabs.cdk_mcp_server.data.schema_generator import generate_bedrock_schema_from_file
|
|
26
27
|
from awslabs.cdk_mcp_server.data.solutions_constructs_parser import (
|
|
27
28
|
fetch_pattern_list,
|
|
@@ -476,3 +477,55 @@ async def search_genai_cdk_constructs(
|
|
|
476
477
|
}
|
|
477
478
|
except Exception as e:
|
|
478
479
|
return {'error': f'Error searching constructs: {str(e)}', 'status': 'error'}
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
async def lambda_layer_documentation_provider(
|
|
483
|
+
ctx: Context,
|
|
484
|
+
layer_type: str, # "generic" or "python"
|
|
485
|
+
) -> Dict[str, Any]:
|
|
486
|
+
"""Provide documentation sources for Lambda layers.
|
|
487
|
+
|
|
488
|
+
This tool returns information about where to find documentation for Lambda layers
|
|
489
|
+
and instructs the MCP Client to fetch and process this documentation.
|
|
490
|
+
|
|
491
|
+
Args:
|
|
492
|
+
ctx: MCP context
|
|
493
|
+
layer_type: Type of layer ("generic" or "python")
|
|
494
|
+
|
|
495
|
+
Returns:
|
|
496
|
+
Dictionary with documentation source information
|
|
497
|
+
"""
|
|
498
|
+
if layer_type.lower() == 'python':
|
|
499
|
+
# For Python layers, use AWS Documentation MCP Server
|
|
500
|
+
return {
|
|
501
|
+
'layer_type': 'python',
|
|
502
|
+
'documentation_source': {
|
|
503
|
+
'server': 'awslabs.aws-documentation-mcp-server',
|
|
504
|
+
'tool': 'read_documentation',
|
|
505
|
+
'parameters': {'url': LambdaLayerParser.PYTHON_LAYER_URL, 'max_length': 10000},
|
|
506
|
+
},
|
|
507
|
+
'documentation_usage_guide': {
|
|
508
|
+
'when_to_fetch_full_docs': 'Fetch full documentation to view detailed property definitions, learn about optional parameters, and find additional code examples',
|
|
509
|
+
'contains_sample_code': True,
|
|
510
|
+
'contains_props_documentation': True,
|
|
511
|
+
},
|
|
512
|
+
'code_generation_guidance': {
|
|
513
|
+
'imports': [
|
|
514
|
+
"import { PythonLayerVersion } from '@aws-cdk/aws-lambda-python-alpha'"
|
|
515
|
+
],
|
|
516
|
+
'construct_types': {'python': 'PythonLayerVersion'},
|
|
517
|
+
'required_properties': {'python': ['entry']},
|
|
518
|
+
'sample_code': "new python.PythonLayerVersion(this, 'MyLayer', {\n entry: '/path/to/my/layer', // point this to your library's directory\n})",
|
|
519
|
+
},
|
|
520
|
+
}
|
|
521
|
+
else:
|
|
522
|
+
# For all other layer types (including generic), use the existing parser
|
|
523
|
+
docs = await LambdaLayerParser.fetch_lambda_layer_docs()
|
|
524
|
+
layer_docs = docs['generic_layers']
|
|
525
|
+
|
|
526
|
+
return {
|
|
527
|
+
'layer_type': 'generic',
|
|
528
|
+
'code_examples': layer_docs['examples'],
|
|
529
|
+
'directory_structure': layer_docs['directory_structure'],
|
|
530
|
+
'source_url': layer_docs['url'],
|
|
531
|
+
}
|