Commit 1b1d404
fix: handle Windows drive letters in update_claude_config
Before this fix, `update_claude_config` would incorrectly split Windows paths
like `C:\Users\foo\server.py` on the drive letter colon, treating
`\Users\foo\server.py` as an object suffix. This would generate broken config
entries that made MCP servers unlaunchable from Claude Desktop on Windows.
Apply the same Windows drive-letter detection logic already present in
`_parse_file_path` (cli.py:97-102): check if position 1 is a colon, and if so,
only consider colons after position 2 as object-suffix separators.
Add test coverage for Windows paths with and without `:object` suffixes.
Co-authored-by: Felix Weinberger <felixweinberger@users.noreply.github.com>1 parent 058a5b3 commit 1b1d404
2 files changed
+41
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
0 commit comments