public MCP: the bare host answers MCP (POST /) and names the connect URL (GET /)

This commit is contained in:
CRTkafa 2026-11-08 02:26:11 +07:00
parent 9081ac921d
commit b82becf7fb
4 changed files with 28 additions and 2 deletions

View file

@ -614,7 +614,7 @@ async function runReleaseStateCase(browser: Browser, sidecar: Sidecar, page404:
let visited = 0;
const text = async (sel = '#content') => (await page.locator(sel).first().innerText().catch(() => '')).replace(/\s+/g, ' ');
const crashCheck = async (where: string) => { for (const c of (await state(page)).crash) problems.push(`${where}: error panel ${c}`); };
const SENT = 'In review'; // decided from the store page: 404 = in review (no uncertain wording)
const SENT = 'Not live yet: in review or blocked before review'; // store page 404: the API has no review state (pitfall 129)
try {
await page.goto(`http://127.0.0.1:${server.port}/`, { waitUntil: 'load' });
await page.waitForFunction(() => document.documentElement.dataset.booted === '1', null, { timeout: WAIT_MS }).catch(() => problems.push('React never drew the window (no data-booted)'));