We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dabb95f commit 3a39538Copy full SHA for 3a39538
src/services/mcp/McpHub.ts
@@ -518,6 +518,13 @@ export class McpHub {
518
const reconnectingEventSourceOptions = {
519
max_retry_time: 5000, // Maximum retry time in milliseconds
520
withCredentials: configInjected.headers?.["Authorization"] ? true : false, // Enable credentials if Authorization header exists
521
+ fetch: (url: string | URL, init: RequestInit) => {
522
+ const headers = new Headers({ ...(init?.headers || {}), ...(configInjected.headers || {}) })
523
+ return fetch(url, {
524
+ ...init,
525
+ headers,
526
+ })
527
+ },
528
}
529
global.EventSource = ReconnectingEventSource
530
transport = new SSEClientTransport(new URL(configInjected.url), {
0 commit comments