Skip to content

fix(cli): validate mocked MCP fixtures before running - #413

Merged
zpzjzj merged 4 commits into
alibaba:mainfrom
karanb192:fix/validate-mocked-mcp-fixtures
Nov 17, 2026
Merged

zpzjzj merged 4 commits into
alibaba:mainfrom
karanb192:fix/validate-mocked-mcp-fixtures

Conversation

@karanb192

@karanb192 karanb192 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

skill-up validate now reads mocked MCP fixtures declared by the eval and its cases. A missing file, malformed YAML or invalid tool definition previously passed validation and failed only when a run provisioned the server.

Refs #357, item 5.

Changes

  • Reuse the provisioner's existing fixture loading and normalization, including legacy tool_responses and consolidated tools definitions.
  • Report the eval or case and server name on failure. References remain relative to the Skill root. Every declared mocked fixture is checked, including eval-level entries overridden by cases.
  • Skip real servers, so validation does not require their credentials or connectivity. No server processes or model calls are started.
  • Update the English and Chinese CLI guides and changelog.

Test plan

  • make verify with Go 1.26.10 and pinned lint tools
  • make test
  • make e2e
  • npm run docs:build
  • CLI tests for eval and case fixtures: missing files, YAML/type errors, missing response, invalid schema, duplicate tool definitions, legacy responses and explicit null responses
  • Real-server references are skipped; the built-in filesystem mock remains valid

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T06:22:30.000336Z 2b988d8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@zpzjzj zpzjzj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zpzjzj
zpzjzj added this pull request to the merge queue Nov 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 16, 2026
@zpzjzj
zpzjzj added this pull request to the merge queue Nov 17, 2026
Merged via the queue into alibaba:main with commit f7e3de2 Nov 17, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants