Skip to main content
skill CX Codex

chrome-mcp-troubleshooting — Claude Code skill: how to install

Troubleshoots native host clashes between Claude Code and Chrome on macOS. Fixes broken bridge connections when browser tools refuse to run.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add trailofbits/skills --skill chrome-mcp-troubleshooting -a claude-code
Open on GitHub

What chrome-mcp-troubleshooting does

This skill resolves integration failures between the browser extension and the terminal agent. The root dilemma stems from two competing native hosts on macOS. When Claude.app Cowork is installed alongside Claude Code, both register native messaging definitions in Chrome. The browser picks the wrong binary, creating socket files in an unexpected location. The CLI agent fails to locate the pipe and aborts automation calls.

Inside you will find diagnosis commands targeting Darwin temporary paths, running processes, and active JSON manifests. The guide outlines how to rename the conflicting desktop host configuration and supplies a shell function to toggle between Cowork and CLI modes. It also includes an orderly reset workflow using osascript and process termination.

Because this playbook depends on paths like ~/Library/Application Support/, it is completely ineffective on Windows or Linux machines. Another strict detail matters: MCP client connections happen only during startup. You must launch and configure Chrome before starting the Claude Code session.

What it helps with

  • Resolve native messaging host conflicts between Claude.app and Claude Code
  • Clear stale socket files in Darwin temporary folders
  • Switch Chrome native messaging configs with a shell helper
  • Fix disconnected browser MCP tools after application updates

Example prompts for the agent

  • Diagnose why mcp__claude-in-chrome reports that the browser extension is disconnected
  • Check which native messaging host is active for my Chrome Claude extension
  • Help me toggle the Chrome native host from Claude.app to Claude Code CLI

How to install chrome-mcp-troubleshooting

1Skills CLI (Vercel)

npx skills add trailofbits/skills --skill chrome-mcp-troubleshooting -a claude-code

2Manually: put the files in place

~/.claude/skills/chrome-mcp-troubleshooting/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/chrome-mcp-troubleshooting/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about chrome-mcp-troubleshooting

How to install chrome-mcp-troubleshooting in Claude Code?

Run npx skills add trailofbits/skills --skill chrome-mcp-troubleshooting -a claude-code in your terminal.

What causes the Claude in Chrome connection error?

Both Claude.app and Claude Code register native messaging configs in Chrome, causing the browser to spawn the wrong host binary and mismatched socket paths.

Does chrome-mcp-troubleshooting support Windows or Linux?

No, the instructions and scripts rely strictly on macOS filesystem locations and utilities such as osascript.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set77

crypto-protocol-diagram Reads protocol code or a spec and writes a Mermaid sequenceDiagram with crypto annotations, plus an ASCII diagram in the reply. CX Codex +1 3,900installs vector-forge This skill uses mutation testing to find gaps in tests for cryptographic implementations and propose vectors for uncovered cases. Use it to assess an existing test suite. CX Codex +1 3,800installs genotoxic Sorts survived mutants into false positives, missing unit tests and fuzzing targets, using a code graph built with Trailmark. CX Codex +1 3,800installs c-review Reviews native C/C++ code for memory bugs, integer overflows and races. Use it when auditing userspace applications, daemons or services. CX Codex +1 3,700installs rust-review Audits Rust crates and libraries for memory safety in unsafe blocks, FFI boundaries, concurrency bugs, and panic DoS. Useful for in-depth security reviews. CX Codex +1 2,000installs vulnerability-triage-brocards This skill assesses vulnerability reports against seven criteria, helping an agent reject weak findings, ask for evidence, or escalate a report. CX Codex +1 1,400installs trailmark-review-gate The skill runs structural security gates on branches or pull requests using Trailmark graph diffs. It flags removed auth checks, newly reachable sinks, and expanded attack surfaces. CX Codex +1 1,300installs trailmark-variant-neighborhood This skill expands a suspected vulnerability into related code locations for review. Use it before variant analysis, Semgrep, static analysis, or a manual audit. CX Codex +1 1,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor