@ateam-ai/mcp 0.3.19 → 0.3.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
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
@@ -246,16 +246,18 @@ 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}`);
250
249
  if (inner) {
251
250
  inner.sessionId = newSessionId;
252
251
  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
+ // 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;
256
258
  }
257
259
  transports[newSessionId] = transport;
258
- // 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.
259
261
  req.headers["mcp-session-id"] = newSessionId;
260
262
  // Tell the client about the new session id so future requests use it.
261
263
  res.setHeader("mcp-session-id", newSessionId);
package/src/tools.js CHANGED
@@ -108,9 +108,9 @@ export const tools = [
108
108
  properties: {
109
109
  type: {
110
110
  type: "string",
111
- enum: ["skill", "connector", "connector-ui", "solution", "index"],
111
+ enum: ["skill", "connector", "connector-ui", "solution", "script-cache-skill", "index"],
112
112
  description:
113
- "Example type: 'skill' = Order Support Agent, 'connector' = stdio MCP connector, 'connector-ui' = UI-capable connector, 'solution' = full 3-skill e-commerce solution, 'index' = list all available examples",
113
+ "Example type: 'skill' = Order Support Agent, 'connector' = stdio MCP connector, 'connector-ui' = UI-capable connector, 'solution' = full 3-skill e-commerce solution, 'script-cache-skill' = fat-tool skill with script_cache opt-in (reference implementation of script-level JIT shortcuts — study this before building any browser-automation skill), 'index' = list all available examples",
114
114
  },
115
115
  },
116
116
  required: ["type"],
@@ -1108,6 +1108,7 @@ const EXAMPLE_PATHS = {
1108
1108
  connector: "/spec/examples/connector",
1109
1109
  "connector-ui": "/spec/examples/connector-ui",
1110
1110
  solution: "/spec/examples/solution",
1111
+ "script-cache-skill": "/spec/examples/script-cache-skill",
1111
1112
  };
1112
1113
 
1113
1114
  // Tools that are tenant-aware — require EXPLICIT ateam_auth (env vars alone not enough).