Lets Claude Code, Codex or Cursor read host logs, configs and processes through a restricted read-only shell under access policies, so investigations need no SSH session or prior log ingestion.
Key takeaways · AI-distilled
Datadog Agent Model Context Protocol (MCP)A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.Full definition → lets assistants such as Claude Code, Codex and Cursor read files and inspect processes on hosts running the Datadog Agent, through the Remote Actions toolset, without opening an SSH session.
Commands run in rshell, a restricted Terminal and shellA text interface for navigating files and running programs.Full definition → that supports pipes, loops and conditionals but executes purpose-built Go versions of commands like cat, grep and ps. Read-only investigations invoke no host shell or external binaries, and file writes are blocked.
Because reads happen on demand, an assistant can search local logs or config files that a team never ingested into Datadog Log Management, for example logs excluded for volume or cost.
Access is bounded by PathA description of a file or folder location, written using directory names and separators.Full definition → and command allowlists, execution policies, local Agent config, RBAC and Audit Trail logging. On Linux, Landlock restricts file access and seccomp limits the worker's system calls; the rshell code is open source.
Datadog describes write and elevated-privilege remediation, such as restarting a service or truncating a runaway log, as planned and opt-in. The feature is in preview.
Terms in this piece · Glossary
Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
Terminal and shell — A text interface for navigating files and running programs.
MCP server — A program that provides tools, resources and prompt templates to an MCP client; it may run on the same machine as the application or remotely.
Path — A description of a file or folder location, written using directory names and separators.