webmcp-gate: open-source MCP gateway lets users' AI agents drive web apps with scoped permissions
KaleidoscopeFair4182 · reddit · 2026-12-05
A front-end developer open-sourced webmcp-gate (MIT, TypeScript, v0.1.0), a tool that lets users' own AI agents (Claude Code, Codex, etc.) drive a web app through an agreed protocol while exposing only the actions the developer chooses — instead of handing over the whole browser.
How it works:
- The page registers the actions it wants to expose; the agent can only call registered tools
- A small relay on the user's computer connects their agent to their logged-in tab, executing actions with the user's own session
- The relay listens on 127.0.0.1 only; only allow-listed origins can connect
- A pairing code is never sent over the wire — both sides just prove they know it
- Risky actions require in-page user approval, and the relay re-checks the call afterwards
Built with Claude Code's help, with design decisions and testing by the author. Repo: github.com/hon2be/webmcp-gate. The author is seeking feedback on whether developers would expose parts of their apps this way and which actions to open first.
More from coding & agent
- USB RealSense camera becomes a native ROS2 network sensor via PoE adapter with no host PC — chrismatthieu · 2026-12-05
- Grok Build launches across desktop, mobile, Slack, Teams, Linear and Jira — udmrzn · 2026-12-05
- ML engineer: You can never do enough data review — something always slips through — yunta_tsai · 2026-12-05
- Naval: Software development is now just tracking the edge capabilities of AI models — HamelHusain · 2026-12-05
- Clear briefs are now the most important management skill in the agent era — McDonaghMatthew · 2026-12-05
- ansi: an open-source sandboxed terminal coding agent where 'an agent is a session' — remilouf · 2026-12-05