mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
parent
a77be3feb7
commit
5a491672c4
1 changed files with 7 additions and 4 deletions
|
|
@ -239,14 +239,17 @@ export class McpHub {
|
|||
} else {
|
||||
// SSE connection
|
||||
const sseOptions = {
|
||||
headers: config.headers,
|
||||
https: {
|
||||
rejectUnauthorized: false, // Allow self-signed certificates if needed
|
||||
requestInit: {
|
||||
headers: config.headers,
|
||||
// Allow self-signed certificates if needed
|
||||
agent: new (require("https").Agent)({
|
||||
rejectUnauthorized: false,
|
||||
}),
|
||||
},
|
||||
}
|
||||
// @ts-ignore - EventSource types are not fully compatible
|
||||
global.EventSource = EventSource
|
||||
transport = new SSEClientTransport(new URL(config.url))
|
||||
transport = new SSEClientTransport(new URL(config.url), sseOptions)
|
||||
|
||||
// Set up SSE specific error handling
|
||||
transport.onerror = async (error) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue