@ateam-ai/mcp 0.3.18 → 0.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/http.js +4 -0
package/package.json
CHANGED
package/src/http.js
CHANGED
|
@@ -246,9 +246,13 @@ export function startHttpServer(port = 3100) {
|
|
|
246
246
|
// requiring a real initialize handshake. This bypasses the SDK's built-in check
|
|
247
247
|
// (`Bad Request: Server not initialized`) so the non-initialize request dispatches.
|
|
248
248
|
const inner = transport._webStandardTransport;
|
|
249
|
+
console.log(`[HTTP] auto-reinit debug: inner=${!!inner} initBefore=${inner?._initialized} sidBefore=${inner?.sessionId}`);
|
|
249
250
|
if (inner) {
|
|
250
251
|
inner.sessionId = newSessionId;
|
|
251
252
|
inner._initialized = true;
|
|
253
|
+
console.log(`[HTTP] auto-reinit debug: initAfter=${inner._initialized} sidAfter=${inner.sessionId}`);
|
|
254
|
+
} else {
|
|
255
|
+
console.log(`[HTTP] auto-reinit debug: transport keys = ${Object.keys(transport)}`);
|
|
252
256
|
}
|
|
253
257
|
transports[newSessionId] = transport;
|
|
254
258
|
// Rewrite the request's session-id header so SDK session validation passes.
|