Feedthrough
OfficialAutomatically injects the debug bridge into each Cypress test page, enabling AI agents to inspect DOM, console logs, network requests, and interact with the page during test runs.
Wraps Next.js configuration to inject the debug bridge in dev mode, allowing AI agents to observe and control Next.js applications.
Registers as a Nuxt module to inject the debug bridge into Nuxt 3 apps in dev mode, providing AI agents with real-time debugging capabilities.
Injects the bridge via a Vite dev server middleware into Remix applications, enabling AI agents to debug Remix apps.
Plug into Vite to inject the bridge into static HTML pages, allowing AI agents to debug Vite-based applications (React, Vue, Solid, Preact).
Adds the bridge as a global entry point in Webpack configurations, enabling AI agents to debug Webpack-based applications.
Feedthrough
Debug with AI — from inside your app.
Feedthrough injects a lightweight debug bridge into any running web page, then exposes everything — DOM state, console logs, network requests, and user interactions — as MCP tools. Any MCP-compatible AI agent can inspect and drive the page conversationally, in real time.
Browser (any)
└── @feedthrough/core ← injected into your page
├── console interceptor
├── fetch / XHR interceptor
└── DOM inspector
↕ WebSocket
@feedthrough/mcp ← MCP server, exposes tools over stdio
└── Tools: click, fill, inspect_element, query_dom,
get_console_logs, get_network_requests, …
↕ MCP protocol
Claude Code / Cursor / any MCP clientThe name
Many physics and chemistry experiments run inside a sealed vacuum chamber, with all the air pumped out so nothing contaminates the experiment. The catch: you still need to control instruments inside the chamber and read their measurements, and the smallest air leak ruins the run. A feedthrough is the part that solves this — a specially engineered connector that carries electrical signals through the chamber wall while keeping the vacuum perfectly intact. You can't reach inside, but the feedthrough lets you observe and control what's happening in there anyway.
The parallel is exact: Feedthrough extracts runtime debug data from inside a running web app without disturbing it, and sends control signals back in — clicks, keystrokes, DOM queries — without breaking the execution environment.
Why Feedthrough?
Every other browser MCP tool is an external observer — it controls the browser from outside via Puppeteer or CDP and only works in Chrome. Feedthrough is an embedded agent. It runs inside the page, so it sees:
Framework internals (React component trees, Redux store, custom globals)
Any browser, not just Chrome
Your existing dev workflow — no separate controlled browser to launch
Cypress's own browser context during test runs
Packages
Package | Description |
In-browser bridge — intercepts console, fetch, XHR; handles commands | |
MCP server — bridges any MCP client to the browser via WebSocket | |
Cypress adapter — auto-injects the bridge before each test page load | |
Playwright adapter — injects the bridge via | |
Vite plugin for apps with a static | |
Webpack plugin — adds bridge as a global entry point | |
Next.js adapter — wraps | |
Nuxt 3 module | |
SvelteKit adapter — injects via the | |
Remix adapter — injects via a Vite dev server middleware |
Framework support
Framework | Adapter | Notes |
Vite + React / Vue / Solid / Preact |
| Static |
Next.js |
| Wraps the webpack config; dev only |
Nuxt 3 |
| Registers as a Nuxt module; dev only |
SvelteKit |
|
|
Remix |
| Vite dev server middleware; dev only |
Webpack apps |
| Global entry point; guards against production mode |
Cypress |
|
|
Playwright |
|
|
Quick start
1. Start the MCP server
npx @feedthrough/mcpThe server listens for browser connections on ws://127.0.0.1:8765 and exposes MCP tools on
stdio. Override the port with FEEDTHROUGH_PORT=9000.
2. Add it to your MCP client config
{
"mcpServers": {
"feedthrough": {
"command": "npx",
"args": ["@feedthrough/mcp"]
}
}
}3. Inject the bridge into your page
Vite + React / Vue / Solid / Preact:
// vite.config.ts
import { feedthrough } from "@feedthrough/vite";
export default defineConfig({ plugins: [feedthrough()] });Next.js:
// next.config.ts
import { withFeedthrough } from "@feedthrough/nextjs";
export default withFeedthrough()({ /* your next config */ });Nuxt 3:
// nuxt.config.ts
export default defineNuxtConfig({ modules: ["@feedthrough/nuxt"] });SvelteKit:
// src/hooks.server.ts
import { feedthroughHandle } from "@feedthrough/sveltekit";
import { sequence } from "@sveltejs/kit/hooks";
export const handle = sequence(feedthroughHandle);Remix:
// vite.config.ts
import { feedthrough } from "@feedthrough/remix";
export default defineConfig({ plugins: [remix(), feedthrough()] });Webpack:
// webpack.config.mjs
import { FeedthroughPlugin } from "@feedthrough/webpack";
export default { plugins: [new FeedthroughPlugin()] };Cypress:
// cypress/support/e2e.ts
import { setupFeedthrough } from "@feedthrough/cypress";
setupFeedthrough();Playwright:
// import test from the adapter instead of @playwright/test
import { test, expect } from "@feedthrough/playwright";Or manually (any bundler):
// main.ts
if (import.meta.env.DEV) {
import("@feedthrough/core").then(({ init }) => init());
}4. Open your page and start asking
Once the bridge connects you'll see [feedthrough] tab connected in the MCP server output.
For the simplest experience, keep a single tab open. Multiple tabs can connect at the same time
and commands are routed to the most recently active one, but a single tab avoids any ambiguity.
Then ask your AI agent:
> What's on the page right now?
> Click the submit button and tell me what network requests fired
> Why is the counter showing the wrong value?MCP tools
Tool | Description |
| Usage guide — recommended workflow, tool ordering, and selector tips |
| All elements matching a CSS selector |
| Tag, attributes, full bounding rect + inViewport, ancestor |
| Raw outerHTML of a region (capped at 50 KB) |
| Console output (all methods) plus uncaught errors & promise rejections; filter by |
| Captured fetch + XHR — URL, method, status, duration, headers, request/response bodies (10 KB cap); narrow by |
| URL, title, readyState, viewport size, scroll position, user agent |
| List connected tabs and which one is currently active |
| Click an element |
| Type into an input field |
| Trigger mouseover/mouseenter |
| Dispatch a key press — Enter, Escape, Tab, arrow keys, or a character |
| Preview a visual fix — set inline CSS live (not saved to source) |
| Preview an attribute change — toggle disabled, swap a class, set aria-* ( |
| Preview wording/label changes — replace an element's text |
| Undo every live |
Live edit is a preview, not a save. set_style / set_attribute / set_text mutate the
running DOM so the agent can show you a fix without a rebuild. They are not written to your
source and reset on reload/HMR. The loop: the agent previews live, you confirm, then it edits the
actual source to make it stick. Changes a framework owns (text, controlled attributes) may be
overwritten on the next render — the tool result flags this so the agent can tell you.
Example app
examples/react-app is a small React app with three deliberate bugs — a good sandbox for
trying out the diagnostic workflow:
# Terminal 1 — app
cd examples/react-app && pnpm dev # http://localhost:5173
# Terminal 2 — MCP server
cd packages/mcp && node dist/index.jsConnect an AI agent and ask it to find what's wrong. The three bugs are all invisible from the
UI but findable in under a minute via get_console_logs, get_network_requests, and query_dom.
Using with an AI agent
Recommended workflow
connection_status()— confirm the bridge is connected before anything elseget_console_logs()— errors and app output often identify the root cause immediatelyget_network_requests()— look for failed fetches, wrong URLs, or missing callsquery_dom(selector)— find elements and check what's renderedinspect_element(selector)— deep-dive on a specific elementclick()/fill()— interact, then re-check logs and network
Project-memory snippet
Add this to whatever project-memory file your AI agent reads — CLAUDE.md for Claude Code,
.cursor/rules/*.md for Cursor, and so on — to prime it with the right workflow:
## Debugging with Feedthrough
A Feedthrough MCP server is configured. When investigating UI bugs:
1. Call `connection_status()` first — fail fast if no browser is connected.
2. Check `get_console_logs()` before touching the DOM.
3. Check `get_network_requests()` for failed or missing API calls.
4. Use `query_dom` to orient yourself, `inspect_element` to dig into a specific element.
5. Interact with `click` / `fill`, then re-check logs.
Prefer element IDs as selectors — they're stable. Avoid long attribute selectors.Sample system prompt
For one-off sessions with any MCP client:
You have access to the Feedthrough MCP server. It gives you live access to a running web app
from inside the browser — console logs, network requests, DOM state, and the ability to click
and fill inputs. Start by calling get_instructions() for the recommended workflow.Security
v1 is local-only. Two guards enforce this:
Localhost binding — the WebSocket server binds to
127.0.0.1, so it is not reachable from other machines on the network.Origin validation — each incoming WebSocket connection is checked against its
Originheader. Loopback origins (localhost,127.0.0.1,::1) are always accepted, as is any host ending with an allowed suffix (default.test, so local dev domains like Laravel Valet'smyapp.testconnect out of the box). Override the suffix list withFEEDTHROUGH_ALLOWED_HOST_SUFFIXES(comma-separated; replaces the default — set it empty for loopback-only). Any other origin is rejected. A.testorigin can only be presented by a page actually served from a.testhost, which resolves locally, so this widens which local origins connect, not network reach.
What gets captured
Captured network requests include request and response bodies and headers, including
Authorization, Cookie, and any other headers your app sends. That's intentional — debugging
auth and session flows needs them. But the data does leave the page over the local WebSocket,
flows through the MCP server, and reaches whichever AI agent you've connected. If that agent is
cloud-backed, sensitive values reach the provider. Run Feedthrough only on dev machines and dev
data. Do not inject @feedthrough/core into production builds.
Development
pnpm install # install all workspace deps
pnpm build # build all packages
pnpm typecheck # typecheck all packagesRequires Node.js ≥ 22 and pnpm.
Releasing
Packages are versioned independently — bump only the package(s) you actually changed and leave
the rest alone. Publishing to npm is handled by CI: the Publish to npm workflow runs on every
published GitHub Release and publishes only the packages whose name@version isn't on npm yet,
skipping the ones already published (via OIDC trusted publishing, no tokens).
To cut a release:
# 1. Bump the changed package(s) only
pnpm --filter @feedthrough/mcp exec npm version 0.1.1 --no-git-tag-version
# When bumping @feedthrough/mcp, also bump the version (and packages[].version) in
# packages/mcp/server.json to match — the MCP registry validates them against npm.
git add packages/mcp/package.json packages/mcp/server.json
git commit -m "Release @feedthrough/mcp 0.1.1"
git push
# 2. Create a GitHub Release (this triggers the publish workflow)
gh release create v0.1.1 --title "v0.1.1" --notes "..."The workflow builds all packages and publishes only the newly bumped ones. It also publishes
@feedthrough/mcp to the official MCP registry
(io.github.feedthrough/feedthrough) via GitHub OIDC whenever the registry is missing the current
version, so a failed registry publish can be retried by re-running the workflow (Actions tab,
"Run workflow") with no version bump. Mark a release as a pre-release to skip publishing.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/feedthrough/feedthrough'
If you have feedback or need assistance with the MCP directory API, please join our Discord server