convert-web-app

Convert existing web apps into hybrid MCP Apps with Vite.

5|2|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/s1366560/agi-demos --skill convert-web-app-s1366560
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convert-web-app
Source: https://github.com/s1366560/agi-demos/tree/main/.memstack/skills/convert-web-app
Command: npx skills add https://github.com/s1366560/agi-demos --skill convert-web-app-s1366560

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @modelcontextprotocol/ext-apps, @modelcontextprotocol/sdk, zod, tsx, vite, vite-plugin-singlefile, and includes references (resource) components.

What problem does it solve?

This Skill enables you to adapt existing web applications to function seamlessly as MCP Apps, allowing them to render inline within MCP-enabled hosts while retaining their standalone web functionality.

Core Features & Use Cases

  • Hybrid App Development: Create a single codebase that works both as a traditional web app and an MCP App.
  • Seamless Integration: Wrap your existing UI as an MCP App resource, enabling server-side tool and resource registration.
  • Use Case: You have a complex single-page application (SPA) built with React. You want to embed this SPA within an MCP host for a more integrated user experience, without needing to rewrite it. This Skill guides you through the process of making your SPA compatible with the MCP App lifecycle.

Quick Start

Follow the steps in this guide to adapt your existing web application for MCP App support.

Frequently Asked Questions about convert-web-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a web app to work as an MCP App?

Yes, you can embed a React single-page application within an MCP host by adapting its build pipeline with Vite and vite-plugin-singlefile, implementing hybrid initialization, and registering the UI as an MCP App resource.

What does making a hybrid MCP App involve?

MCP App conversion requires your web app to meet Content Security Policy (CSP) requirements. You must adapt your build pipeline and implement hybrid initialization to ensure proper rendering within MCP-enabled hosts.

Does this MCP App conversion process support Vue and Svelte?

You need Vite and vite-plugin-singlefile to build hybrid MCP Apps. These tools adapt your existing build pipeline to bundle the web application into a single file suitable for MCP host integration.

Why do I need vite-plugin-singlefile for MCP App integration?

To integrate host styling into your hybrid MCP App, you implement hybrid initialization logic that detects the MCP host environment and applies the appropriate styling, ensuring seamless inline rendering within the host.