public MCP: a browser on the bare host goes to the landing page

This commit is contained in:
CRTkafa 2026-11-08 02:27:53 +07:00
parent b82becf7fb
commit 07052cffd2
3 changed files with 6 additions and 1 deletions

View file

@ -244,6 +244,9 @@ describe('http, public mode', () => {
const g = await fetch(`http://127.0.0.1:${s.port}/`);
expect(g.status).toBe(200);
expect(await g.text()).toContain('claude mcp add --transport http storebound');
const b = await fetch(`http://127.0.0.1:${s.port}/`, { headers: { accept: 'text/html,application/xhtml+xml' }, redirect: 'manual' });
expect(b.status).toBe(302);
expect(b.headers.get('location')).toBe('https://storebound.dev/');
expect((await fetch(`http://127.0.0.1:${s.port}/other`)).status).toBe(404);
} finally { s.close(); }
});