Commit d0146bd
fix(tools): start_mcp_server 健壮性(.env -PathType Leaf + LASTEXITCODE 检查)
CodeRabbit 增量 review 2 条:
- .env 用 Test-Path -PathType Leaf(排除 .env 是目录的边界,目录会让 uv 失败)。
- cmd /c 后检查 $LASTEXITCODE 非零则 exit(ErrorActionPreference 对原生命令无效,非零退出码不进 catch,否则启动失败仍报成功)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: glm-5.2 <noreply@bigmodel.cn>1 parent ec6d7a4 commit d0146bd
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
0 commit comments