Skip to content

Commit 56705bd

Browse files
committed
add session id to error
1 parent b61b248 commit 56705bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/routes/mcp+/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export async function action({ request }: ActionFunctionArgs) {
2323
invariantResponse(sessionId, 'No session ID')
2424

2525
const transport = await getTransport(sessionId)
26-
invariantResponse(transport, 'No transport', { status: 404 })
26+
invariantResponse(transport, `No transport for sessionId "${sessionId}"`, {
27+
status: 404,
28+
})
2729

2830
return transport.handlePostMessage(request)
2931
})

0 commit comments

Comments
 (0)