Skip to content

Commit c053466

Browse files
committed
wip
1 parent add959f commit c053466

File tree

2 files changed

+4
-97
lines changed

2 files changed

+4
-97
lines changed

apps/mcp-remote/src/hooks.server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ export async function handle({ event, resolve }) {
77
const accept = event.request.headers.get('accept');
88
if (accept) {
99
const accepts = accept.split(',');
10-
if (!accepts.includes('text/event-stream') && event.url.pathname.startsWith('/mcp')) {
10+
if (
11+
!accepts.includes('text/event-stream') &&
12+
(event.url.pathname.startsWith('/mcp') || event.url.pathname === '/')
13+
) {
1114
// the request it's a browser request, not an MCP client request
1215
// it means someone probably opened it from the docs...we should redirect to the docs
1316
redirect(302, 'https://svelte.dev/docs/mcp/overview');

apps/mcp-remote/src/routes/+page.svelte

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)