# Integration Tests
This directory contains integration tests that make actual API calls to Dynatrace services. These tests are designed to verify the functionality of the MCP server against a real Dynatrace environment.
## Prerequisites
Before running integration tests, ensure you have:
**Environment Variables Set Up:**
- `OAUTH_CLIENT_ID` - Your Dynatrace OAuth client ID
- `OAUTH_CLIENT_SECRET` - Your Dynatrace OAuth client secret
- `DT_ENVIRONMENT` - Your Dynatrace environment URL (e.g., `https://abc123.apps.dynatrace.com`)
- `DT_PLATFORM_TOKEN` - (Optional) Your Dynatrace platform token
For required OAuth scopes, refer to the main README.md file.
## Running Tests
Run all integration tests:
```bash
npm run test:integration
```
Run specific test suite:
```bash
# DQL tests
npm test -- integration-tests/execute-dql.integration.test.ts
# Davis CoPilot tests
npm test -- integration-tests/davis-copilot-explain-dql.integration.test.ts
# Email tests
npm test -- integration-tests/send-email.integration.test.ts
```
## Important Notes
- **Rate Limiting**: Tests include delays between API calls to avoid rate limits
- **Real Environment**: These tests make actual API calls and may incur costs
- **Email Testing**: Email tests send actual emails to test addresses
- **Credentials**: Ensure your OAuth client has all required scopes enabled
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dynatrace-oss/dynatrace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server