📋 How BYOC Works
This page has <link rel="mcp-server" href="http://localhost:3001/mcp"> in its <head>.
The browser can detect this and show an indicator (like RSS did).
Website requests permission via agent.requestPermissions() then creates a chat session with window.ai.createTextSession().
Your browser shows a permission prompt listing the tools the website wants to provide. You decide to allow or deny.
If you allow, the AI assistant responds using session.promptStreaming() with knowledge of the shop's products.
Welcome to Acme Shop
Find the perfect products with help from your AI assistant. Click the chat button to get personalized recommendations!