cdp

An MCP server that provides the CDP connection for rn-dev-agent. It starts the plugin's supervisor, which connects the assistant to React Native development and inspection tools.

In plain words
What is it for?
Use it to access rn-dev-agent's CDP tools while developing or diagnosing a React Native app.
Why use it?
It supplies the connection needed for checking app status, logs, screens, components, state, and other runtime details.

MCP server for Claude CodeCodexCursorGemini CLIOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add mcp/lykhoyda/rn-dev-agent/codex-plugin-cdp
Clone the repo
git clone --depth 1 https://github.com/Lykhoyda/rn-dev-agent

Made for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

cdp 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 2d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

"const f=require('fs'),p=require('path'),o=require('os'),c=require('child_process');const V='1.0.0';const D=x=>{try{return f.readdirSync(x).map(n=>p.join(x,n)).filter(z=>{try{return f.statSync(z).isDirectory()}catch{retu
packages/codex-plugin/.mcp.json · 10 lines

What it actually says

{
  "cdp": {
    "command": "node",
    "args": [
      "-e",
      "const f=require('fs'),p=require('path'),o=require('os'),c=require('child_process');const V='1.0.0';const D=x=>{try{return f.readdirSync(x).map(n=>p.join(x,n)).filter(z=>{try{return f.statSync(z).isDirectory()}catch{return false}})}catch{return[]}};const C=process.env.CODEX_HOME||p.join(o.homedir(),'.codex');const R=[process.env.RN_DEV_AGENT_CODEX_PLUGIN_ROOT,...D(p.join(C,'plugins','cache')).map(m=>p.join(m,'rn-dev-agent',V))].filter(Boolean);let L=null;for(const r of R){const x=p.join(r,'bin','cdp-supervisor.js');if(f.existsSync(x)){L=x;break}}if(!L){process.stderr.write('rn-dev-agent: Codex launcher not found for rn-dev-agent '+V+'\\n');process.exit(1)}const ch=c.spawn(process.execPath,[L,...process.argv.slice(1)],{stdio:'inherit',cwd:process.cwd(),env:process.env});ch.on('error',e=>{process.stderr.write('rn-dev-agent: failed to spawn Codex launcher '+L+': '+e.message+'\\n');process.exit(1)});for(const s of ['SIGTERM','SIGINT','SIGHUP'])process.on(s,()=>{try{ch.kill(s)}catch{}});ch.on('exit',(code,sig)=>{if(sig){process.removeAllListeners(sig);try{process.kill(process.pid,sig)}catch{process.exit(1)}}else process.exit(code??0)})"
    ],
    "tool_timeout_sec": 900
  }
}
Changes

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.

  1. 2d ago First seen · 10 lines scan A 25cbfb8412fb

Subscribe to this mod's changes

cdp is an MCP server published in the GitHub repository Lykhoyda/rn-dev-agent (11 stars, last pushed 2d ago), licensed MIT. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.