Skip to main content

MCP server that helps draft high-quality AWS Support cases from conversation context

Project description

AWS Case Drafter

MCP server,让客户在 AI 对话中自然地完成 AWS Support 工单的起草与提交。

不需要离开对话窗口,不需要手动整理信息 —— 一句"帮我开个工单"即可。

解决什么

  • 跳出对话:不再需要切回控制台手动填写工单
  • 重复劳动:对话中已经说过的问题,不用重新组织一遍
  • 反复补充:自动收集 TSE 需要的诊断信息,减少来回追问

MCP 工具

工具 功能 凭证
fetch_lambda_context Lambda 函数 ARN + 最近错误日志 需要
fetch_iot_context IoT Core 诊断信息(V2日志/加密配置/自定义域名/Command/Topic Rule) 需要
fetch_apigw_context API Gateway REST API 日志 + VPC Link/Usage Plan 需要
draft_support_case 根据诊断数据生成结构化工单草稿 不需要
submit_support_case 客户确认后通过 Support API 提交工单 需要 + Business Plan

快速开始

1. 准备 uv 运行环境

多数 AI 客户端已集成 uv。Cherry Studio 在 设置 → MCP 服务器 点"安装"即可(用其内置 uv)。

2. 新建 stdio 类型的 MCP 服务器

在客户端 MCP 配置中添加:

  • 命令uvx
  • 参数aws-case-drafter@latest
  • 包管理源:国内建议选清华/阿里云镜像加速

3. 配置环境变量

支持 AWS SDK 标准环境变量:

  • 已配置 AWS CLI 时:AWS_PROFILE(profile 中一般已包含 region)
  • 未配 CLI 时:AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY + AWS_REGION

凭证可选 —— 无凭证时退化为仅基于对话历史生成草稿。

Cherry Studio MCP 配置

设计亮点

  • 适配多模型:工具描述简洁直观,适配 DeepSeek、千问等国产模型
  • 自动脱敏:日志中的敏感信息(IP、密钥、邮箱)在进入工单前自动脱敏
  • 日志自动附件:大量错误日志写入临时文件随工单提交,正文保持简洁

技术栈

  • Python 3.10+
  • MCP SDK (FastMCP)
  • boto3
  • 打包:hatchling → PyPI → uvx 运行

兼容客户端

  1. Cherry Studio + DeepSeek/千问 (国内首选)
  2. ChatBox + 任意模型 API
  3. Claude Desktop / Kiro / Cursor

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_case_drafter-0.2.1.tar.gz (262.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_case_drafter-0.2.1-py3-none-any.whl (81.8 kB view details)

Uploaded Python 3

File details

Details for the file aws_case_drafter-0.2.1.tar.gz.

File metadata

  • Download URL: aws_case_drafter-0.2.1.tar.gz
  • Upload date:
  • Size: 262.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for aws_case_drafter-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9e4a313f6b1c3419a529646c1ffabbf9922bca6d7b9816d1478f4c462dd706c0
MD5 58a03c89ac8a1ff8e5ac0af8fcaa77a0
BLAKE2b-256 cb9020a68f96464d5069c705c4590a6f5b847eb531b6a36caa8010de605cc6fd

See more details on using hashes here.

File details

Details for the file aws_case_drafter-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_case_drafter-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07acd95760f7a66af7cad77bdf1e3eccb9b7d7459aa18e25a8972a2408470d16
MD5 4f3938060244b699973e538804acf2e7
BLAKE2b-256 e3e34b5c5ab5c30f76197c4c3224ad682d9a4c61541ae52a5754380aa74987d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page