DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to preview a local Vite or Express server on your phone with Mobile Harness

Run a Vite, Next.js, or Express server on the phone and test it in a sandboxed WebView.

Short answer: Open an existing project or tap Quick Project in Mobile Harness; then open the Terminal and run your project's dev server command, such as the one for Vite, Next.js, or Express; open the web preview from the workspace to load the running server. All steps.

Who it is forA web developer who wants to check a running server's interface on mobile without deploying it.

The problemTesting how a web interface behaves on a phone usually requires deploying it or using a separate device.

The outcomeA live local web server shown in an in-app preview with console output for debugging.

What you need first

  • ARM64 Android phone running Android 9.0 or newer
  • About 2.5 GB free storage for the base runtime, more for optional toolchains
  • Stable internet for setup and API calls, or the Offline APK edition
  • A Claude account or an API key from a supported provider
  • Permission to allow installs from Mobile Harness when Android asks

Steps

  1. Open an existing project or tap Quick Project in Mobile Harness.
  2. Open the Terminal and run your project's dev server command, such as the one for Vite, Next.js, or Express.
  3. Open the web preview from the workspace to load the running server.
  4. Check the console telemetry in the preview for errors, then fix the code and reload.

Prompt for your agent

In Mobile Harness on an ARM64 Android phone, start a Vite dev server for the project at <project-name> from the Terminal and open the Instant Web Preview. Expected output: the app renders in the WebView with console messages visible. Verify that the page loads without errors in the console.

Caveat. The preview runs in a restricted, sandboxed mobile WebView, so it may not match how the app behaves in a full desktop browser.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for techjarves/Mobile-Harness and "Preview a local Vite or Express server on your phone"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer