@yawlabs/tailscale-mcp 0.12.1 → 0.12.2

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/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31165,7 +31165,8 @@ async function apiRequest(method, path, body, options) {
31165
31165
  headers["Content-Type"] = "application/json";
31166
31166
  fetchBody = JSON.stringify(body);
31167
31167
  }
31168
- const url2 = path.startsWith("http") ? path : `${BASE_URL}${path}`;
31168
+ const isAbsolute = path.startsWith("http://") || path.startsWith("https://");
31169
+ const url2 = isAbsolute ? path : `${BASE_URL}${path}`;
31169
31170
  const startedAt = Date.now();
31170
31171
  debugLog(`${method} ${url2}`);
31171
31172
  const isRetryable = RETRYABLE_METHODS.has(method.toUpperCase());
@@ -33679,7 +33680,7 @@ var webhookTools = [
33679
33680
  ];
33680
33681
 
33681
33682
  // src/index.ts
33682
- var version2 = true ? "0.12.1" : (await null).createRequire(import.meta.url)("../package.json").version;
33683
+ var version2 = true ? "0.12.2" : (await null).createRequire(import.meta.url)("../package.json").version;
33683
33684
  var subcommand = process.argv[2];
33684
33685
  if (subcommand === "deploy-acl") {
33685
33686
  const filePath = process.argv[3];
@@ -33787,8 +33788,11 @@ console.error(
33787
33788
  );
33788
33789
  var hasCreds = !!process.env.TAILSCALE_API_KEY || !!process.env.TAILSCALE_OAUTH_CLIENT_ID && !!process.env.TAILSCALE_OAUTH_CLIENT_SECRET;
33789
33790
  if (!filterSuffix && hasCreds) {
33791
+ const profileCount = (groups) => groups.reduce((n, g) => n + (toolGroups[g]?.length ?? 0), 0);
33792
+ const coreCount = profileCount(PROFILES.core);
33793
+ const minimalCount = profileCount(PROFILES.minimal);
33790
33794
  console.error(
33791
- "@yawlabs/tailscale-mcp: tip \u2014 set TAILSCALE_PROFILE=core (47 tools) or =minimal (20) to load a smaller tool surface. See README."
33795
+ `@yawlabs/tailscale-mcp: tip \u2014 set TAILSCALE_PROFILE=core (${coreCount} tools) or =minimal (${minimalCount}) to load a smaller tool surface. See README.`
33792
33796
  );
33793
33797
  }
33794
33798
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/tailscale-mcp",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "mcpName": "io.github.YawLabs/tailscale-mcp",
5
5
  "description": "Tailscale MCP server for managing your tailnet from AI assistants",
6
6
  "license": "MIT",