Commit 6119fe2
LittleCoinCoin
fix: implement environment-specific Python executable path resolution
Root cause: MCP server configurations were using hardcoded 'python' command
instead of environment-specific Python executable paths, causing servers
to run with wrong Python interpreter.
Changes:
- Update get_package_mcp_server_config() to use env_manager.get_current_python_executable()
- Fallback to 'python' if no environment-specific executable available
- Update test to mock get_current_python_executable() method properly
- Test now expects environment-specific path instead of generic 'python'
Resolves Issue 3: Incorrect Python Executable Path
Now generates proper paths like 'C:\Users\eliot\miniforge3\envs\hatch_modeling\python.exe'
instead of generic 'python' command.
Tested: All MCP CLI tests pass (100% success rate)1 parent f7af78a commit 6119fe2
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
100 | | - | |
| 106 | + | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
| |||
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
275 | | - | |
| 277 | + | |
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
| |||
0 commit comments