@mkterswingman/yt-mcp 0.3.3 → 0.3.4

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": "@mkterswingman/yt-mcp",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "YouTube MCP client — local subtitles + remote API proxy",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,13 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * Post-install: if global install + TTY available + not yet set up → auto-run setup.
5
- * Otherwise print a hint.
4
+ * Post-install: show a prominent setup hint for first-time users.
5
+ * Cannot auto-run setup because npm strips TTY from postinstall scripts.
6
6
  */
7
7
 
8
8
  import { existsSync } from "node:fs";
9
9
  import { join } from "node:path";
10
- import { execFileSync } from "node:child_process";
11
10
 
12
11
  const home = process.env.HOME || process.env.USERPROFILE || "";
13
12
  const authFile = join(home, ".yt-mcp", "auth.json");
@@ -17,18 +16,14 @@ if (existsSync(authFile)) {
17
16
  process.exit(0);
18
17
  }
19
18
 
20
- // Not a TTY (CI, Docker, piped) — just print hint
21
- if (!process.stdin.isTTY) {
22
- console.log("\n yt-mcp installed! Run: yt-mcp setup\n");
23
- process.exit(0);
24
- }
25
-
26
- // Auto-launch setup
27
- console.log("\n First time? Starting setup automatically...\n");
28
- try {
29
- execFileSync(process.execPath, [join(import.meta.dirname, "..", "dist", "cli", "index.js"), "setup"], {
30
- stdio: "inherit",
31
- });
32
- } catch {
33
- console.log("\n Setup interrupted. Run later: yt-mcp setup\n");
34
- }
19
+ console.log("");
20
+ console.log(" ╔═══════════════════════════════════════════╗");
21
+ console.log(" ║ ║");
22
+ console.log(" ║ yt-mcp installed successfully! 🎉 ║");
23
+ console.log(" ║ ║");
24
+ console.log(" ║ Run this to get started: ║");
25
+ console.log(" ║ ║");
26
+ console.log(" ║ yt-mcp setup");
27
+ console.log(" ║ ║");
28
+ console.log(" ╚═══════════════════════════════════════════╝");
29
+ console.log("");