awslabs.cdk-mcp-server 0.0.11704__py3-none-any.whl → 0.0.62303__py3-none-any.whl
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/data/cdk_nag_parser.py +3 -3
- awslabs/cdk_mcp_server/data/genai_cdk_loader.py +5 -2
- awslabs/cdk_mcp_server/data/schema_generator.py +6 -4
- awslabs/cdk_mcp_server/data/solutions_constructs_parser.py +3 -3
- awslabs/cdk_mcp_server/static/CDK_GENERAL_GUIDANCE.md +9 -3
- awslabs/cdk_mcp_server/static/__init__.py +5 -1
- awslabs/cdk_mcp_server/static/bedrock/knowledgebases/chunking.md +2 -2
- awslabs_cdk_mcp_server-0.0.62303.dist-info/METADATA +89 -0
- {awslabs_cdk_mcp_server-0.0.11704.dist-info → awslabs_cdk_mcp_server-0.0.62303.dist-info}/RECORD +11 -11
- awslabs_cdk_mcp_server-0.0.11704.dist-info/METADATA +0 -65
- {awslabs_cdk_mcp_server-0.0.11704.dist-info → awslabs_cdk_mcp_server-0.0.62303.dist-info}/WHEEL +0 -0
- {awslabs_cdk_mcp_server-0.0.11704.dist-info → awslabs_cdk_mcp_server-0.0.62303.dist-info}/entry_points.txt +0 -0
|
@@ -125,7 +125,7 @@ def format_rule_info(rule_info: Optional[Dict[str, str]]) -> str:
|
|
|
125
125
|
A formatted markdown string.
|
|
126
126
|
"""
|
|
127
127
|
if not rule_info:
|
|
128
|
-
return
|
|
128
|
+
return 'Rule information not found.'
|
|
129
129
|
|
|
130
130
|
result = f'# {rule_info["rule_id"]}\n\n'
|
|
131
131
|
result += f'## Cause\n\n{rule_info["cause"]}\n\n'
|
|
@@ -275,10 +275,10 @@ def check_cdk_nag_suppressions(
|
|
|
275
275
|
code = f.read()
|
|
276
276
|
except Exception as e:
|
|
277
277
|
return {'error': f'Failed to read file: {str(e)}', 'status': 'error'}
|
|
278
|
-
|
|
278
|
+
|
|
279
279
|
# Ensure code is not None at this point
|
|
280
280
|
if code is None:
|
|
281
|
-
code =
|
|
281
|
+
code = '' # Default to empty string if somehow still None
|
|
282
282
|
|
|
283
283
|
# Define patterns to look for
|
|
284
284
|
patterns = [
|
|
@@ -364,7 +364,10 @@ def list_available_constructs(construct_type: Optional[str] = None) -> List[Dict
|
|
|
364
364
|
|
|
365
365
|
|
|
366
366
|
def process_directory_files(
|
|
367
|
-
dir_path: str,
|
|
367
|
+
dir_path: str,
|
|
368
|
+
construct_type: str,
|
|
369
|
+
constructs: List[Dict[str, Any]],
|
|
370
|
+
parent: Optional[str] = None,
|
|
368
371
|
):
|
|
369
372
|
"""Process files in a directory and add them to the constructs list.
|
|
370
373
|
|
|
@@ -400,7 +403,7 @@ def process_directory_files(
|
|
|
400
403
|
|
|
401
404
|
# Get description from fixed mapping or use default
|
|
402
405
|
descriptions = get_construct_descriptions()
|
|
403
|
-
description = descriptions.get(display_name,
|
|
406
|
+
description = descriptions.get(display_name, '')
|
|
404
407
|
|
|
405
408
|
# If no fixed description, fall back to current behavior
|
|
406
409
|
if not description:
|
|
@@ -484,12 +484,14 @@ def generate_bedrock_schema_from_file(
|
|
|
484
484
|
f'{module_name}_simplified', simplified_path
|
|
485
485
|
)
|
|
486
486
|
if spec is None:
|
|
487
|
-
raise ImportError(
|
|
488
|
-
|
|
487
|
+
raise ImportError(
|
|
488
|
+
f'Could not find spec for module: {module_name}_simplified'
|
|
489
|
+
)
|
|
490
|
+
|
|
489
491
|
simplified_module = importlib.util.module_from_spec(spec)
|
|
490
492
|
if spec.loader is None:
|
|
491
|
-
raise ImportError(f
|
|
492
|
-
|
|
493
|
+
raise ImportError(f'Module spec has no loader: {module_name}_simplified')
|
|
494
|
+
|
|
493
495
|
spec.loader.exec_module(simplified_module)
|
|
494
496
|
|
|
495
497
|
# Get app and generate schema
|
|
@@ -33,11 +33,11 @@ async def fetch_pattern_list() -> List[str]:
|
|
|
33
33
|
List of pattern names (e.g., ['aws-lambda-dynamodb', 'aws-apigateway-lambda', ...])
|
|
34
34
|
"""
|
|
35
35
|
global _pattern_list_cache
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
# Initialize cache if it's None
|
|
38
38
|
if _pattern_list_cache is None:
|
|
39
39
|
_pattern_list_cache = {'timestamp': None, 'data': []}
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
# Check cache first
|
|
42
42
|
if (
|
|
43
43
|
_pattern_list_cache['timestamp'] is not None
|
|
@@ -135,7 +135,7 @@ async def get_pattern_info(pattern_name: str) -> Dict[str, Any]:
|
|
|
135
135
|
# Update cache
|
|
136
136
|
if _pattern_details_cache is None:
|
|
137
137
|
_pattern_details_cache = {}
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
_pattern_details_cache[pattern_name] = {'timestamp': datetime.now(), 'data': pattern_info}
|
|
140
140
|
|
|
141
141
|
return pattern_info
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# AWS CDK
|
|
1
|
+
# AWS CDK General Guidance
|
|
2
2
|
|
|
3
|
-
This guide provides essential
|
|
3
|
+
This guide provides essential guidance for AWS CDK development, focusing on when to use specific constructs and tools.
|
|
4
4
|
|
|
5
5
|
## Getting Started with CDK
|
|
6
6
|
|
|
@@ -15,12 +15,13 @@ cdk init app --language python
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Proper initialization ensures:
|
|
18
|
+
|
|
18
19
|
- Consistent project structure
|
|
19
20
|
- Correct dependency setup
|
|
20
21
|
- Appropriate tsconfig/package.json configuration
|
|
21
22
|
- Necessary boilerplate files
|
|
22
23
|
|
|
23
|
-
This foundation helps avoid common issues and ensures compatibility with AWS CDK
|
|
24
|
+
This foundation helps avoid common issues and ensures compatibility with the AWS CDK ecosystem.
|
|
24
25
|
|
|
25
26
|
## Development Workflow
|
|
26
27
|
|
|
@@ -61,6 +62,7 @@ When implementing AWS infrastructure with CDK, consider these complementary appr
|
|
|
61
62
|
- Perfect for agents, knowledge bases, vector stores, and other GenAI components
|
|
62
63
|
|
|
63
64
|
**Installation:**
|
|
65
|
+
|
|
64
66
|
```typescript
|
|
65
67
|
// TypeScript
|
|
66
68
|
// Create or use an existing CDK application
|
|
@@ -174,12 +176,14 @@ Always check the [Amazon Bedrock documentation](https://docs.aws.amazon.com/bedr
|
|
|
174
176
|
AWS Solutions Constructs are vetted architecture patterns that combine multiple AWS services to solve common use cases following AWS Well-Architected best practices.
|
|
175
177
|
|
|
176
178
|
**Key benefits:**
|
|
179
|
+
|
|
177
180
|
- Accelerated Development: Implement common patterns without boilerplate code
|
|
178
181
|
- Best Practices Built-in: Security, reliability, and performance best practices
|
|
179
182
|
- Reduced Complexity: Simplified interfaces for multi-service architectures
|
|
180
183
|
- Well-Architected: Patterns follow AWS Well-Architected Framework principles
|
|
181
184
|
|
|
182
185
|
**When to use Solutions Constructs:**
|
|
186
|
+
|
|
183
187
|
- Implementing common architecture patterns (e.g., API + Lambda + DynamoDB)
|
|
184
188
|
- You want secure defaults and best practices applied automatically
|
|
185
189
|
- You need to quickly prototype or build production-ready infrastructure
|
|
@@ -191,6 +195,7 @@ To discover available patterns, use the `GetAwsSolutionsConstructPattern` tool.
|
|
|
191
195
|
CDK Nag is a crucial tool for ensuring your CDK applications follow AWS security best practices. **Always apply CDK Nag to all your stacks by default.**
|
|
192
196
|
|
|
193
197
|
Key security practices to remember:
|
|
198
|
+
|
|
194
199
|
- Follow the principle of least privilege for IAM
|
|
195
200
|
- Secure S3 buckets with encryption, access controls, and policies
|
|
196
201
|
- Implement secure authentication with Cognito
|
|
@@ -201,6 +206,7 @@ For detailed guidance, use the `CDKNagGuidance` tool.
|
|
|
201
206
|
## Operational Excellence with Lambda Powertools
|
|
202
207
|
|
|
203
208
|
Always implement Lambda Powertools for:
|
|
209
|
+
|
|
204
210
|
- Structured Logging
|
|
205
211
|
- Tracing
|
|
206
212
|
- Metrics
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
from importlib import resources
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
with
|
|
4
|
+
with (
|
|
5
|
+
resources.files('awslabs.cdk_mcp_server.static')
|
|
6
|
+
.joinpath('CDK_GENERAL_GUIDANCE.md')
|
|
7
|
+
.open('r') as f
|
|
8
|
+
):
|
|
5
9
|
CDK_GENERAL_GUIDANCE = f.read()
|
|
@@ -62,7 +62,7 @@ ChunkingStrategy.HIERARCHICAL_COHERE;
|
|
|
62
62
|
// Hierarchical Chunking with the default for Titan Models.
|
|
63
63
|
ChunkingStrategy.HIERARCHICAL_TITAN;
|
|
64
64
|
|
|
65
|
-
// Hierarchical Chunking with custom values.
|
|
65
|
+
// Hierarchical Chunking with custom values. The maximum chunk size depends on the model.
|
|
66
66
|
// Amazon Titan Text Embeddings: 8192. Cohere Embed models: 512
|
|
67
67
|
ChunkingStrategy.hierarchical({
|
|
68
68
|
overlapTokens: 60,
|
|
@@ -80,7 +80,7 @@ ChunkingStrategy.HIERARCHICAL_COHERE
|
|
|
80
80
|
# Hierarchical Chunking with the default for Titan Models.
|
|
81
81
|
ChunkingStrategy.HIERARCHICAL_TITAN
|
|
82
82
|
|
|
83
|
-
# Hierarchical Chunking with custom values.
|
|
83
|
+
# Hierarchical Chunking with custom values. The maximum chunk size depends on the model.
|
|
84
84
|
# Amazon Titan Text Embeddings: 8192. Cohere Embed models: 512
|
|
85
85
|
chunking_strategy= ChunkingStrategy.hierarchical(
|
|
86
86
|
overlap_tokens=60,
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: awslabs.cdk-mcp-server
|
|
3
|
+
Version: 0.0.62303
|
|
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
|
+
# AWS CDK MCP Server
|
|
13
|
+
|
|
14
|
+
MCP server for AWS Cloud Development Kit (CDK) best practices, infrastructure as code patterns, and security compliance with CDK Nag.
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
### CDK General Guidance
|
|
19
|
+
|
|
20
|
+
- Prescriptive patterns with AWS Solutions Constructs and GenAI CDK libraries
|
|
21
|
+
- Structured decision flow for choosing appropriate implementation approaches
|
|
22
|
+
- Security automation through CDK Nag integration and Lambda Powertools
|
|
23
|
+
|
|
24
|
+
### CDK Nag Integration
|
|
25
|
+
|
|
26
|
+
- Work with CDK Nag rules for security and compliance
|
|
27
|
+
- Explain specific CDK Nag rules with AWS Well-Architected guidance
|
|
28
|
+
- Check if CDK code contains Nag suppressions that require human review
|
|
29
|
+
|
|
30
|
+
### AWS Solutions Constructs
|
|
31
|
+
|
|
32
|
+
- Search and discover AWS Solutions Constructs patterns
|
|
33
|
+
- Find recommended patterns for common architecture needs
|
|
34
|
+
- Get detailed documentation on Solutions Constructs
|
|
35
|
+
|
|
36
|
+
### Generative AI CDK Constructs
|
|
37
|
+
|
|
38
|
+
- Search for GenAI CDK constructs by name or type
|
|
39
|
+
- Discover specialized constructs for AI/ML workloads
|
|
40
|
+
- Get implementation guidance for generative AI applications
|
|
41
|
+
|
|
42
|
+
### Amazon Bedrock Agent Schema Generation
|
|
43
|
+
|
|
44
|
+
- Generate OpenAPI schema for Bedrock Agent Action Groups
|
|
45
|
+
- Streamline the creation of Bedrock Agent schemas
|
|
46
|
+
- Convert code files to compatible OpenAPI specifications
|
|
47
|
+
|
|
48
|
+
## Tools and Resources
|
|
49
|
+
|
|
50
|
+
- **CDK Nag Rules**: Access rule packs via `cdk-nag://rules/{rule_pack}`
|
|
51
|
+
- **Lambda Powertools**: Get guidance on Lambda Powertools via `lambda-powertools://{topic}`
|
|
52
|
+
- **AWS Solutions Constructs**: Access patterns via `aws-solutions-constructs://{pattern_name}`
|
|
53
|
+
- **GenAI CDK Constructs**: Access documentation via `genai-cdk-constructs://{construct_type}/{construct_name}`
|
|
54
|
+
|
|
55
|
+
## Prerequisites
|
|
56
|
+
|
|
57
|
+
1. Install `uv` from [Astral](https://docs.astral.sh/uv/getting-started/installation/) or the [GitHub README](https://github.com/astral-sh/uv#installation)
|
|
58
|
+
2. Install Python using `uv python install 3.10`
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon: (e.g. for Amazon Q Developer CLI MCP, `~/.aws/amazonq/mcp.json`):
|
|
63
|
+
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"mcpServers": {
|
|
67
|
+
"awslabs.cdk-mcp-server": {
|
|
68
|
+
"command": "uvx",
|
|
69
|
+
"args": ["awslabs.cdk-mcp-server@latest"],
|
|
70
|
+
"env": {
|
|
71
|
+
"FASTMCP_LOG_LEVEL": "ERROR"
|
|
72
|
+
},
|
|
73
|
+
"disabled": false,
|
|
74
|
+
"autoApprove": []
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Security Considerations
|
|
81
|
+
|
|
82
|
+
When using this MCP server, you should consider:
|
|
83
|
+
|
|
84
|
+
- Reviewing all CDK Nag warnings and errors manually
|
|
85
|
+
- Fixing security issues rather than suppressing them whenever possible
|
|
86
|
+
- Documenting clear justifications for any necessary suppressions
|
|
87
|
+
- Using the CheckCDKNagSuppressions tool to verify no unauthorized suppressions exist
|
|
88
|
+
|
|
89
|
+
Before applying CDK NAG Suppressions, you should consider conducting your own independent assessment to ensure that your use would comply with your own specific security and quality control practices and standards, as well as the local laws, rules, and regulations that govern you and your content.
|
{awslabs_cdk_mcp_server-0.0.11704.dist-info → awslabs_cdk_mcp_server-0.0.62303.dist-info}/RECORD
RENAMED
|
@@ -7,15 +7,15 @@ awslabs/cdk_mcp_server/core/search_utils.py,sha256=Nz8ftv4w9O_1fvCwIJL36GoBMOtHP
|
|
|
7
7
|
awslabs/cdk_mcp_server/core/server.py,sha256=1Zc_n4whZJq9q2_eVrmvqnmNaTKL4ftwbiVHmPJ3JAs,2594
|
|
8
8
|
awslabs/cdk_mcp_server/core/tools.py,sha256=dw_RJ-IvfWsaicj6bp_UvyGjtd2hLicXL4RC5doaVk4,11644
|
|
9
9
|
awslabs/cdk_mcp_server/data/__init__.py,sha256=ksA1se4fyvTIb4K7lND-C66ouriFtjyZU96Q88nl6w4,47
|
|
10
|
-
awslabs/cdk_mcp_server/data/cdk_nag_parser.py,sha256=
|
|
10
|
+
awslabs/cdk_mcp_server/data/cdk_nag_parser.py,sha256=k3OzuVyoYUivowt_mEO0cp1YwTOgzTmVyg_0mcanDt8,10900
|
|
11
11
|
awslabs/cdk_mcp_server/data/construct_descriptions.py,sha256=br5gOa5M8Nhv3HrHqrHGXCwQRTu4ZeMAo85bEhzCuMM,2605
|
|
12
|
-
awslabs/cdk_mcp_server/data/genai_cdk_loader.py,sha256=
|
|
12
|
+
awslabs/cdk_mcp_server/data/genai_cdk_loader.py,sha256=Q_-tnYu9VNe9lbAxN6qfvBQWYJJjYXht63ko9x-IH-Y,15507
|
|
13
13
|
awslabs/cdk_mcp_server/data/lambda_powertools_loader.py,sha256=sQfZrmA2hZdd1NSK0hCb5l4kl7jlQ3xhxs28KgEB4Dw,1630
|
|
14
|
-
awslabs/cdk_mcp_server/data/schema_generator.py,sha256=
|
|
15
|
-
awslabs/cdk_mcp_server/data/solutions_constructs_parser.py,sha256=
|
|
16
|
-
awslabs/cdk_mcp_server/static/CDK_GENERAL_GUIDANCE.md,sha256=
|
|
14
|
+
awslabs/cdk_mcp_server/data/schema_generator.py,sha256=vQaZiasOyVam0NNmtzo6D6hy7ynsndRR2I56OBwQlag,27879
|
|
15
|
+
awslabs/cdk_mcp_server/data/solutions_constructs_parser.py,sha256=SL3ZjvCSALmiQlHEMsoDbnbtKxFAPl-mTurciCgj3G8,27656
|
|
16
|
+
awslabs/cdk_mcp_server/static/CDK_GENERAL_GUIDANCE.md,sha256=E-oIFBGkvHg95u909rJDrGJdo4t7aCeTLZsXQ47Fyhc,9925
|
|
17
17
|
awslabs/cdk_mcp_server/static/CDK_NAG_GUIDANCE.md,sha256=zJtHJp9ruaaJ-xa68k9kDrPmEaXpiWCZZf7JIy8NK0w,5839
|
|
18
|
-
awslabs/cdk_mcp_server/static/__init__.py,sha256=
|
|
18
|
+
awslabs/cdk_mcp_server/static/__init__.py,sha256=JJ9ptA-cG8muKCoJgjPKUoCc2q2ks8gBJNbjJTHZS3o,194
|
|
19
19
|
awslabs/cdk_mcp_server/static/bedrock/bedrockguardrails.md,sha256=CX00B7XgDpLbVxvf6B-a13O4NERAJMiaPPeTuKK-8Sw,7386
|
|
20
20
|
awslabs/cdk_mcp_server/static/bedrock/profiles.md,sha256=xxPnEkZ0tJAFKomMuAPLm3EtlQFku6MR2nPu4VoyppE,7195
|
|
21
21
|
awslabs/cdk_mcp_server/static/bedrock/agent/actiongroups.md,sha256=qm6UCCfKurtvNO52g1a6H1N9iBZx-KTCf4SbCK2QQXw,4865
|
|
@@ -25,7 +25,7 @@ awslabs/cdk_mcp_server/static/bedrock/agent/creation.md,sha256=BzpVJkRs_q1ZkW8Ln
|
|
|
25
25
|
awslabs/cdk_mcp_server/static/bedrock/agent/custom_orchestration.md,sha256=ylMTq3PT3vHnrul_boLuQIGQFuk_Y0evdImp_pLY7rY,2983
|
|
26
26
|
awslabs/cdk_mcp_server/static/bedrock/agent/overview.md,sha256=4FLhC3CC01W9Gpw4S0Z6yWPnM86p2nJ_dxQ1yU4Xsxw,2921
|
|
27
27
|
awslabs/cdk_mcp_server/static/bedrock/agent/prompt_override.md,sha256=ypmKxlO5WIYqUh2gYDzo1Mwzso_HwSkzrMHeDU473C8,2520
|
|
28
|
-
awslabs/cdk_mcp_server/static/bedrock/knowledgebases/chunking.md,sha256=
|
|
28
|
+
awslabs/cdk_mcp_server/static/bedrock/knowledgebases/chunking.md,sha256=xlO23xjesPFGgv_FZm2AkRzQVH3nSFD2GpbddXJX2gM,3201
|
|
29
29
|
awslabs/cdk_mcp_server/static/bedrock/knowledgebases/datasources.md,sha256=iHQ086zHzkqHoKLi7pmyMxf0oH02UVHf_GAid6EMdeE,7147
|
|
30
30
|
awslabs/cdk_mcp_server/static/bedrock/knowledgebases/kendra.md,sha256=sYbhIAaGjuJ2lifP0xvDXacDEVFC24Gl9giAI6RF9bo,2786
|
|
31
31
|
awslabs/cdk_mcp_server/static/bedrock/knowledgebases/overview.md,sha256=AGLS6146UufRTC80EAyAviBhAtb7hFcbMz3tWFviPOc,5167
|
|
@@ -66,7 +66,7 @@ awslabs/cdk_mcp_server/static/lambda_powertools/metrics.md,sha256=XpQHtNSQRKN3GU
|
|
|
66
66
|
awslabs/cdk_mcp_server/static/lambda_powertools/tracing.md,sha256=Q3dSCvgktb9sUsuuQ5ONU2Qdb1OTwbNOYpK--MDzBNw,2539
|
|
67
67
|
awslabs/cdk_mcp_server/static/opensearch-vectorindex/overview.md,sha256=0aSuBwX4ubI5WqwEfrnX1MH2UJlJOzdXZQ003fRIrGM,4121
|
|
68
68
|
awslabs/cdk_mcp_server/static/opensearchserverless/overview.md,sha256=aUO1BRana_xqUPENP3GQyOSCAvV9mI-ZWls7x0g8ruA,746
|
|
69
|
-
awslabs_cdk_mcp_server-0.0.
|
|
70
|
-
awslabs_cdk_mcp_server-0.0.
|
|
71
|
-
awslabs_cdk_mcp_server-0.0.
|
|
72
|
-
awslabs_cdk_mcp_server-0.0.
|
|
69
|
+
awslabs_cdk_mcp_server-0.0.62303.dist-info/METADATA,sha256=FFFL7SlFEWlvq9ThUjvrIJ9aZAs0lM5NUcJImlz1AkU,3638
|
|
70
|
+
awslabs_cdk_mcp_server-0.0.62303.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
71
|
+
awslabs_cdk_mcp_server-0.0.62303.dist-info/entry_points.txt,sha256=LertzmID_mUU1YYZPySAF1IY1zE7ySTvzFxiGyo3VjY,78
|
|
72
|
+
awslabs_cdk_mcp_server-0.0.62303.dist-info/RECORD,,
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: awslabs.cdk-mcp-server
|
|
3
|
-
Version: 0.0.11704
|
|
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.13
|
|
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
|
-
# CDK MCP Server
|
|
13
|
-
|
|
14
|
-
MCP server for AWS Cloud Development Kit (CDK) best practices, infrastructure as code patterns, and security compliance with CDK Nag.
|
|
15
|
-
|
|
16
|
-
## Features
|
|
17
|
-
|
|
18
|
-
### Tools
|
|
19
|
-
|
|
20
|
-
- **CDKGeneralGuidance** - Get prescriptive CDK advice for building applications on AWS
|
|
21
|
-
- **ExplainCDKNagRule** - Explain specific CDK Nag rules with AWS Well-Architected guidance
|
|
22
|
-
- **CheckCDKNagSuppressions** - Check if CDK code contains Nag suppressions that require human review
|
|
23
|
-
- **GenerateBedrockAgentSchemaFromFile** - Generate OpenAPI schema for Bedrock Agent Action Groups from a file
|
|
24
|
-
- **GetAwsSolutionsConstructPattern** - Search and discover AWS Solutions Constructs patterns
|
|
25
|
-
- **SearchGenAICDKConstructs** - Search for GenAI CDK constructs by name or type
|
|
26
|
-
|
|
27
|
-
### Resources
|
|
28
|
-
|
|
29
|
-
- **CDK Nag Rules** - Access rule packs via `cdk-nag://rules/{rule_pack}`
|
|
30
|
-
- **Lambda Powertools** - Get guidance on Lambda Powertools via `lambda-powertools://{topic}`
|
|
31
|
-
- **AWS Solutions Constructs** - Access patterns via `aws-solutions-constructs://{pattern_name}`
|
|
32
|
-
- **GenAI CDK Constructs** - Access documentation via `genai-cdk-constructs://{construct_type}/{construct_name}`
|
|
33
|
-
|
|
34
|
-
## Prerequisites
|
|
35
|
-
|
|
36
|
-
1. Install `uv` from [Astral](https://docs.astral.sh/uv/getting-started/installation/) or the [GitHub README](https://github.com/astral-sh/uv#installation)
|
|
37
|
-
2. Install Python using `uv python install 3.13`
|
|
38
|
-
|
|
39
|
-
## Installation
|
|
40
|
-
|
|
41
|
-
Here are some ways you can work with MCP across AWS, and we’ll be adding support to more products including Amazon Q Developer CLI soon: (e.g. for Amazon Q DeveloperCLI MCP, `~/.aws/amazonq/mcp.json`):
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"mcpServers": {
|
|
46
|
-
"awslabs.cdk-mcp-server": {
|
|
47
|
-
"command": "uvx",
|
|
48
|
-
"args": ["awslabs.cdk-mcp-server@latest"],
|
|
49
|
-
"disabled": false,
|
|
50
|
-
"autoApprove": []
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Security Considerations
|
|
57
|
-
|
|
58
|
-
When using this MCP server, you should consider:
|
|
59
|
-
|
|
60
|
-
- Reviewing all CDK Nag warnings and errors manually
|
|
61
|
-
- Fixing security issues rather than suppressing them whenever possible
|
|
62
|
-
- Documenting clear justifications for any necessary suppressions
|
|
63
|
-
- Using the CheckCDKNagSuppressions tool to verify no unauthorized suppressions exist
|
|
64
|
-
|
|
65
|
-
Before applying CDK NAG Suppressions, you should consider conducting your own independent assessment to ensure that your use would comply with your own specific security and quality control practices and standards, as well as the local laws, rules, and regulations that govern you and your content.
|
{awslabs_cdk_mcp_server-0.0.11704.dist-info → awslabs_cdk_mcp_server-0.0.62303.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|