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

How to test cart edge cases by editing live state with Medula

Set state values in a running app to reproduce edge cases that are hard to build in automated tests.

Short answer: Install Medula and Vite DevTools with pnpm add -D medula @vitejs/devtools; then in vite.config.ts, set devtools: true and add medula() next to your framework plugin; add the MCP server to your agent's configuration with command npx and args devframe connect. All steps.

Who it is forA developer or QA-minded agent exploring edge cases in a shop or form flow that is awkward to reproduce with automated tests.

The problemSome edge cases, such as a specific quantity or an unusual combination of values, take many clicks to reach and are rarely covered by automated tests.

The outcomeThe agent sets the state directly, such as a cart quantity, and reports what the page shows, such as the total.

What you need first

  • A web app built with Vue 3, React, Svelte 5, or Solid, run through Vite 8, Nuxt (with Nuxt DevTools 4), or Next.js (App Router)
  • pnpm and Node.js available to install the package
  • An MCP-capable coding agent to connect to devframe
  • A browser tab open to the running app

Steps

  1. Install Medula and Vite DevTools with pnpm add -D medula @vitejs/devtools.
  2. In vite.config.ts, set devtools: true and add medula() next to your framework plugin.
  3. Add the MCP server to your agent's configuration with command npx and args devframe connect.
  4. Start your dev server, open the app in your browser, and complete any DevTools connection code prompt.
  5. Ask the agent to set the cart quantity to a chosen value and check the total shown on the page.

Prompt for your agent

Using the medula MCP tools from the medula repo, connect to the running dev server for <app-port> and set the cart quantity to <quantity>. Expected output: the cart state after the change and the total it produces. Verify that the total shown in the browser tab matches the value the agent reports.

Caveat. State edits exist only in the running page, so a value set this way is lost on reload and must be reproduced again to repeat the test.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for posva/medula and "Test cart edge cases by editing live state"

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