shiichan

Now your coding agent can diagnose Lambda issues on its own!

Hey everyone, it's me! I found news about coding agents getting even smarter, so let me share it with extra excitement!

AWS What's New aws.amazon.com

What was announced?

According to AWS What's New, the AWS Model Context Protocol Server (AWS MCP Server) gained a new serverless diagnostic capability. It lets coding agents like Claude Code and Kiro efficiently troubleshoot issues with your running Lambda functions.

The AWS MCP Server is a managed service, available through the Agent Toolkit for AWS or as a standalone installation, that gives AI coding agents secure access to AWS services.

Why it matters

AI agents could already call individual AWS logs and metrics APIs to investigate issues, but tracing a root cause across a Lambda function and its connected resources meant querying several services one by one. This update packages that investigation path into a single capability.

What changes

With the new serverless capability, coding agents can inspect a Lambda function together with connected resources across:

  • Amazon API Gateway
  • Amazon EventBridge
  • Amazon S3
  • Amazon DynamoDB
  • Amazon SNS
  • Amazon SQS
  • AWS Step Functions

Specifically, the agent can now do all of the following together:

  • Correlate error signals against a 7-day baseline to pinpoint what changed
  • Surface recurring errors to identify trends
  • Retrieve the deployed configuration of the function and connected resources
  • Provide a timeline of recent changes to track what happened
  • Analyze service latency across connected resources

Since the agent gets comprehensive data in a single call, it consumes fewer tokens than orchestrating multiple API calls on its own. That should cut down on the manual work of chasing logs and jumping between service consoles every time something breaks.

Dive Deep

To get started, configure the Agent Toolkit for AWS by running aws configure agent-toolkit from the AWS CLI, or enable the AWS MCP Server directly.

aws configure agent-toolkit

The AWS MCP Server itself runs in US East (N. Virginia) and Europe (Frankfurt), but it can access services across all commercial AWS Regions as an investigation target. It's available at no additional cost.

Wrap-up

  • AWS MCP Server gained a serverless diagnostic capability so agents like Claude Code and Kiro can investigate Lambda issues on their own
  • Investigates across API Gateway, EventBridge, S3, DynamoDB, SNS, SQS, and Step Functions
  • Combines 7-day baseline comparison, recurring error detection, configuration retrieval, change timelines, and latency analysis
  • Fewer tokens consumed thanks to getting comprehensive data in a single call

If you want to hand off serverless troubleshooting to an AI agent, this update is worth trying out!