Local Dev Bridge MCP
The schema is stale v2: it exposes file/shell tools, while the README says the current v3 server actually provides Herdr control and a UAT queue.
From the schema (legacy v2): read files, write/overwrite files, exact-text edit files, list directories, run shell commands, and recursively search file contents.
From the README (actual v3): control Herdr panes — list/read/type into panes, run commands with Enter, submit bridge-typed text, answer pickers, clear stuck agent input, and wait for agent status.
From the README (actual v3): manage a UAT queue — queue tests, list pending tests, get a test, atomically claim it, complete it with results, retrieve results, reset tests, and view a dashboard.
Important mismatch: v3 has no file or shell tools; use Claude Desktop/Cowork “Add folder” or Claude Code built-ins instead. The schema also omits all current
herdr_*anduat_*tools, so it does not describe the current server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Local Dev Bridge MCP read the package.json file in my current project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local Dev Bridge MCP v3
A small MCP server that does the two things nothing else on the Mac does:
Herdr control — list, read, type into, submit, answer pickers in, and wait on Herdr agent panes on this Mac.
UAT queue — a file-based work queue where coding sessions author browser tests and browser sessions (Cowork + Claude in Chrome) claim, run, and report them.
It has no file or shell tools any more. See Pairing model.
Pairing model
Native bridge for files and shell. This bridge for Herdr and UAT.
Need | Claude Desktop / Cowork | Claude Code |
Read / write / edit / search files | Native device bridge — Add folder (connect | Built-in |
Run shell commands | Native device bridge ( | Built-in |
Drive Herdr panes | this bridge ( | this bridge or |
UAT queue | this bridge ( | this bridge ( |
Why: the v2 file tools ran any command anywhere on the host as the operator, with no approval gate and absolute-path escape. The native bridge's per-folder grant is the right control for raw file/shell work.
Related MCP server: copilot-studio-code
Setup
git clone https://github.com/talentedmrweb/local-dev-bridge-mcp.git
cd local-dev-bridge-mcp
npm installOne-shot (macOS): ./install-commander.sh runs npm install --omit=dev, then registers local-dev-bridge in Claude Desktop (absolute node path, backs up claude_desktop_config.json first) and in Claude Code (user scope). After that, quit and reopen Claude Desktop.
Requires Node ≥ 18 and, for the Herdr tools, Herdr at /opt/homebrew/bin/herdr (Apple Silicon) or /usr/local/bin/herdr (Intel). The UAT tools work without Herdr.
Configuration
One setting:
Variable | Default | Description |
|
| Where the UAT queue lives. A leading |
PROJECTS_DIR is gone (it only scoped the removed file tools). It is ignored if still set.
Claude Desktop / Cowork
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"local-dev-bridge": {
"command": "node",
"args": ["/Users/you/Projects/local-dev-bridge-mcp/index.js"],
"env": {
"UAT_DIR": "/Users/you/Projects/uat-queue"
}
}
}
}Then, in each Cowork session that needs files, use Add folder to connect ~/Projects (or just the project folder).
Claude Code
claude mcp add local-dev-bridge -s user -e UAT_DIR=$HOME/Projects/uat-queue -- node $HOME/Projects/local-dev-bridge-mcp/index.jsor in .mcp.json / ~/.claude.json:
{
"mcpServers": {
"local-dev-bridge": {
"command": "node",
"args": ["/Users/you/Projects/local-dev-bridge-mcp/index.js"],
"env": { "UAT_DIR": "/Users/you/Projects/uat-queue" }
}
}
}Allow-list entries for .claude/settings.local.json → permissions.allow:
mcp__local-dev-bridge__uat_queue_test mcp__local-dev-bridge__herdr_agent_list
mcp__local-dev-bridge__uat_get_pending mcp__local-dev-bridge__herdr_agent_read
mcp__local-dev-bridge__uat_get_test mcp__local-dev-bridge__herdr_agent_send
mcp__local-dev-bridge__uat_claim_test mcp__local-dev-bridge__herdr_pane_run
mcp__local-dev-bridge__uat_complete_test mcp__local-dev-bridge__herdr_wait
mcp__local-dev-bridge__uat_get_results
mcp__local-dev-bridge__uat_reset_test
mcp__local-dev-bridge__uat_dashboardHerdr tools act on the Mac the server runs on. If the server is launched over SSH on another machine, herdr_* sees that machine's panes and the UAT tools see that machine's queue.
Tools (16)
Herdr
Tool | Runs | Notes |
|
| Pane id, status, agent, title, cwd |
|
| Defaults |
|
| Literal text, no Enter. Guarded (below) |
|
| Single-line command + Enter. Guarded (below) |
|
| Enter only, and only to submit text this bridge typed into that pane via |
|
| Answers a Claude Code AskUserQuestion picker. Keys: |
|
| Frees a pane jammed by an agent's stuck input line. |
|
|
|
Implementation: The first of /opt/homebrew/bin/herdr, /usr/local/bin/herdr that exists is spawned with an argv array — no shell — and only six subcommands are allowed (agent list, pane read, pane send-text, pane run, agent wait, pane send-keys) (no start, attach, server, config, …). Targets must match [A-Za-z0-9][A-Za-z0-9_:.-]*, so they can never be parsed as flags. 30 s default timeout.
The un-sent-line rule
herdr_agent_send and herdr_pane_run first read the target pane. If its input line already holds text the operator typed but has not sent, the call is refused with that text in the error — the bridge never types over it:
{ "error": { "code": "unsent_operator_text",
"message": "Refused: the input line in w3:p1 already holds un-sent text. Not typing over it.",
"details": { "target": "w3:p1", "unsent_text": "ship it", "pane_kind": "claude" } } }Detection (lib/unsent.js):
Claude Code panes — the
❯line inside the input box (between the two horizontal rules). Claude Code draws its own prompt suggestions (e.g.Try "fix typecheck errors", or a suggestedship it) as dim ghost text; those are not operator input and do not block. Anything rendered non-dim does.Shell panes — the last non-blank line is a prompt (
user@host … %/$/#, or a bare$/%/❯) followed by text.Anything else is treated as empty. If refused, ask the operator to send or clear the line; there is no override.
Submit and picker guards (lib/guards.js)
herdr_pane_submit: the server remembers, in memory, the last text it typed into each pane withherdr_agent_send. Enter is pressed only if that record is under 5 minutes old and the pane's input line holds exactly that text (whitespace and wrapping ignored), or it still shows exactly what it showed once the bridge's send settled. Claude Code collapses long input into[Pasted text #N]placeholders or a truncated tail, so right aftersend-textthe bridge reads the input box until two reads 250 ms apart agree and keeps that snapshot. Any keystroke, edit, clear or expand since then changes the rendering, so the snapshot no longer matches and the submit is refused. Each refusal has its own code:not_bridge_text(no record, or the line differs, e.g. the operator typed or edited it),submit_window_expired,nothing_to_submit(empty line or dim suggestion only),approval_prompt. Records are cleared on submit and byherdr_pane_run, and are lost on restart (fail closed). So the operator's own un-sent text can never be submitted.herdr_pane_keys: only the active prompt block is judged: the last dialog footer (Esc to cancel/Enter to select|confirm/Tab to amend) plus the 14 non-blank lines above it. Old scrollback doesn't count, so busy panes work. In that block it refuses withapproval_prompton the permission footerTab to amend, or onDo you want to,allow,permission,trust this folderordon't ask again(case-insensitive). It refuses withno_pickerunless the block carries the AskUserQuestion footerEnter to select, soEnter/Esccan't submit operator text or interrupt a working agent. Any other key:key_not_allowed. A picker whose own options mention "allow" is refused too, which is deliberate (fail safe).
Clearing an agent's stuck line (v3.3.0)
herdr_agent_send and herdr_pane_submit won't touch text they didn't type, so a pane can stay jammed for days when another agent's message sits un-sent in it. herdr_pane_clear_agent_text frees it without the operator, but only when the text is provably agent-written:
Provenance | clear (Ctrl-U) | submit (Enter) |
Ledger: a bridge ( | ✅ | ✅ |
| ✅ | ✅ |
Prefix: the line starts with | ✅ | ❌ |
Neither: treated as the operator's own text | ❌ | ❌ |
Refused on any dialog:
approval_prompt(permission, approval or trust prompt) orprompt_showing(picker). Also refused withnot_claude_paneandnothing_to_clear.Claude Code's Ctrl-U deletes one wrapped screen line, so
clearpresses it repeatedly, re-reading after each press. It stops withclear_divergedif the line ever holds anything other than what's left of the agent's text (someone typed),clear_stalledon no progress, orprompt_showingif a dialog pops up. The cap is 40 presses.The result always carries the full text, so nothing is lost. Run
dry_run: truefirst.
Long and wrapped sends (v3.3.1). Claude Code shows a long send as [Pasted text #N] plus its last lines, or as only the box's last lines, so the input line rarely equals the full text. After a no-Enter send, herdr_agent_send and agent-send.mjs --no-enter read the box until two reads 250 ms apart agree (max ~3 s) and also log the hash of that settled rendering, so a later clear or submit matches it. Any keystroke since the send changes the rendering, so nothing typed by the operator matches. The input-box detector also accepts the labeled rule Claude Code 2.1.32x draws above the box for a named session (──── scout:scout ─). Before v3.3.1 that rule made the pane read as having no input box at all.
Agent-send ledger (lib/ledger.js): $LDB_STATE_DIR/agent-sends.jsonl (default ~/.local/state/local-dev-bridge, mode 600). Each entry holds time, pane, kind (send / run / clear / submit), via, from, length and sha256 hashes: one of the text, plus (no-Enter sends) one of what the input line showed once the send settled. The text itself is never stored. Ledger write failures are logged, never thrown (fail closed: no record means no clear by ledger). Pane agents log their own sends with:
node ~/Projects/local-dev-bridge-mcp/bin/agent-send.mjs --from "p5 Benchmark/Data" [--no-enter] <pane> <text…>It refuses (exit 3) if the target already holds un-sent text.
UAT queue
Tool | Description |
| Queue a test (name, http/https URL, steps, tags, priority, context) |
| List pending tests (filter by tag/priority), critical first |
| Full test by ID from any queue directory |
| Atomic claim (pending → in-progress via |
| Record pass/fail/blocked/skipped with per-step results (in-progress → results) |
| One result by ID, or a list filtered by status / |
| Move a test from in-progress or results back to pending |
| Counts by state, priority, and result; pass rate |
Hardening in v3:
Path confinement — every file lives under
UAT_DIR.test_idmust match[a-z0-9-]{1,100};../,/abs/path, dots and slashes are refused withinvalid_test_id. Queue files that are symlinks are refused.screenshot_path(stored data) must be relative with no..,~, or absolute path.Atomic state moves — claim, complete, and reset each start with a single
rename, so two sessions cannot both win. Writes go temp file →rename.Validated input — step
actionmust be a supported action; enums, types, andstep_indexrange are checked.Structured errors, never a stack trace — every failure is
isError: truewith{"error": {"code", "message", "details?"}}. Codes:invalid_test_id,invalid_argument,invalid_steps,path_not_allowed,not_found,already_claimed,already_completed,already_pending,not_claimed,corrupt_queue_file,unsent_operator_text,invalid_target,herdr_unavailable,herdr_failed,herdr_timeout,unknown_tool,internal_error.
Workflow
Claude Code ──uat_queue_test──► pending/ ──uat_claim_test──► Cowork + Chrome
▲ │
└──────uat_get_results◄── results/ ◄──uat_complete_test──────┘Test format (unchanged from v2)
{
"id": "login-flow-happy-path-a1b2c3d4",
"name": "Login flow happy path",
"url": "http://your-app.lab/login",
"priority": "high",
"tags": ["auth", "smoke"],
"context": "Just refactored the auth middleware — verify login still works",
"steps": [
{ "action": "type", "target": "#email", "value": "test@example.com", "description": "Enter email" },
{ "action": "click", "target": "button[type='submit']", "description": "Submit" },
{ "action": "assert_url", "value": "/dashboard", "description": "Lands on dashboard" }
],
"created_at": "2026-04-06T12:00:00.000Z",
"created_by": "claude-code",
"status": "pending"
}Supported actions: navigate, click, type, select, scroll, wait, assert_visible, assert_text, assert_url, screenshot, custom.
Queue layout (unchanged)
uat-queue/
├── pending/ tests waiting to run (id.json + id.md)
├── in-progress/ claimed tests
├── results/ completed tests with outcomes
└── archive/ old results (manual)Liveness canary (v3.4.0, WO-CMD-8)
Every tool call writes a stamp under ~/.local/state/local-dev-bridge/ (mode 600, atomic rename):
{"at": ISO time, "epoch": seconds, "tool": "<name>", "pid": n}. It holds the tool name only, never arguments.
last-call.desktop: written when Claude Desktop launched this bridge (its parent isClaude.app/Contents/Helpers/disclaimer). STEWARD's calls take this path.last-call.other: written for any other client, such as Claude Code panes. A busy pane can't keep the Desktop stamp fresh.
LDB_STATE_DIR overrides the directory; LDB_CALLER=desktop|other overrides the detection. A write failure is swallowed, so the tool call still runs.
The COMMANDER watchdog (mini-cluster/scripts/commander-watchdog.sh) alerts when last-call.desktop goes stale.
This catches the 2026-11-05 failure: Desktop reconnected the bridge after a renderer reload but never re-announced
its tools to the cloud session, so every process looked healthy while STEWARD had no bridge.
UAT worker (headless queue consumer)
worker/uat-worker.mjs drains the queue without a human-driven session. It is the GHOST consumer (COMMANDER keeps its interactive ~/Projects/uat-worker session).
Queue access: listing
pending//in-progress/is read-only; every claim / complete / reset goes through this MCP server (spawned over stdio). Atomic claims mean it can coexist with other claimers.Browser: launches (or attaches to) this Mac's Chrome on
127.0.0.1:9333with its own profile~/.chrome-claude/uat-worker(headless by default) and drives it over CDP.Steps:
navigate,click,type,select,scroll,wait,assert_visible,assert_text,assert_url,screenshotrun deterministically (no LLM).customsteps needUAT_AGENT=claude(headlessclaude -plimited to chrome-devtools-mcp tools); withUAT_AGENT=off(default) they are skipped and the test is markedblocked.Ops: singleton lock
$UAT_DIR/.worker.lock; writes$UAT_DIR/.status.jsonevery tick (same schema as COMMANDER's status pusher); reaps tests stuck in-progress > 15 min back to pending; infra failures (Chrome down) give the test back instead of failing it; 3 in a row → 5 min backoff.Flags:
--once,--dry-run(claims nothing),--only <id-prefix>,--loopback-only.
./launchd/install.sh # render + lint plist, worker --dry-run (changes nothing)
./launchd/install.sh --load # install ~/Library/LaunchAgents/com.22ndventures.uat-worker.plist + bootstrap
./launchd/install.sh --status # state + log tail (~/Library/Logs/uat-worker/)
./launchd/install.sh --unload # rollback
node test/worker-smoke.mjs # loopback smoke against the real queue: queue → claim → complete → resultsMigrating from v2
File tools are gone:
read_file,write_file,edit_file,list_directory,search_files,run_command. In Desktop/Cowork, connect a folder with Add folder instead; in Claude Code, use the built-in tools.Herdr via
run_command→ dedicated tools:herdr agent list|read|send,herdr pane run,herdr agent waitmap toherdr_agent_list|read|send,herdr_pane_run,herdr_wait. Other Herdr subcommands are not exposed.Config: drop
PROJECTS_DIR; keepUAT_DIR(its default moved from$PROJECTS_DIR/uat-queueto~/Projects/uat-queue).Permissions: remove
mcp__local-dev-bridge__{read_file,write_file,edit_file,list_directory,search_files,run_command}from allow lists; add the fivemcp__local-dev-bridge__herdr_*.Errors: error text is now a JSON object (
error.code) instead ofError: <message>.Rollback:
git checkout v2.0-pre-slim, restorePROJECTS_DIR, restart the client.
Testing
node test/guards.mjs # submit/picker guards vs captured Claude Code screens (test/fixtures)
node test/clear-agent-text.mjs # clear-agent-text guards, ledger, wrapped/long sends (v3.3.1)
UAT_DIR=~/Projects/uat-queue node test/regression.mjs <scratch-pane-id> # full UAT + Herdr pass over MCP stdio
node test/call.mjs uat_dashboard '{}' # one-off tool callregression.mjs leaves one skipped result (tag bridge-smoke) in results/. Give it a scratch shell pane (e.g. herdr pane split <pane> --direction down --no-focus) — it types into it. herdr_wait needs an agent pane, so test it against a scratch Claude Code session.
License
MIT
Available Tools
6 toolsedit_fileC
Edit a file by replacing specific text. The old_text must match exactly (including whitespace).
Inputs: path (required), old_text (required), new_text (required).
list_directoryC
List files and directories in a given path
Inputs: path (required).
read_fileB
Read the contents of a file from the local file system. Use this to view existing code files.
Inputs: path (required).
run_commandB
Execute a shell command in the projects directory. Use for running npm install, git commands, tests, etc.
Inputs: command (required), cwd.
search_filesC
Search for text within files in a directory (recursive)
Inputs: query (required), path, file_pattern.
write_fileA
Create or overwrite a file with new content. Use this to create new files or completely replace existing ones.
Inputs: path (required), content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: edit_file modifies specific text in files, list_directory shows directory contents, read_file reads file contents, run_command executes shell commands, search_files searches text across files, and write_file creates or overwrites files. The descriptions clearly differentiate their functions, making misselection unlikely.
All tool names follow a consistent verb_noun pattern with snake_case (e.g., edit_file, list_directory, read_file). There are no deviations in naming conventions, making the set predictable and easy to understand at a glance.
With 6 tools, this server is well-scoped for local development tasks. Each tool earns its place by covering essential file operations (read, write, edit, search, list) and command execution, without being overly sparse or bloated for the domain.
The tool surface provides strong coverage for local development workflows, including file CRUD operations (read, write, edit), directory listing, file searching, and command execution. A minor gap is the lack of file deletion or move/copy operations, but agents can work around this using run_command for such tasks.
Maintenance
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Your own computer's files from ChatGPT or Claude: folder rules, confirmations and undo.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Related MCP Servers
- AlicenseAqualityDmaintenanceAllows Claude to execute terminal commands on your computer and perform file system operations including surgical code editing with diff-based replacements.197MIT
- AlicenseNot gradedqualityNot gradedmaintenanceGives a Microsoft Copilot Studio agent Claude-Code-style tools to read, edit, search, and run shell commands against your local filesystem.22MIT
- FlicenseBqualityDmaintenanceEnables local file reading and writing for your project via Claude Desktop, with tools to read, write, and list files in a specified root path.71-
- FlicenseNot gradedqualityBmaintenanceEnables Claude Desktop or other MCP clients to execute shell commands, read/write files, and list directories on the local machine. Includes basic safety guardrails to block obviously destructive operations.-