@lifeaitools/clauth 1.5.23 → 1.5.24

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.
@@ -847,12 +847,12 @@ function dashboardHtml(port, whitelist, isStaged = false) {
847
847
  <div class="mcp-setup-title">claude.ai MCP Integration</div>
848
848
  <div class="oauth-fields">
849
849
  <div class="mcp-row">
850
- <span class="mcp-label">URL (all tools)</span>
850
+ <span class="mcp-label">Clauth</span>
851
851
  <span class="mcp-val" id="mcp-url">—</span>
852
852
  <button class="mcp-copy" onclick="copyMcp('mcp-url')">copy</button>
853
853
  </div>
854
854
  <div class="mcp-row">
855
- <span class="mcp-label">URL (GWS only)</span>
855
+ <span class="mcp-label">GWS</span>
856
856
  <span class="mcp-val" id="mcp-gws-url">—</span>
857
857
  <button class="mcp-copy" onclick="copyMcp('mcp-gws-url')">copy</button>
858
858
  </div>
@@ -2330,18 +2330,24 @@ async function wizRunCreateTunnel() {
2330
2330
  // Step: MCP setup in claude.ai
2331
2331
  async function wizShowMcpSetup(hostname) {
2332
2332
  wizStep = "mcp_setup";
2333
- const sseUrl = \`https://\${hostname}/sse\`;
2333
+ const clauthUrl = \`https://\${hostname}/clauth\`;
2334
+ const gwsUrl = \`https://\${hostname}/gws\`;
2334
2335
 
2335
2336
  const mcpData = await apiFetch("/mcp-setup");
2336
2337
 
2337
2338
  renderWizBody(\`
2338
- <div class="wiz-desc">Add clauth as an MCP server in claude.ai settings. Paste these values:</div>
2339
+ <div class="wiz-desc">Add two MCP connectors in claude.ai one for Clauth, one for GWS:</div>
2339
2340
  <div style="display:flex;flex-direction:column;gap:8px;margin-top:10px">
2340
2341
  <div class="mcp-row">
2341
- <span class="mcp-label">URL</span>
2342
- <span class="mcp-val" id="wiz-mcp-url">\${sseUrl}</span>
2342
+ <span class="mcp-label">Clauth URL</span>
2343
+ <span class="mcp-val" id="wiz-mcp-url">\${clauthUrl}</span>
2343
2344
  <button class="mcp-copy" onclick="wizCopy('wiz-mcp-url',this)">copy</button>
2344
2345
  </div>
2346
+ <div class="mcp-row">
2347
+ <span class="mcp-label">GWS URL</span>
2348
+ <span class="mcp-val" id="wiz-mcp-gws">\${gwsUrl}</span>
2349
+ <button class="mcp-copy" onclick="wizCopy('wiz-mcp-gws',this)">copy</button>
2350
+ </div>
2345
2351
  <div class="mcp-row">
2346
2352
  <span class="mcp-label">Client ID</span>
2347
2353
  <span class="mcp-val" id="wiz-mcp-cid">\${mcpData?.clientId || '(unlock required)'}</span>
@@ -2357,7 +2363,7 @@ async function wizShowMcpSetup(hostname) {
2357
2363
  Paste into <a class="wiz-link" href="https://claude.ai/settings/integrations" target="_blank">claude.ai → Settings → Integrations</a>
2358
2364
  </div>
2359
2365
  <div style="margin-top:8px;font-size:.78rem;color:#64748b">
2360
- GWS connector: use <code style="color:#60a5fa">https://\${hostname}/gws</code> as URL (same Client ID/Secret)
2366
+ Same Client ID/Secret for both connectors.
2361
2367
  </div>
2362
2368
  \`, [], [
2363
2369
  \`<button class="btn-wiz-primary" onclick="window.open('https://claude.ai/settings/integrations','_blank');wizShowTest()">I've Added It — Test Now</button>\`,
@@ -2937,7 +2943,7 @@ function createServer(initPassword, whitelist, port, tunnelHostnameInit = null,
2937
2943
  if (reqPath.startsWith("/.well-known/oauth-protected-resource")) {
2938
2944
  const base = oauthBase();
2939
2945
  const suffix = reqPath.replace("/.well-known/oauth-protected-resource", "").replace(/^\//, "");
2940
- const resourcePath = suffix && ["/gws", "/clauth", "/mcp", "/sse"].includes("/" + suffix) ? "/" + suffix : "/sse";
2946
+ const resourcePath = suffix && ["/gws", "/clauth", "/mcp", "/sse"].includes("/" + suffix) ? "/" + suffix : "/clauth";
2941
2947
  res.writeHead(200, { "Content-Type": "application/json", ...CORS });
2942
2948
  return res.end(JSON.stringify({
2943
2949
  resource: `${base}${resourcePath}`,
@@ -3365,7 +3371,7 @@ function createServer(initPassword, whitelist, port, tunnelHostnameInit = null,
3365
3371
  if (method === "GET" && reqPath === "/mcp-setup") {
3366
3372
  const base = tunnelUrl && tunnelUrl.startsWith("http") ? tunnelUrl : null;
3367
3373
  return ok(res, {
3368
- url: base ? `${base}/sse` : null,
3374
+ url: base ? `${base}/clauth` : null,
3369
3375
  gwsUrl: base ? `${base}/gws` : null,
3370
3376
  clientId: OAUTH_CLIENT_ID,
3371
3377
  clientSecret: OAUTH_CLIENT_SECRET,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/clauth",
3
- "version": "1.5.23",
3
+ "version": "1.5.24",
4
4
  "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
5
  "type": "module",
6
6
  "bin": {