Skip to content

Add Datadog MCP shared workflow configuration#1649

Merged
pelikhan merged 9 commits intomainfrom
copilot/wrap-datadog-mcp-workflow
Oct 13, 2025
Merged

Add Datadog MCP shared workflow configuration#1649
pelikhan merged 9 commits intomainfrom
copilot/wrap-datadog-mcp-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 13, 2025

This PR adds a shared Datadog MCP server configuration that enables agentic workflows to interact with Datadog's observability and monitoring platform.

What's New

A new shared configuration file at .github/workflows/shared/mcp/datadog.md provides seamless integration with Datadog's monitoring, logging, metrics, and incident management capabilities. Workflows can now easily query Datadog data using natural language.

Configuration

The shared file provides:

  • Container-based deployment using mcp/datadog for easy setup
  • Environment variable configuration for API credentials (DD_API_KEY, DD_APP_KEY, DD_SITE)
  • Multi-region support with network allowlist for all Datadog regions (US, EU, GovCloud, US5, AP1)
  • Optimized documentation in XML comments to prevent inclusion in AI prompts
  • 10 available tools for comprehensive Datadog access:
    • Monitors: get-monitors, get-monitor
    • Dashboards: get-dashboards, get-dashboard
    • Metrics: get-metrics, get-metric-metadata
    • Logs: search-logs, aggregate-logs
    • Events: get-events
    • Incidents: get-incidents

Usage

Workflows can now import Datadog capabilities with a single line:

imports:
  - shared/mcp/datadog.md

Then use natural language to query Datadog:

Search for error logs in the web-app service from the last hour and summarize the most common errors.

The AI agent automatically selects and uses the appropriate Datadog tools to fetch and analyze the data.

Documentation

The configuration includes comprehensive documentation (in XML comments to avoid AI prompt pollution) with:

  • Step-by-step setup instructions for creating Datadog API keys
  • Regional endpoint configuration guide for different Datadog regions
  • Example usage patterns
  • Troubleshooting section for common issues
  • Reference to the upstream Datadog MCP server documentation

Optimization

By placing all documentation in XML comments, workflows that import this configuration are more efficient:

  • Documentation excluded from AI prompts, reducing token usage
  • Documentation still available for developers to read in the source file

Testing

  • ✅ All unit tests pass
  • ✅ All integration tests pass
  • ✅ Follows established patterns from other MCP shared files (arxiv, notion, context7)
  • ✅ Main branch merged successfully

Fixes #1648

Original prompt

This section details on the original issue you should resolve

<issue_title>Datadog mcp</issue_title>
<issue_description>/scout create a plan to wrap datadog mcp into a shared agentic workflow

https://docs.datadoghq.com/bits_ai/mcp_server/setup/</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #1648


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits October 13, 2025 20:29
- Create .github/workflows/shared/mcp/datadog.md with MCP server configuration
- Configure container-based deployment using mcp/datadog container
- Add all 10 Datadog tools (monitors, dashboards, metrics, logs, incidents, events)
- Include comprehensive documentation with setup instructions and examples
- Create datadog-query.md example workflow to demonstrate usage
- All tests passing successfully

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Add inline HTML comment documentation for consistency with other MCP files
- Include complete tool list, required secrets, and usage instructions
- Matches pattern used in arxiv.md and context7.md
- All tests passing successfully

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Create plan to wrap Datadog MCP into shared agentic workflow Add Datadog MCP shared workflow configuration Oct 13, 2025
Copilot AI requested a review from pelikhan October 13, 2025 20:35
- Rename datadog-query.md to test-datadog-query.md
- Move from .github/workflows/ to pkg/cli/workflows/
- Update import path to reference main shared directory
- All tests passing successfully

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan October 13, 2025 21:06
Copy link
Copy Markdown
Collaborator

@pelikhan pelikhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot merge main

- aggregate-logs
---

## Datadog MCP Server
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot all the documentation should be in a xml comment otherwise it will be added to the prompt.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation moved to XML comments. Workflow size reduced from 67.6 KB to 64.5 KB. (commit: will be in next merge commit)

Copilot AI and others added 2 commits October 13, 2025 22:43
- Move all markdown documentation into XML comments to prevent it from being added to AI prompts
- Merge main branch to get latest updates
- Reduce workflow size from 67.6 KB to 64.5 KB by excluding docs from prompt
- All tests passing successfully

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Oct 13, 2025

@copilot merge main

Main branch merged successfully. (included in next commit)

Copilot AI requested a review from pelikhan October 13, 2025 22:47
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot remove test agentic workflows for datadog

- Remove pkg/cli/workflows/test-datadog-query.md
- Remove pkg/cli/workflows/test-datadog-query.lock.yml
- Keep shared MCP configuration in .github/workflows/shared/mcp/datadog.md
- All tests passing successfully

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Oct 13, 2025

@copilot remove test agentic workflows for datadog

Test workflow files removed. Only the shared MCP configuration remains at .github/workflows/shared/mcp/datadog.md. (commit will be in next push)

@pelikhan pelikhan marked this pull request as ready for review October 13, 2025 23:02
@github-actions
Copy link
Copy Markdown
Contributor

Agentic Changeset Generator triggered by this pull request

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@pelikhan pelikhan merged commit 53088a0 into main Oct 13, 2025
12 of 14 checks passed
@pelikhan pelikhan deleted the copilot/wrap-datadog-mcp-workflow branch October 13, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Datadog mcp

2 participants