Commit f90d251
committed
fix(accessor): correct v1.2.1 entry point return type
Fix get_entry_point() method in PackageAccessorV1_2_1 to return
the full entry_point dict instead of just the mcp_server value.
Root cause: Method was returning metadata.get('entry_point').get('mcp_server')
which only returned the string value, but callers expected the full dict
with both mcp_server and hatch_mcp_server keys.
Solution: Return metadata.get('entry_point', {}) to provide full dict.
Update get_mcp_entry_point() to extract mcp_server value from the dict.
This fixes test failures in test_package_service.py where entry_point
was expected to be a dict but received a string.1 parent d129b65 commit f90d251
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | | - | |
| 43 | + | |
40 | 44 | | |
41 | | - | |
42 | | - | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | | - | |
| 54 | + | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
0 commit comments