Back to Home
ShreeMulay icon

mcp-ui-playground

by ShreeMulay

Overview

Building interactive UI components for AI chat applications using the MCP-UI SDK.

Installation

Run Command
bun run dev:server

Security Notes

The server generates UIResources with `text/html` content by directly embedding tool input parameters (e.g., `title`, `description`, `name`, `text`, `location`) into HTML strings without proper HTML escaping. This creates a significant Cross-Site Scripting (XSS) vulnerability if any of these inputs originate from untrusted sources (e.g., user prompts to an AI agent that invokes these tools). For example, if a tool's `title` parameter contains `<script>alert('XSS')</script>`, it would be directly rendered and executed in the client's iframe. The `application/vnd.mcp-ui.remote-dom` content type involves sending JavaScript code to the client for dynamic DOM manipulation; while the client is intended to run this in a sandboxed environment, this approach inherently carries higher risk compared to static HTML if client-side sandboxing mechanisms are compromised or misconfigured.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-14

Tags

MCP-UIAIInteractive UITypeScriptBunChatbots