AWS Builder Center
Integrating Amazon Kiro with Dynatrace MCP Server: A Complete Guide

Integrating Amazon Kiro with Dynatrace MCP Server: A Complete Guide

By integrating Amazon Kiro with Dynatrace MCP server, you can leverage powerful AI-assisted monitoring and troubleshooting capabilities directly in your development workflow.

Integrating Amazon Kiro with Dynatrace MCP Server: A Complete Guide

Introduction

In today's cloud-native environment, having real-time observability data at your fingertips is crucial. By integrating Amazon Kiro with Dynatrace MCP server, you can leverage powerful AI-assisted monitoring and troubleshooting capabilities directly in your development workflow. In this blog, we will integrate Kiro with both  Dynatrace Open Source local MCP  and also with  Dynatrace Remote MCP .

Prerequisites

  1. Have a Dynatrace account or get a free  15-day trial .
  1. Amazon  Kiro  installed on your system
  1. Basic familiarity with AWS services and Dynatrace platform

Walking through the Kiro MCP installation process

MCP configuration in Kiro is managed through JSON files. The interface supports two levels of MCP configuration:
  1. User configuration: ~/.kiro/settings/mcp.json – Applies to all workspaces
  1. Workspace configuration: .kiro/settings/mcp.json – Specific to the current workspace

Step-by-Step Integration Guide

1.Configure Dynatrace MCP Server

  1. First, set up your Dynatrace Platform Token as mentioned  here 
  1. Add the needed scopes as mentioned  here .

2. Configure Kiro MCP Settings

Method 1: Command Palette1.
Open command palette:
  • Mac: Cmd + Shift + P
  • Windows/Linux: Ctrl + Shift + P
Search "MCP" and select:
  • Kiro: Open workspace MCP config (JSON) - For workspace-level
  • Kiro: Open user MCP config (JSON) - For user-level
Method 2: Kiro Panel
  1. Open Kiro
  1. Click on the Kiro ghost icon to open the left side panel
  1. Locate the MCP SERVERS section
  1. Click the "Open MCP Config" button
  1. Add the following configuration for Dynatrace MCP Server
Note :- Only use one of the following configuration and not both at the same time.
Open Source Local MCP Server:
  • Update the url by replacing $TENANT_ID with your TenantID(e.g., https://abc12345.apps.dynatrace.com)
JSON
{
"mcpServers": {
"dynatrace-mcp-server": {
"command": "npx",
"args": ["-y", "@dynatrace-oss/dynatrace-mcp-server@latest"],
"env": {
"DT_ENVIRONMENT": "https://$TENANT_ID.apps.dynatrace.com"
}
}
}
}
Dynatrace Remote MCP Server:
  • Update the url by replacing $TENANT_ID with your TenantID(e.g., https://abc12345.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp)
  • Update Authorization with $DT_PLATFRORM_TOKEN(e.g., dt0s16.XXXXX)
JSON
{
"mcpServers":
{
"dynatrace": {
"type": "http",
"url": "https://$TENANT_ID.apps.dynatrace.com/platform-reserved/mcp-gateway/v0.1/servers/dynatrace-mcp/mcp",
"headers": {
"Authorization": "Bearer $DT_PLATFORM_TOKEN"
},
"tools": ["*"]
}
}
}

3. Verify Integration

Kiro offers a chat panel where you can interact with your code through natural language conversations. Just tell Kiro what you need.

Natural Language Queries

You can now use natural language to:-
  1. Monitor application performance
  1. Investigate incidents
  1. Analyze metrics and traces
  1. Access real-time production data

Advanced Features

  1. Create custom dashboards with Dynatrace metrics
  1. Set up automated alerts
  1. Analyze application dependencies- Access detailed performance metrics

Best Practices

1. Always use secure token management
2. Implement proper access controls
3. Regularly update both Kiro and Dynatrace components
4. Monitor API usage and performance

Conclusion

This integration brings together the power of Amazon Kiro's AI capabilities with Dynatrace's comprehensive observability platform, enabling developers to access critical monitoring data through natural language queries and automated workflows.The setup process is straightforward, but the benefits are substantial: real-time insights, improved troubleshooting capabilities, and enhanced development workflows, all accessible through natural language interaction.Remember to maintain security best practices and regularly update your configurations to ensure optimal performance and security.

Resources

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article