interfaceSseConnectionParams{ Â Â Â Â header?:Record<string,unknown>; Â Â Â Â headers?:Record<string,unknown>; Â Â Â Â sseReadTimeout?:number; Â Â Â Â timeout?:number; Â Â Â Â transportOptions?:SSEClientTransportOptions; Â Â Â Â type:"SseConnectionParams"; Â Â Â Â url:string; }
Properties
Optionalheader
header?:Record<string,unknown>
Deprecated
Use transportOptions.requestInit.headers instead.
This field will be ignored if transportOptions is provided even if no headers are specified in transportOptions.
Optionalheaders
headers?:Record<string,unknown>
HTTP headers to send with the SSE and POST requests when
transportOptions.requestInit is not provided.
Defines the parameters for establishing a connection to an MCP server over the HTTP+SSE transport.
Usage: const connectionParams: SseConnectionParams = { type: 'SseConnectionParams', url: 'http://localhost:8090/sse' };