fix: rewrite labels-sync.md with explicit repo detection steps #78

Merged
lmiranda merged 1 commits from fix/labels-sync-repo-detection into development 2026-01-21 22:26:12 +00:00
Owner

Root Cause

The MCP server cannot auto-detect the repository because it runs with cwd set to the plugin directory, not the user's project. Previous "fixes" (PRs #70-72) were incorrect.

Solution

The command documentation now explicitly instructs Claude to:

  1. Run git remote get-url origin via Bash first
  2. Parse the URL to extract owner/repo
  3. Pass repo parameter to ALL MCP tool calls

Changes

  • Added "CRITICAL: Execution Steps" with numbered steps
  • Added "DO NOT" section preventing common mistakes
  • Removed "Label Reference" section (was causing file creation prompts)
  • All MCP tool examples show required repo parameter

Fixes

Fixes #77

🤖 Generated with Claude Code

## Root Cause The MCP server **cannot** auto-detect the repository because it runs with `cwd` set to the plugin directory, not the user's project. Previous "fixes" (PRs #70-72) were incorrect. ## Solution The command documentation now explicitly instructs Claude to: 1. Run `git remote get-url origin` via Bash first 2. Parse the URL to extract `owner/repo` 3. Pass `repo` parameter to ALL MCP tool calls ## Changes - Added "CRITICAL: Execution Steps" with numbered steps - Added "DO NOT" section preventing common mistakes - Removed "Label Reference" section (was causing file creation prompts) - All MCP tool examples show required `repo` parameter ## Fixes Fixes #77 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 1 commit 2026-01-21 22:25:53 +00:00
ROOT CAUSE: The MCP server runs with cwd set to the plugin directory,
not the user's project. It cannot auto-detect the repository.

SOLUTION: The command documentation now explicitly instructs Claude to:
1. Run `git remote get-url origin` via Bash first
2. Parse the URL to extract owner/repo
3. Pass repo parameter to ALL MCP tool calls

Also removed the "Label Reference" section that was causing Claude
to ask about creating a local reference file.

Key changes:
- Added "CRITICAL: Execution Steps" section with numbered steps
- Added "DO NOT" section to prevent common mistakes
- Removed confusing reference file documentation
- Made all MCP tool calls show required repo parameter

Fixes #77

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 40af243229 into development 2026-01-21 22:26:12 +00:00
lmiranda deleted branch fix/labels-sync-repo-detection 2026-01-21 22:26:12 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#78