npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@datadog/opencode-plugin

v0.7.13

Published

Use Datadog directly in OpenCode through a preconfigured Datadog MCP server. Query logs, metrics, traces, dashboards, and more through natural conversation. This plugin is in preview.

Readme

This plugin is currently in Preview.

Datadog OpenCode Plugin

Query your Datadog data directly from OpenCode 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 in your opencode.json, disable or remove it first to avoid conflicts.

1. Add the plugin to your opencode.json (create the file if it doesn't exist):

{ "plugin": ["@datadog/opencode-plugin"] }

If you already have a plugin array, add "@datadog/opencode-plugin" to the existing list.

2. Restart OpenCode.

OpenCode runs bun install at startup, so the package is fetched from npm automatically — no separate install command needed.

The plugin provides three custom tools (ddsetup, ddconfig, ddtoolsets) that the agent can use to manage the Datadog MCP server.

Before you can start querying your Datadog data, the agent needs to set up the connection. Ask any Datadog-related question or tell the agent to run ddsetup — it will guide you through selecting your Datadog site and write the MCP server configuration to opencode.json.

After setup, restart OpenCode to activate the MCP server and complete authentication when prompted.

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? Tell the agent to run ddsetup. It will configure the Datadog MCP server in your opencode.json.

Was working before but stopped? Tell the agent to run ddconfig. It will check your domain, authentication status, and help diagnose the issue.

Changing settings

The plugin provides tools the agent can use to manage configuration:

  • ddconfig — change your Datadog site, or troubleshoot a broken connection
  • 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. Add the MCP server entry to your opencode.json manually with OAuth disabled:

{
  "mcp": {
    "datadog": {
      "type": "remote",
      "url": "https://mcp.datadoghq.com/api/unstable/mcp-server/mcp",
      "oauth": false,
      "headers": { "DD_API_KEY": "{env:DD_API_KEY}", "DD_APPLICATION_KEY": "{env:DD_APPLICATION_KEY}" }
    }
  }
}

Set the environment variables before starting OpenCode:

DD_API_KEY=your-api-key DD_APPLICATION_KEY=your-application-key opencode

Replace the MCP domain in the URL if your organization uses a different Datadog site (e.g. mcp.datadoghq.eu for EU).

Environment variable overrides

OpenCode supports {env:VARIABLE_NAME} substitution anywhere inside opencode.json — you can hand-edit the mcp.datadog entry to read values from the environment (for example, to swap the MCP domain per shell session). This is a manual workflow: the plugin's ddsetup, ddconfig, and ddtoolsets tools always write concrete values, so if you want {env:…} placeholders you need to add them yourself and they will be preserved across surgical edits (comments and unrelated keys are preserved too).

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.