fix: detect project directory correctly for git remote parsing #71
Reference in New Issue
Block a user
Delete Branch "fix/project-directory-detection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #70 - MCP tools require explicit repo format
Root Cause
The MCP server runs with
cwdset to the plugin directory (${CLAUDE_PLUGIN_ROOT}/mcp-servers/gitea), not the users project directory. This caused git remote auto-detection to fail.Fix
Added
_find_project_directory()method with multiple detection strategies:.gitor.env)Tests
Added 3 new tests:
test_find_project_directory_from_envtest_find_project_directory_from_cwdtest_find_project_directory_none_when_no_markersAll 9 config tests passing.
Fixes #70