Commit 33e8ef3
committed
Fix MCP env var check skipped when any gateway preflight errors
When GatherEnvVarsForTools returned a preflight error for any MCP
toolset, the successfully-gathered env var names from other toolsets
were silently discarded because they were only processed in the else
branch. This meant configs with multiple MCP refs (where at least one
gateway call failed) would bypass all tool env var validation.
Assisted-By: docker-agent1 parent 9dff713 commit 33e8ef3
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
0 commit comments