MCP server for tangled

fix branch response parsing: use reference.name and reference.hash

+3 -2
+3 -2
src/tangled_mcp/server.py
··· 67 branches = [] 68 if "branches" in response: 69 for branch_data in response["branches"]: 70 branches.append( 71 BranchInfo( 72 - name=branch_data.get("name", ""), 73 - sha=branch_data.get("sha", ""), 74 ) 75 ) 76
··· 67 branches = [] 68 if "branches" in response: 69 for branch_data in response["branches"]: 70 + ref = branch_data.get("reference", {}) 71 branches.append( 72 BranchInfo( 73 + name=ref.get("name", ""), 74 + sha=ref.get("hash", ""), 75 ) 76 ) 77