Skip to content

datadog-labs/vscode-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datadog VS Code Plugin

Query your Datadog data directly from VS Code using natural language. Ask about logs, metrics, traces, dashboards, monitors, and more.

What you need

Getting started

If you already have the Datadog MCP server registered separately (e.g., in .vscode/mcp.json), disable or remove it first to avoid conflicts.

  1. Open the Command Palette (⌘⇧P on Mac or Ctrl+Shift+P on Windows/Linux) and run Chat: Install Plugin From Source.
  2. Enter the plugin URL: https://github.com/datadog-labs/vscode-plugin
  3. When prompted to trust the plugin, select Trust.
  4. Run /ddsetup in the Copilot Chat window to connect the plugin to your Datadog account. The agent will guide you through selecting the correct Datadog MCP domain.

If you skipped setup, or want to change the domain later, run the /ddsetup command in the Copilot Chat window. The agent will guide you through it.

Using the plugin

Once connected, just ask the agent anything about your Datadog data:

Show me error logs from the last hour
What monitors are currently alerting?
Find traces for service "api-gateway" with latency > 500ms
List my dashboards

Can't connect?

Never connected before? Run the /ddsetup command in the Copilot Chat window. It will help you provide the correct Datadog MCP domain and set up the MCP server.

Was working before but stopped? Run the /ddconfig command in the Copilot Chat window. It will check your site, authentication status, and network access to help diagnose the issue.

Changing settings

The plugin provides a few commands you can run in the agent to manage configuration:

  • /ddconfig — change your Datadog site or switch organizations
  • /ddtoolsets — enable or disable groups of tools

Advanced usage

Key authentication

Instead of OAuth, you can authenticate using a Datadog API key and application key.

  1. Run /ddsetup as usual to configure the MCP domain.

  2. Set the following environment variables before starting VS Code:

    export DD_API_KEY=your-api-key
    export DD_APPLICATION_KEY=your-application-key
  3. Restart VS Code (or reload the MCP server via MCP: List Servers → Restart Server). The server will use the API keys instead of prompting for OAuth.

On macOS, launch VS Code from the terminal after exporting the variables, or use a launcher that inherits your shell environment.

Good to know

  • By default, authentication is handled via OAuth in your browser. Key authentication is also supported.
  • No Datadog credentials are sent to the AI model provider.

Support

Legal

See the LICENSE and NOTICE files included with this plugin.

For details on how Datadog handles your data, see the Datadog Privacy Policy.

About

Home of the Datadog Plugin for Copilot & VS Code

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Contributors