monitoring
Datadog MCP Integration for Codex
Connect Datadog to Codex through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Datadog to Codex
Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy.
Register kosmo mcp:serve as a local stdio server and choose the integration allowlist. The gateway is local, scoped to this integration, and starts with
--write=deny so Codex can inspect read-capable tools without receiving write access by default.
Datadog MCP Config for Codex
Keep write access denied or ask-based unless the workspace is trusted.
{
"mcpServers": {
"kosmokrator-datadog": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=datadog",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=datadog --write=deny Why Use KosmoKrator Here
Expose only Datadog instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Datadog Tools Visible to Codex
Codex sees stable MCP tool names generated from the Datadog integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__datadog__datadog_list_monitors | datadog.datadog_list_monitors | Read | List Datadog monitors. Optionally filter by name or tags. Returns monitor IDs, names, types, states, and query definitions. |
integration__datadog__datadog_get_monitor | datadog.datadog_get_monitor | Read | Get full details of a specific Datadog monitor by ID. Returns the monitor query, thresholds, message, and current state. |
integration__datadog__datadog_create_monitor | datadog.datadog_create_monitor | Write | Create a new Datadog monitor. Specify the monitor type, query, name, and optional message and thresholds. Common types: "metric alert", "service check", "event alert". |
integration__datadog__datadog_update_monitor | datadog.datadog_update_monitor | Write | Update an existing Datadog monitor. Provide the monitor ID and the fields to update (name, query, message, options, tags, etc.). |
integration__datadog__datadog_delete_monitor | datadog.datadog_delete_monitor | Write | Delete a Datadog monitor by ID. This action is permanent and cannot be undone. |
integration__datadog__datadog_query_metrics | datadog.datadog_query_metrics | Read | Query Datadog metrics between two timestamps. Use Datadog query syntax (e.g., "avg:system.cpu.user{env:production} by {host}"). Returns time series data points. |
integration__datadog__datadog_list_dashboards | datadog.datadog_list_dashboards | Read | List all Datadog dashboards. Returns dashboard IDs, titles, descriptions, and modification dates. |
integration__datadog__datadog_get_dashboard | datadog.datadog_get_dashboard | Read | Get full details of a specific Datadog dashboard by ID. Returns the dashboard layout, widgets, and template variables. |
integration__datadog__datadog_post_event | datadog.datadog_post_event | Write | Post an event to the Datadog event stream. Specify title, text, priority, tags, and alert type. Events appear in the event timeline. |
integration__datadog__datadog_get_current_user | datadog.datadog_get_current_user | Read | Get the currently authenticated Datadog user. Useful for verifying credentials and identifying the connected account. |