Borrowing it
Nothing to install: this file belongs to sushilti80/datadog-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sushilti80/datadog-mcp/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/sushilti80/datadog-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/sushilti80/datadog-mcp/copilot-instructions)<a href="https://agentmods.dev/instructions/sushilti80/datadog-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/sushilti80/datadog-mcp/copilot-instructions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/sushilti80/datadog-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/sushilti80/datadog-mcp/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02347 | $0.02347 |
| Opus 5.5 | $0.00939 | $0.00939 |
| Sonnet 5.5 | $0.00469 | $0.00469 |
| Haiku 4.5 | $0.00235 | $0.00235 |
Grade A, and why
datadog-mcp copilot-instructions.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl http://localhost:8080/health How it starts
The opening of the file, as written. The whole thing — 286 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Datadog MCP Server - AI Agent Instructions
Architecture Overview
This is a FastMCP-based Model Context Protocol (MCP) server that exposes Datadog observability APIs to AI agents. The architecture centers on two core systems:
- FastMCP Server (
src/datadog_mcp_server.py) - HTTP+SSE transport server with tools, resources, and prompts - Key Rotation System (
src/key_rotation.py) - Intelligent multi-key management for rate limit avoidance
Key Components
- DatadogMCPServer class: Main server with
_execute_with_key_rotation()wrapper for all API calls - KeyPoolManager: Manages 3-5 API key pairs with 5 rotation strategies (adaptive, round_robin, LRU, weighted, random)
- Circuit Breaker: Automatically isolates problematic keys after configurable failure threshold
- Debug System: Enum-based debug levels (NONE/INFO/DEBUG/TRACE) with correlation IDs and sensitive data masking
Critical Pattern: DD_SITE Must Always Come From Environment
NEVER hardcode Datadog site values. Always use environment variables:
# ✅ CORRECT - Always read from environment
site = os.getenv("DD_SITE") or os.getenv("DATADOG_SITE") or "us3.datadoghq.com"
# ✅ For numbered keys
site = os.getenv(f"DD_SITE_{i}") or os.getenv(f"DATADOG_SITE_{i}") or "us3.datadoghq.com"
# ❌ NEVER do this
site = "datadoghq.com" # Wrong - hardcoded value
The default fallback us3.datadoghq.com should only appear in environment loading functions (load_keys_from_environment() in key_rotation.py), never in API client configuration.
Development Workflows
Running the Server
# Local development - reads .env file automatically
python3 src/datadog_mcp_server.py
# With debug tracing
MCP_DEBUG_LEVEL=TRACE python3 src/datadog_mcp_server.py
# Check server health on port 8080
curl http://localhost:8080/health
Testing
# Run all tests including key rotation
pytest tests/ -v
# Run specific test suite
pytest tests/test_key_rotation.py -v
# Test with coverage
pytest tests/ --cov=src --cov-report=html
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 286 lines · 2,347 tokens per session scan A 99f733c366ef
datadog-mcp copilot-instructions.md is an instructions file published in the GitHub repository sushilti80/datadog-mcp (2 stars, last pushed 4mo ago), licensed MIT. It adds 2,347 tokens to every session, about $0.0094 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
datadog-mcp copilot-instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| datadog-mcp copilot-instructions.mdsushilti80/datadog-mcp | Instructions file | 2 | 4mo ago | MIT | A | 2,347 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |