DEV Community

Cover image for Show DEV: I Built a Zero-Knowledge MCP Bridge to Let Claude.ai Edit My Local Codebase Safely

Show DEV: I Built a Zero-Knowledge MCP Bridge to Let Claude.ai Edit My Local Codebase Safely

QuantumTechCoder on December 04, 2026

If you use claude.ai in the browser for coding, you already know the workflow tax: ask Claude for a refactor, wait for the artifact, copy the file,...
Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Whats the next update we should add to this? Adding command execution?
Let me know in the comments!

P.S: @effessdev Bro, I know this feels like I'm copying your ReptClip, but uh the reality is that I saw your ReptClip project after I was halfway done through LocalWriteAgent-MCP.

Collapse
 
effessdev profile image
EffessDev Necoz •

No no no hehe this is completely fine 😊 Its purpose is quite different from ReptClip. We are deliberately not adding these kinds of features to it because we need it to be compatible with any chatbot with zero setup! Continue building!!! 🔥

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Ha ha, I just aimed for frontier models - those always have MCP server linking configurations in settings 😁

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Yeah yeah I understand! This project is different from ReptClip! It's made for clipboard only! ⚡ Zero setup, just install and use!

Thread Thread
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Zero setup? ReptClip definitely
Autonomy + Frontier model? LocalWriteAgent
🤣
P.S: star the project on github, im kinda star-less 🤣

Thread Thread
 
effessdev profile image
EffessDev Necoz •

Ok I'll star the project 😄 Please start ReptClip as well if you haven't already :)

Collapse
 
csm18 profile image
csm Necoz •

Detailed tutorial! Great read!

One small suggestion, please put the link to the repo at top of the article also.

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Uh bro, just read till the bottom 🤣

Collapse
 
csm18 profile image
csm Necoz •

Hey man read it till the bottom, thats why able to see there is a link 😂
Normally people like to get the link first, so if its present at the top, it will get more reach and likes 😄

Thread Thread
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Alr👍

Collapse
 
franklinfranklin profile image
Franklin •

Hey, If you're building or configuring MCP servers, we maintain a free, open-source catalog of verified MCP tools with 1-click configuration schemas for Claude and Cursor:

• Discovery Manifest: agents.techuis.nl/.well-known/mcp....
• Full Directory & Benchmarks: agents.techuis.nl/api/mcp/registry...

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Please add this in !
😁

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

I do build multiple usefull or useless MCP servers 🤣

Collapse
 
franklinfranklin profile image
Franklin •

lol ya i know the feeling😅

Collapse
 
maxbuildsdev profile image
Max Kaya •

realpathSync closes the ../ and symlink escapes, but not hardlinks: ln .env notes.txt gives a path that canonicalizes to itself while the inode is still your credentials file, and your pattern list only ever sees the name. Comparing dev+ino of each write target against the guarded set (plain fs.statSync, no realpath) closes it, and it also catches the cp -l case for free.

The bigger hole is the entry point. npx localwriteagent resolves latest from npm on every run, so the thing getting read/write in my working directory is whatever was published most recently — I'd pin localwriteagent@x.y.z in the README and have the CLI refuse to start when its own version doesn't match a configured one. Related: when the 45s relay timeout fires and the readline prompt aborts, what happens to a keypress that was already buffered in the tty? I'd want the pending approval record deleted before the abort, otherwise a late Y lands in the next prompt and approves something the model already gave up on.

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Interesting approach! 😸💚

I like the idea of keeping developers in control through interactive diff reviews and explicit permissions.

I'm curious to see how this architecture evolves! 👍

Collapse
 
qiangull profile image
QianGull •

I read this as a question about who holds the commit step, not about tunnels. Your ordering keeps it local: the model can propose a patch, but the terminal diff review is where the write actually happens, and the relay never sees the payload.

That is the same split I landed on in a much less exciting domain. I build ClipKnife on my own, a local media organiser, and labels a model produces for faces or scenes are stored as candidates only - a human confirms before anything is written to the index, so a wrong guess means re-picking instead of a changed file.

Two things I would like to know: what happens when a tool call succeeds but the local review is abandoned halfway (partial writes, or all-or-nothing?), and did you consider storing the proposal separately from the accepted patch so the audit trail survives a restart?

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

It gets cancelled.
Nothing is stored anywhere one servers. Thats the entire soul of this project.

Collapse
 
qiangull profile image
QianGull •

Thanks, that settles question one: cancel is all-or-nothing, so a half-reviewed diff never lands as a partial write. That is the failure mode I worry about, since a partial write is hard to notice after the fact.

I worded the second one badly. I meant local disk, not servers. When a proposal is cancelled, does anything stay on the machine, or is the terminal scrollback the only trace? In my own case the rejected candidate turned out to be a more useful audit record than the accepted one, because it explains later why a label was never confirmed.

Thread Thread
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

You're welcome👍

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Everyone, Huge thanks for selecting this as a gem!
I'll make sure to get your best posts as gem too :D

Collapse
 
enoch_hou profile image
Enoch Hou •

把写文件前的 diff 审核做成默认项这个设计很对,敏感文件直接拦截也很关键。好奇中继在高并发下的延迟表现怎么样,45 秒超时在大型重构时会不会有点紧。

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

45 Second timeout is enough, because this is aimed for frontier models, those will definitely generate codes at that speed. Latency is normally below 1 second. Depends on where you live. Relay hosted on hugging face so mostly I think its in ireland, I didnt check :D

Collapse
 
vexaloom-labs profile image
vexaloom-labs •

Zero knowledge ends at the relay: the coding assistant still gets the files, so the tunnel secures only one part of the trust chain.

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Privacy is my first priority!
The entire server code is open source :D
You can check out the server here, the server files and logs are open, and no tunnels, files, information or anything is exposed in the logs.

huggingface.co/spaces/QuantumTechC...

P.S: Please dont judge the UI, im very new to gradio :/

Collapse
 
lorenext profile image
lorenext •

Love the E2EE + sensitive file guard approach! Keeping .env and credentials strictly off-limits while still letting web-based AI tools help with local edits is super thoughtful.

Collapse
 
quantumtechcoder profile image
QuantumTechCoder Necoz •

Thanks 😀