awslabs.eks-mcp-server 0.1.6__py3-none-any.whl → 0.1.7__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.
@@ -37,9 +37,9 @@ from awslabs.eks_mcp_server.models import (
37
37
  GenerateTemplateResponse,
38
38
  )
39
39
  from mcp.server.fastmcp import Context
40
- from mcp.types import EmbeddedResource, ImageContent, TextContent
40
+ from mcp.types import TextContent
41
41
  from pydantic import Field
42
- from typing import Any, Dict, List, Optional, Tuple, Union, cast
42
+ from typing import Any, Dict, Optional, Tuple, Union
43
43
 
44
44
 
45
45
  class EksStackHandler:
@@ -192,19 +192,13 @@ class EksStackHandler:
192
192
  if operation == GENERATE_OPERATION:
193
193
  return GenerateTemplateResponse(
194
194
  isError=True,
195
- content=cast(
196
- List[Union[TextContent, ImageContent, EmbeddedResource]],
197
- [TextContent(type='text', text=error_message)],
198
- ),
195
+ content=[TextContent(type='text', text=error_message)],
199
196
  template_path='',
200
197
  )
201
198
  elif operation == DEPLOY_OPERATION:
202
199
  return DeployStackResponse(
203
200
  isError=True,
204
- content=cast(
205
- List[Union[TextContent, ImageContent, EmbeddedResource]],
206
- [TextContent(type='text', text=error_message)],
207
- ),
201
+ content=[TextContent(type='text', text=error_message)],
208
202
  stack_name='',
209
203
  stack_arn='',
210
204
  cluster_name=cluster_name or '',
@@ -212,10 +206,7 @@ class EksStackHandler:
212
206
  elif operation == DELETE_OPERATION:
213
207
  return DeleteStackResponse(
214
208
  isError=True,
215
- content=cast(
216
- List[Union[TextContent, ImageContent, EmbeddedResource]],
217
- [TextContent(type='text', text=error_message)],
218
- ),
209
+ content=[TextContent(type='text', text=error_message)],
219
210
  stack_name='',
220
211
  stack_id='',
221
212
  cluster_name=cluster_name or '',
@@ -223,10 +214,7 @@ class EksStackHandler:
223
214
  else: # Default to describe operation
224
215
  return DescribeStackResponse(
225
216
  isError=True,
226
- content=cast(
227
- List[Union[TextContent, ImageContent, EmbeddedResource]],
228
- [TextContent(type='text', text=error_message)],
229
- ),
217
+ content=[TextContent(type='text', text=error_message)],
230
218
  stack_name='',
231
219
  stack_id='',
232
220
  cluster_name=cluster_name or '',
@@ -285,10 +273,7 @@ class EksStackHandler:
285
273
  # Default to DescribeStackResponse for invalid operations
286
274
  return DescribeStackResponse(
287
275
  isError=True,
288
- content=cast(
289
- List[Union[TextContent, ImageContent, EmbeddedResource]],
290
- [TextContent(type='text', text=error_message)],
291
- ),
276
+ content=[TextContent(type='text', text=error_message)],
292
277
  stack_name='',
293
278
  stack_id='',
294
279
  cluster_name=cluster_name or '',
@@ -306,10 +291,7 @@ class EksStackHandler:
306
291
  # Default to DescribeStackResponse for general exceptions
307
292
  return DescribeStackResponse(
308
293
  isError=True,
309
- content=cast(
310
- List[Union[TextContent, ImageContent, EmbeddedResource]],
311
- [TextContent(type='text', text=error_message)],
312
- ),
294
+ content=[TextContent(type='text', text=error_message)],
313
295
  stack_name='',
314
296
  stack_id='',
315
297
  cluster_name=cluster_name or '',
@@ -374,15 +356,12 @@ class EksStackHandler:
374
356
 
375
357
  return GenerateTemplateResponse(
376
358
  isError=False,
377
- content=cast(
378
- List[Union[TextContent, ImageContent, EmbeddedResource]],
379
- [
380
- TextContent(
381
- type='text',
382
- text=f'CloudFormation template generated at {template_path} with cluster name {cluster_name}',
383
- )
384
- ],
385
- ),
359
+ content=[
360
+ TextContent(
361
+ type='text',
362
+ text=f'CloudFormation template generated at {template_path} with cluster name {cluster_name}',
363
+ )
364
+ ],
386
365
  template_path=template_path,
387
366
  )
388
367
  except Exception as e:
@@ -391,10 +370,7 @@ class EksStackHandler:
391
370
 
392
371
  return GenerateTemplateResponse(
393
372
  isError=True,
394
- content=cast(
395
- List[Union[TextContent, ImageContent, EmbeddedResource]],
396
- [TextContent(type='text', text=error_message or 'Unknown error')],
397
- ),
373
+ content=[TextContent(type='text', text=error_message or 'Unknown error')],
398
374
  template_path='',
399
375
  )
400
376
 
@@ -421,10 +397,9 @@ class EksStackHandler:
421
397
  if not success:
422
398
  return DeployStackResponse(
423
399
  isError=True,
424
- content=cast(
425
- List[Union[TextContent, ImageContent, EmbeddedResource]],
426
- [TextContent(type='text', text=error_message or 'Unknown error')],
427
- ),
400
+ content=[
401
+ TextContent(type='text', text=error_message or 'Unknown error')
402
+ ],
428
403
  stack_name=stack_name,
429
404
  stack_arn='',
430
405
  cluster_name=cluster_name,
@@ -474,15 +449,12 @@ class EksStackHandler:
474
449
 
475
450
  return DeployStackResponse(
476
451
  isError=False,
477
- content=cast(
478
- List[Union[TextContent, ImageContent, EmbeddedResource]],
479
- [
480
- TextContent(
481
- type='text',
482
- text=f'CloudFormation stack {operation_text} initiated. Stack {operation_text} is in progress and typically takes 15-20 minutes to complete.',
483
- )
484
- ],
485
- ),
452
+ content=[
453
+ TextContent(
454
+ type='text',
455
+ text=f'CloudFormation stack {operation_text} initiated. Stack {operation_text} is in progress and typically takes 15-20 minutes to complete.',
456
+ )
457
+ ],
486
458
  stack_name=stack_name,
487
459
  stack_arn=response['StackId'],
488
460
  cluster_name=cluster_name,
@@ -493,10 +465,7 @@ class EksStackHandler:
493
465
 
494
466
  return DeployStackResponse(
495
467
  isError=True,
496
- content=cast(
497
- List[Union[TextContent, ImageContent, EmbeddedResource]],
498
- [TextContent(type='text', text=error_message or 'Unknown error')],
499
- ),
468
+ content=[TextContent(type='text', text=error_message or 'Unknown error')],
500
469
  stack_name=stack_name,
501
470
  stack_arn='',
502
471
  cluster_name=cluster_name,
@@ -524,10 +493,7 @@ class EksStackHandler:
524
493
 
525
494
  return DescribeStackResponse(
526
495
  isError=True,
527
- content=cast(
528
- List[Union[TextContent, ImageContent, EmbeddedResource]],
529
- [TextContent(type='text', text=error_message or 'Unknown error')],
530
- ),
496
+ content=[TextContent(type='text', text=error_message or 'Unknown error')],
531
497
  stack_name=stack_name,
532
498
  stack_id=stack_id,
533
499
  cluster_name=cluster_name,
@@ -569,15 +535,12 @@ class EksStackHandler:
569
535
 
570
536
  return DescribeStackResponse(
571
537
  isError=False,
572
- content=cast(
573
- List[Union[TextContent, ImageContent, EmbeddedResource]],
574
- [
575
- TextContent(
576
- type='text',
577
- text=f'Successfully described CloudFormation stack {stack_name} for EKS cluster {cluster_name}',
578
- )
579
- ],
580
- ),
538
+ content=[
539
+ TextContent(
540
+ type='text',
541
+ text=f'Successfully described CloudFormation stack {stack_name} for EKS cluster {cluster_name}',
542
+ )
543
+ ],
581
544
  stack_name=stack_name,
582
545
  stack_id=stack_id,
583
546
  cluster_name=cluster_name,
@@ -591,10 +554,7 @@ class EksStackHandler:
591
554
 
592
555
  return DescribeStackResponse(
593
556
  isError=True,
594
- content=cast(
595
- List[Union[TextContent, ImageContent, EmbeddedResource]],
596
- [TextContent(type='text', text=error_message or 'Unknown error')],
597
- ),
557
+ content=[TextContent(type='text', text=error_message or 'Unknown error')],
598
558
  stack_name=stack_name,
599
559
  stack_id='',
600
560
  cluster_name=cluster_name,
@@ -637,10 +597,7 @@ class EksStackHandler:
637
597
 
638
598
  return DeleteStackResponse(
639
599
  isError=True,
640
- content=cast(
641
- List[Union[TextContent, ImageContent, EmbeddedResource]],
642
- [TextContent(type='text', text=error_message or 'Unknown error')],
643
- ),
600
+ content=[TextContent(type='text', text=error_message or 'Unknown error')],
644
601
  stack_name=stack_name,
645
602
  stack_id=stack_id,
646
603
  cluster_name=cluster_name,
@@ -662,15 +619,12 @@ class EksStackHandler:
662
619
 
663
620
  return DeleteStackResponse(
664
621
  isError=False,
665
- content=cast(
666
- List[Union[TextContent, ImageContent, EmbeddedResource]],
667
- [
668
- TextContent(
669
- type='text',
670
- text=f'Initiated deletion of CloudFormation stack {stack_name} for EKS cluster {cluster_name}. Deletion is in progress.',
671
- )
672
- ],
673
- ),
622
+ content=[
623
+ TextContent(
624
+ type='text',
625
+ text=f'Initiated deletion of CloudFormation stack {stack_name} for EKS cluster {cluster_name}. Deletion is in progress.',
626
+ )
627
+ ],
674
628
  stack_name=stack_name,
675
629
  stack_id=stack_id,
676
630
  cluster_name=cluster_name,
@@ -681,10 +635,7 @@ class EksStackHandler:
681
635
 
682
636
  return DeleteStackResponse(
683
637
  isError=True,
684
- content=cast(
685
- List[Union[TextContent, ImageContent, EmbeddedResource]],
686
- [TextContent(type='text', text=error_message or 'Unknown error')],
687
- ),
638
+ content=[TextContent(type='text', text=error_message or 'Unknown error')],
688
639
  stack_name=stack_name,
689
640
  stack_id='',
690
641
  cluster_name=cluster_name,
@@ -209,6 +209,7 @@ class GenerateTemplateResponse(CallToolResult):
209
209
  """Response model for generate operation of manage_eks_stacks tool."""
210
210
 
211
211
  template_path: str = Field(..., description='Path to the generated template')
212
+ content: list = Field(..., description='Content blocks for the response')
212
213
 
213
214
 
214
215
  class DeployStackResponse(CallToolResult):
@@ -217,6 +218,7 @@ class DeployStackResponse(CallToolResult):
217
218
  stack_name: str = Field(..., description='Name of the CloudFormation stack')
218
219
  stack_arn: str = Field(..., description='ARN of the CloudFormation stack')
219
220
  cluster_name: str = Field(..., description='Name of the EKS cluster')
221
+ content: list = Field(..., description='Content blocks for the response')
220
222
 
221
223
 
222
224
  class DescribeStackResponse(CallToolResult):
@@ -228,6 +230,7 @@ class DescribeStackResponse(CallToolResult):
228
230
  creation_time: str = Field(..., description='Creation time of the stack')
229
231
  stack_status: str = Field(..., description='Current status of the stack')
230
232
  outputs: Dict[str, str] = Field(..., description='Stack outputs')
233
+ content: list = Field(..., description='Content blocks for the response')
231
234
 
232
235
 
233
236
  class DeleteStackResponse(CallToolResult):
@@ -236,6 +239,7 @@ class DeleteStackResponse(CallToolResult):
236
239
  stack_name: str = Field(..., description='Name of the deleted CloudFormation stack')
237
240
  stack_id: str = Field(..., description='ID of the deleted CloudFormation stack')
238
241
  cluster_name: str = Field(..., description='Name of the EKS cluster')
242
+ content: list = Field(..., description='Content blocks for the response')
239
243
 
240
244
 
241
245
  class PolicySummary(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: awslabs.eks-mcp-server
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: An AWS Labs Model Context Protocol (MCP) server for EKS
5
5
  Project-URL: homepage, https://awslabs.github.io/mcp/
6
6
  Project-URL: docs, https://awslabs.github.io/mcp/servers/eks-mcp-server/
@@ -25,7 +25,7 @@ Requires-Dist: boto3>=1.34.0
25
25
  Requires-Dist: cachetools>=5.3.0
26
26
  Requires-Dist: kubernetes>=28.1.0
27
27
  Requires-Dist: loguru>=0.7.0
28
- Requires-Dist: mcp[cli]>=1.6.0
28
+ Requires-Dist: mcp[cli]>=1.11.0
29
29
  Requires-Dist: pydantic>=2.10.6
30
30
  Requires-Dist: pyyaml>=6.0.0
31
31
  Requires-Dist: requests-auth-aws-sigv4
@@ -126,7 +126,9 @@ This quickstart guide walks you through the steps to configure the Amazon EKS MC
126
126
 
127
127
  **Set up Cursor**
128
128
 
129
- [![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/install-mcp?name=awslabs.eks-mcp-server&config=eyJhdXRvQXBwcm92ZSI6W10sImRpc2FibGVkIjpmYWxzZSwiY29tbWFuZCI6InV2eCBhd3NsYWJzLmVrcy1tY3Atc2VydmVyQGxhdGVzdCAtLWFsbG93LXdyaXRlIC0tYWxsb3ctc2Vuc2l0aXZlLWRhdGEtYWNjZXNzIiwiZW52Ijp7IkZBU1RNQ1BfTE9HX0xFVkVMIjoiRVJST1IifSwidHJhbnNwb3J0VHlwZSI6InN0ZGlvIn0%3D)
129
+ | Cursor | VS Code |
130
+ |:------:|:-------:|
131
+ | [![Install MCP Server](https://cursor.com/deeplink/mcp-install-light.svg)](https://cursor.com/install-mcp?name=awslabs.eks-mcp-server&config=eyJhdXRvQXBwcm92ZSI6W10sImRpc2FibGVkIjpmYWxzZSwiY29tbWFuZCI6InV2eCBhd3NsYWJzLmVrcy1tY3Atc2VydmVyQGxhdGVzdCAtLWFsbG93LXdyaXRlIC0tYWxsb3ctc2Vuc2l0aXZlLWRhdGEtYWNjZXNzIiwiZW52Ijp7IkZBU1RNQ1BfTE9HX0xFVkVMIjoiRVJST1IifSwidHJhbnNwb3J0VHlwZSI6InN0ZGlvIn0%3D) | [![Install on VS Code](https://img.shields.io/badge/Install_on-VS_Code-FF9900?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=EKS%20MCP%20Server&config=%7B%22autoApprove%22%3A%5B%5D%2C%22disabled%22%3Afalse%2C%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22awslabs.eks-mcp-server%40latest%22%2C%22--allow-write%22%2C%22--allow-sensitive-data-access%22%5D%2C%22env%22%3A%7B%22FASTMCP_LOG_LEVEL%22%3A%22ERROR%22%7D%2C%22transportType%22%3A%22stdio%22%7D) |
130
132
 
131
133
  **Set up the Amazon Q Developer CLI**
132
134
 
@@ -5,22 +5,22 @@ awslabs/eks_mcp_server/cloudwatch_handler.py,sha256=k3GsORIFswOknxYM0reCBsCHXn--
5
5
  awslabs/eks_mcp_server/cloudwatch_metrics_guidance_handler.py,sha256=b0fFMvsGX98HKK4kVFI1YbhZqZC623lZ6TNXs3EiRSI,5283
6
6
  awslabs/eks_mcp_server/consts.py,sha256=XBat-KcMckueQQpDeLkD_Nv_9G9kX0_d48sMEHtZ5HQ,1380
7
7
  awslabs/eks_mcp_server/eks_kb_handler.py,sha256=6L3wS500AadKburhwf0zXEapXscd4VZCTY8t61u-j1Y,3548
8
- awslabs/eks_mcp_server/eks_stack_handler.py,sha256=gbZizqaumsAz5x-fLM-VJlmUCzTp7TwtbOGn8u6_omc,29721
8
+ awslabs/eks_mcp_server/eks_stack_handler.py,sha256=p4Cbjcb7ga52hPo6-M1FFWhgIpuI0X4Hx024k4wxcwQ,27400
9
9
  awslabs/eks_mcp_server/iam_handler.py,sha256=lXA4acsBJAy5IekgdJM_yVzaaztanrPSpqX84ttSlO0,14817
10
10
  awslabs/eks_mcp_server/k8s_apis.py,sha256=YRx29w-7n3LX3DsniPgULuxNx_6Mkw-Jzh-PGetZDag,20448
11
11
  awslabs/eks_mcp_server/k8s_client_cache.py,sha256=vm-8VKC3zaCqpW9pOUmRDFulxzYCX8p8OvyOgtvh96o,5697
12
12
  awslabs/eks_mcp_server/k8s_handler.py,sha256=vA08ONRDky7S5hINif8hxe_Y1KAArQDzOao1YLf4Uck,49447
13
13
  awslabs/eks_mcp_server/logging_helper.py,sha256=hr8xZhAZOKyR7dkwc7bhqkDVuSDI3BRK3-UzllQkWgE,1854
14
- awslabs/eks_mcp_server/models.py,sha256=UtMmZaRJNjV8I9A8jCD9vzU66tXYOLna8RzaMNQPddE,11930
14
+ awslabs/eks_mcp_server/models.py,sha256=edsXbSfAPKR2o_0HVffLjUFlIbRJ5JxtuPFJZw028P0,12242
15
15
  awslabs/eks_mcp_server/server.py,sha256=UHKhCEgR7D5pXpH1xnpMyOfRLZ9o9d327n5c311erGI,6704
16
16
  awslabs/eks_mcp_server/data/eks_cloudwatch_metrics_guidance.json,sha256=a4tzVdwpF_0kZGwOJCDEQskScp5rjRU89M7ONp3HpdA,9304
17
17
  awslabs/eks_mcp_server/scripts/update_eks_cloudwatch_metrics_guidance.py,sha256=Y1OvU85wc3WIviUbabbGCCO-DvJwtP2UU9ABuEMSNyY,10099
18
18
  awslabs/eks_mcp_server/templates/eks-templates/eks-with-vpc.yaml,sha256=_Lxk2MEXNA7N0-kvXckxwBamDEagjGvC6-Z5uxhVO5s,10774
19
19
  awslabs/eks_mcp_server/templates/k8s-templates/deployment.yaml,sha256=J2efYFISlT3sTvf8_BJV3p0_m51cltqiRhXdBXb9YJs,2343
20
20
  awslabs/eks_mcp_server/templates/k8s-templates/service.yaml,sha256=DA0Db_5yjUZmnnYy5Bljcv3hj7D6YvFFWFRB6GiIstY,414
21
- awslabs_eks_mcp_server-0.1.6.dist-info/METADATA,sha256=XCtb-g9qt01im_FD3tn8MQl1oBLVdS1EcUyyD1xt-Jk,28678
22
- awslabs_eks_mcp_server-0.1.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
- awslabs_eks_mcp_server-0.1.6.dist-info/entry_points.txt,sha256=VydotfOJYck8o4TPsaF6Pjmc8Bp_doacYXSE_71qH4c,78
24
- awslabs_eks_mcp_server-0.1.6.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
25
- awslabs_eks_mcp_server-0.1.6.dist-info/licenses/NOTICE,sha256=gnCtD34qTDnb2Lykm9kNFYkqZIvqJHGuq1ZJBkl6EgE,90
26
- awslabs_eks_mcp_server-0.1.6.dist-info/RECORD,,
21
+ awslabs_eks_mcp_server-0.1.7.dist-info/METADATA,sha256=Zgcpq8-jdW8B-WpLW-GIqEx6JOHh2eNqJzJMxQHE9Tw,29243
22
+ awslabs_eks_mcp_server-0.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
+ awslabs_eks_mcp_server-0.1.7.dist-info/entry_points.txt,sha256=VydotfOJYck8o4TPsaF6Pjmc8Bp_doacYXSE_71qH4c,78
24
+ awslabs_eks_mcp_server-0.1.7.dist-info/licenses/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
25
+ awslabs_eks_mcp_server-0.1.7.dist-info/licenses/NOTICE,sha256=gnCtD34qTDnb2Lykm9kNFYkqZIvqJHGuq1ZJBkl6EgE,90
26
+ awslabs_eks_mcp_server-0.1.7.dist-info/RECORD,,