edge-mcp-dev-panel
edge-mcp-dev-panel
Add an opt-in, dev-only floating panel that mounts inside the app's own runtime and gives the developer a UI for testing the website tools exposed to AI agents via WebMCP by hand: pick a tool, fill in its arguments using fields rendered from the tool's inputSchema, click Run, watch the resource updates scroll by in an event log. The panel is a development convenience, not part of the bridge — the WebMCP surface works the same with or without it.
The panel reads document.modelContext itself — the standard surface the @napster-corp/edge-mcp polyfill installs on import. It does not take any instance; there is no bridge object to hand it.
When to use this skill
Run this skill when all of these are true:
- The WebMCP toolkit is already set up in the target app (the toolkit is imported so its polyfill installs
document.modelContext, and tools and live-state resources are registered). - The developer wants a UI-driven way to exercise the bridge, instead of typing into DevTools or writing tests in their existing suite.
- The developer has accepted the panel — they were offered it at the end of
edge-mcp-setup, or asked for it directly.
If the toolkit isn't set up yet, stop and route the developer to edge-mcp-setup first. If the developer hasn't been asked whether they want the panel, ask before installing — this is opt-in scaffolding, not a default.
0. Confirm prerequisites
Before any changes: