Commit 50345a3
LittleCoinCoin
fix(mcp): remove incorrect absolute path validation for Claude Desktop
Claude Desktop accepts both absolute and relative paths for commands,
resolving them at runtime using the system PATH. The validation logic
incorrectly enforced absolute path requirements that Claude Desktop
itself does not have.
Changes:
- Remove Path.is_absolute() check from ClaudeHostStrategy.validate_server_config()
- Accept any command (relative or absolute) or URL
- Update test mock to match fixed behavior
- Add documentation explaining Claude Desktop's actual behavior
Evidence: User's working configuration contains relative path 'mamba'
that was successfully synced and functions correctly in Claude Desktop.
Impact:
- Fixes: hatch mcp configure fails for claude-desktop with relative paths
- Backward compatible: absolute paths still work
- Test results: 284/286 MCP tests passing (2 unrelated failures)
Root cause: Misinterpretation of Claude Desktop requirements led to
overly restrictive validation that didn't match actual behavior.1 parent 72ff2be commit 50345a3
File tree
2 files changed
+18
-9
lines changed- hatch/mcp_host_config
- tests
2 files changed
+18
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| |||
0 commit comments