Kiro IDE MCP Server - Quick Start Guide
What You'll Get
Ask questions in plain English directly in Kiro IDE:
- "Which model is consuming the most tokens?"
- "What's the average latency for Claude Haiku?"
- "Estimate my LLM costs for the last hour"
No need to switch to dashboards or write complex queries!
Step 1: Configure MCP Server in Kiro
Option A: Use Workspace Configuration (Recommended)
-
Create the MCP config directory:
mkdir -p .kiro/settings -
Copy the MCP configuration:
cp AI-OBS_DEMO/kiro-mcp-config.json .kiro/settings/mcp.json -
Update the path in the config (if needed): Open
.kiro/settings/mcp.jsonand verify the path tocloudwatch_mcp_server.pyis correct:{
"mcpServers": {
"ai-observability": {
"command": "python3",
"args": [
"/path/to/mcp-server/cloudwatch_mcp_server.py"
],
"env": {
"AWS_REGION": "your-aws-region"
},
"disabled": false,
"autoApprove": []
}
}
}
Option B: Use User-Level Configuration (Global)
-
Create the user config directory:
mkdir -p ~/.kiro/settings -
Copy the configuration:
cp AI-OBS_DEMO/kiro-mcp-config.json ~/.kiro/settings/mcp.json
Step 2: Verify AWS Credentials
The MCP server needs AWS credentials to query CloudWatch:
# Check your AWS credentials are configured
aws sts get-caller-identity
# Should show:
# {
# "UserId": "...",
# "Account": "<your-account-id>",
# "Arn": "arn:aws:iam::<your-account-id>:user/<your-username>"
# }
If not configured, set up AWS credentials:
aws configure
# Enter your AWS Access Key ID
# Enter your AWS Secret Access Key
# Default region: your-aws-region
# Default output format: json