From 78359528923173e5b99833f3b2986005c2f43632 Mon Sep 17 00:00:00 2001 From: Patrick szymkowiak Date: Tue, 10 Feb 2026 10:40:50 +0100 Subject: [PATCH] fix: default init mode to mcp instead of all MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `vox init` now configures MCP server only by default. The MCP mode provides contextual voice summaries via Claude, replacing the hardcoded "Terminé" Stop hook. Use `vox init -m cli` or `-m all` to opt into the Stop hook. --- README.md | 8 ++++---- src/main.rs | 4 ++-- tests/cli_test.rs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 28b236f..df02503 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,10 @@ Linux requires `sudo apt install libasound2-dev`. ## Usage with Claude Code ```bash -vox init # all integrations (default) -vox init -m mcp # MCP server only -vox init -m cli # CLI hook only -vox init -m skill # slash command only +vox init # MCP server (default) +vox init -m cli # CLAUDE.md + Stop hook +vox init -m skill # /speak slash command +vox init -m all # all of the above ``` Each mode sets up a different integration: diff --git a/src/main.rs b/src/main.rs index f0ca525..d392e6b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,8 +65,8 @@ enum Commands { Stats, /// Set up AI assistant integration (Claude Code + Claude Desktop) Init { - /// Integration mode: mcp, cli, skill, or all (default: all) - #[arg(short, long, default_value = "all")] + /// Integration mode: mcp, cli, skill, or all (default: mcp) + #[arg(short, long, default_value = "mcp")] mode: InitMode, }, /// Launch MCP server (stdio transport for Claude Code / Claude Desktop) diff --git a/tests/cli_test.rs b/tests/cli_test.rs index 338494b..67fef97 100644 --- a/tests/cli_test.rs +++ b/tests/cli_test.rs @@ -281,7 +281,7 @@ fn test_init_creates_files() { let dir = tempfile::tempdir().unwrap(); Command::cargo_bin("vox") .unwrap() - .arg("init") + .args(["init", "-m", "cli"]) .current_dir(dir.path()) .assert() .success() @@ -299,7 +299,7 @@ fn test_init_idempotent() { // First run Command::cargo_bin("vox") .unwrap() - .arg("init") + .args(["init", "-m", "cli"]) .current_dir(dir.path()) .assert() .success(); @@ -307,7 +307,7 @@ fn test_init_idempotent() { // Second run Command::cargo_bin("vox") .unwrap() - .arg("init") + .args(["init", "-m", "cli"]) .current_dir(dir.path()) .assert() .success()