@ateam-ai/mcp 0.3.18 → 0.3.20

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/http.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "mcpName": "io.github.ariekogan/ateam-mcp",
5
5
  "description": "A-Team MCP Server — build, validate, and deploy multi-agent solutions from any AI environment",
6
6
  "type": "module",
package/src/http.js CHANGED
@@ -249,9 +249,15 @@ export function startHttpServer(port = 3100) {
249
249
  if (inner) {
250
250
  inner.sessionId = newSessionId;
251
251
  inner._initialized = true;
252
+ // Neutralize session-id validation for this transport — the client's header
253
+ // still carries the stale id and the SDK would otherwise 404. We trust that
254
+ // we already looked up the transport ourselves.
255
+ inner.validateSession = () => undefined;
256
+ // Also accept any protocol version the client sends.
257
+ inner.validateProtocolVersion = () => undefined;
252
258
  }
253
259
  transports[newSessionId] = transport;
254
- // Rewrite the request's session-id header so SDK session validation passes.
260
+ // Rewrite the request's session-id header so downstream code also sees the new id.
255
261
  req.headers["mcp-session-id"] = newSessionId;
256
262
  // Tell the client about the new session id so future requests use it.
257
263
  res.setHeader("mcp-session-id", newSessionId);