ext-apps/examples/video-resource-server/mcp-app.html
Hryhorii (Greg) Avcharov 4f9a7ebc74
feat: add readServerResource() and listServerResources() api to App (#470)
* feat: add readServerResource() and listServerResources() api to App class

* test: add listServerResources and readServerResource integration tests
2026-03-06 14:20:45 +00:00

37 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light dark">
<title>Video Resource Player</title>
</head>
<body>
<main class="main">
<div id="loading" class="loading">
<div class="spinner"></div>
<p id="loading-text">Waiting for video...</p>
</div>
<div id="error" class="error" style="display: none;">
<p class="error-title">Error loading video</p>
<p id="error-message"></p>
</div>
<div id="player" class="player" style="display: none;">
<video id="video" controls></video>
<p id="video-info" class="video-info"></p>
<button id="change-video-btn" class="change-btn">Change Video</button>
</div>
<div id="video-picker-container" class="picker-container" style="display: none;">
<h3>Available Videos</h3>
<select id="video-picker" class="video-picker">
<option value="">Select a video...</option>
</select>
<button id="load-video-btn" class="load-btn" disabled>Load Video</button>
</div>
</main>
<script type="module" src="/src/mcp-app.ts"></script>
</body>
</html>