Fix to the Authorization header bug for Streamable-HTTP

Reference issue [https://github.com/modelcontextprotocol/inspector/issues/369]
This commit is contained in:
Santthosh Selvadurai
2025-04-30 22:21:59 -07:00
parent cfe82c81a1
commit dd6f5287ca

View File

@@ -335,6 +335,7 @@ export function useConnection({
transportType === "streamable-http"
? new StreamableHTTPClientTransport(mcpProxyServerUrl as URL, {
sessionId: undefined,
...transportOptions,
})
: new SSEClientTransport(mcpProxyServerUrl as URL, transportOptions);