Repository navigation
Conversation
Case-level mcp.servers entries were checked for a name, duplicates and mode, but the eval-level list was not. An empty or repeated name and a missing or misspelled mode such as 'mock' passed validate. A duplicate silently replaced the earlier server for cases without their own mcp block and failed the merge for cases with one; a bad mode failed only once a run started.
Treat a whitespace-only name as missing, as the case merge does, test through ValidateEvalConfig, and describe duplicate handling per path.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Thanks for moving eval-level MCP validation earlier. I traced both |
Summary
An eval-level server with
mode: mockpassed validation and failed later during provisioning. Validation now reports the server index for a missing or unsupported mode, a blank name, or a duplicate name.Changes
Eval-level servers accept
realandmocked. A name must contain a non-whitespace character and be unique within the list. Case-level overrides keep their own validation rules.Related issues
Refs #407.
Test plan
Table tests cover valid mixed modes, an empty list, blank and repeated names, and missing or misspelled modes. Entry-point regressions check a blank name and a named server with
mode: mockthroughValidateEvalConfig.Local checks passed with
make verify,go test -race ./...and the Codex plugin unit tests.