@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.
- package/cli/commands/serve.js +3 -6
- package/package.json +1 -1
package/cli/commands/serve.js
CHANGED
|
@@ -3071,16 +3071,13 @@ function createServer(initPassword, whitelist, port, tunnelHostnameInit = null,
|
|
|
3071
3071
|
}
|
|
3072
3072
|
|
|
3073
3073
|
if (rpcMethod === "initialize") {
|
|
3074
|
-
//
|
|
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",
|
|
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
|
|