OpenSpec icon indicating copy to clipboard operation
OpenSpec copied to clipboard

git-automated-worktree skill does not copy .mcp.json to new worktrees

Open WesleyMFrederick opened this issue 9 months ago • 0 comments

Problem

When creating a worktree via the git-automated-worktree skill, .mcp.json is not copied to the new worktree directory. This means MCP servers (DeepWiki, Perplexity, etc.) are unavailable in sessions started from the worktree.

Expected Behavior

.mcp.json should be copied from the source repo to the new worktree so MCP tools are available without manual intervention.

Steps to Reproduce

  1. Run /git-automated-worktree to create a new worktree
  2. Start a Claude Code session in the worktree
  3. MCP tools (e.g., mcp__deepwiki__ask_question) are missing

Fix

Update the worktree creation script to copy .mcp.json alongside other dotfiles.

WesleyMFrederick avatar Mar 05 '26 00:03 WesleyMFrederick