Open
Description
I am testing a mcp server and routing the requests to local mcp server through a ngrok tunnel. Now the requests through ngrok has to have this header:
{
"ngrok-skip-browser-warning": "69420",
}
the value can be anything actually.
Normally I am doing all the fetch requests like this:
const response = await fetch(url, {
method: 'GET', headers: new Headers({
"ngrok-skip-browser-warning": "69420",
}),
});
How do I add it to my sse transport? This following method is not actually adding the header to the requests.
this.transport = new SSEClientTransport(new URL(url), {
requestInit: {
headers: {
"ngrok-skip-browser-warning": "69420",
}
}
});
Metadata
Metadata
Assignees
Labels
No labels