Compare commits

...

2 Commits

Author SHA1 Message Date
0xtoshii 7991d97ae1 changeset 2025-06-01 20:08:20 -07:00
0xtoshii aaf1cc8dc7 parity 2025-06-01 20:07:50 -07:00
2 changed files with 13 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
add parity between rpc and non-rpc methods for sse transport
+8 -1
View File
@@ -213,7 +213,14 @@ export class McpHub {
let transport: StdioClientTransport | SSEClientTransport | StreamableHTTPClientTransport
if (config.transportType === "sse") {
transport = new SSEClientTransport(new URL(config.url), {})
// Set headers of POST requests to the sse server
const postRequestInit = {
headers: config.headers,
}
transport = new SSEClientTransport(new URL(config.url), {
requestInit: postRequestInit,
})
} else if (config.transportType === "http") {
transport = new StreamableHTTPClientTransport(new URL(config.url), {})
} else {