Set WpfDevPackMcp Managed Flag
Sets Managed in ~/.wpf-dev-pack-mcp/state.json (preserving LastPullUtc).
This flag decides how the server refreshes the clone at repoPath.
If $0 is empty, use AskUserQuestion to ask for true or false. Do NOT
proceed until a value is provided.
dotnet "${CLAUDE_PLUGIN_ROOT}/scripts/SetWpfDevPackManaged.cs" "$0"
What it controls (mcp/Git/RepoRefresher.cs):
true— on refresh the server runsgit fetch+git reset --hard origin/<branch>onrepoPath. Use ONLY for a dedicated clone the server created/owns. Never settruewhenrepoPathis your active working repo — a refresh will discard uncommitted changes and reset the branch toorigin/<branch>, destroying local work.false— refresh is non-destructive:git pull --ff-onlywhen the tree is clean, skip when dirty. Use whenrepoPathpoints at your own working clone.
Surface the output verbatim. Inspect the current flag with
/wpf-dev-pack:show-wpf-dev-pack-config.