Fix MCP dep tool parameter names to match CLI (issue_id/depends_on_id)
- Changed from confusing from_id/to_id to clear issue_id/depends_on_id - Matches CLI convention: bd dep add [issue-id] [depends-on-id] - Updated all tests and implementations - Fixes GH #113 where Claude Code was creating dependencies backwards Closes bd-58 Amp-Thread-ID: https://ampcode.com/threads/T-f01aca11-a10f-4908-9ce6-7e1734f2068f Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -237,7 +237,7 @@ async def test_beads_add_dependency_success():
|
||||
|
||||
with patch("beads_mcp.tools._get_client", return_value=mock_client):
|
||||
result = await beads_add_dependency(
|
||||
from_id="bd-2", to_id="bd-1", dep_type="blocks"
|
||||
issue_id="bd-2", depends_on_id="bd-1", dep_type="blocks"
|
||||
)
|
||||
|
||||
assert "Added dependency" in result
|
||||
@@ -258,7 +258,7 @@ async def test_beads_add_dependency_error():
|
||||
|
||||
with patch("beads_mcp.tools._get_client", return_value=mock_client):
|
||||
result = await beads_add_dependency(
|
||||
from_id="bd-2", to_id="bd-1", dep_type="blocks"
|
||||
issue_id="bd-2", depends_on_id="bd-1", dep_type="blocks"
|
||||
)
|
||||
|
||||
assert "Error" in result
|
||||
|
||||
Reference in New Issue
Block a user