Describe the Bug
repowise init always merges a repowise entry into the repo-root .mcp.json and writes .vscode/mcp.json, with no way to opt out. --index-only, all --no-* flags, REPOWISE_SKIP_EDITOR_SETUP=1, and even the new --no-editor-setup (#1086) don't stop it — that flag only gates the machine-wide register_editor_clients path, while write_editor_project_files() still runs unconditionally in init_cmd/command.py.
This breaks running init as an automated setup step (e.g. on git worktree creation): every run leaves a dirty working tree, and repos that commit a hand-maintained .mcp.json get an unwanted diff each time.
Steps to Reproduce
- In a clean repo,
export REPOWISE_SKIP_EDITOR_SETUP=1
- Run
repowise init --index-only --no-workspace --no-claude-md --no-agents --no-codex --no-distill-hook --yes
- Run
git status
Expected Behavior
With --index-only plus the opt-out flags/env, init writes only .repowise/ and leaves the working tree untouched.
Actual Behavior
Repo-root .mcp.json is modified (a repowise entry merged into mcpServers) and .vscode/mcp.json is created. Nothing prevents it.
Environment
- OS: macOS 26.4 (25E246)
- Python version: 3.12.13
- Repowise version: 0.36.0
- Installation method: pip (
--user)
Additional Context
I think with worktrees it's important to have a clean non-interactive init flag for setup bash scripts to init repowise
Describe the Bug
repowise initalways merges arepowiseentry into the repo-root.mcp.jsonand writes.vscode/mcp.json, with no way to opt out.--index-only, all--no-*flags,REPOWISE_SKIP_EDITOR_SETUP=1, and even the new--no-editor-setup(#1086) don't stop it — that flag only gates the machine-wideregister_editor_clientspath, whilewrite_editor_project_files()still runs unconditionally ininit_cmd/command.py.This breaks running
initas an automated setup step (e.g. on git worktree creation): every run leaves a dirty working tree, and repos that commit a hand-maintained.mcp.jsonget an unwanted diff each time.Steps to Reproduce
export REPOWISE_SKIP_EDITOR_SETUP=1repowise init --index-only --no-workspace --no-claude-md --no-agents --no-codex --no-distill-hook --yesgit statusExpected Behavior
With
--index-onlyplus the opt-out flags/env, init writes only.repowise/and leaves the working tree untouched.Actual Behavior
Repo-root
.mcp.jsonis modified (arepowiseentry merged intomcpServers) and.vscode/mcp.jsonis created. Nothing prevents it.Environment
--user)Additional Context
I think with worktrees it's important to have a clean non-interactive init flag for setup bash scripts to init repowise