@lifeaitools/clauth 1.5.15 → 1.5.16

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.
@@ -3071,16 +3071,13 @@ function createServer(initPassword, whitelist, port, tunnelHostnameInit = null,
3071
3071
  }
3072
3072
 
3073
3073
  if (rpcMethod === "initialize") {
3074
- // Echo back the client's requested protocol version (negotiate down if needed)
3075
- const clientVersion = req.headers["mcp-protocol-version"] || body.params?.protocolVersion || "2025-03-26";
3076
- const SUPPORTED = ["2025-11-25", "2025-03-26"];
3077
- const protocolVersion = SUPPORTED.includes(clientVersion) ? clientVersion : "2025-03-26";
3074
+ // Always return 2025-03-26 returning 2025-11-25 causes claude.ai to require OAuth
3078
3075
  const result = {
3079
- protocolVersion,
3076
+ protocolVersion: "2025-03-26",
3080
3077
  serverInfo: { name: serverNameForPath(reqPath), version: VERSION },
3081
3078
  capabilities: { tools: {} }
3082
3079
  };
3083
- res.writeHead(200, { "Content-Type": "application/json", "mcp-protocol-version": protocolVersion, ...CORS });
3080
+ res.writeHead(200, { "Content-Type": "application/json", ...CORS });
3084
3081
  return res.end(JSON.stringify({ jsonrpc: "2.0", id, result }));
3085
3082
  }
3086
3083
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/clauth",
3
- "version": "1.5.15",
3
+ "version": "1.5.16",
4
4
  "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
5
  "type": "module",
6
6
  "bin": {