Skip to content

chore(mcp): guard the conformance script and close the gaps left by #905 - #911

Merged
runkids merged 1 commit into
mainfrom
runkids/mcp-conformance-followups
Nov 14, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/mcp-conformance-followups

Conversation

@runkids

@runkids runkids commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

Follow-up to #905. No issue.

What changed

  • Conformance script. scripts/mcp/skills-conformance.sh now exits before doing anything when it is not inside a container. wiki/testing.md says when to run it and what it needs.
  • Translations. The ja, ko, zh-Hans and zh-Hant mcp reference pages gain the example URI skill://_team/tools/pdf that the English page already has.
  • Test. TestServer_DirectoryBrowsingAndResourceMetadata gains two fixtures that put a 4-byte character across the loader's 32 KiB read boundary at 2+2 and 3+1 bytes. The existing fixtures covered only a 1+3 split.

Why

  • The script builds and serves skillshare and runs npm ci. The repository allows those only in the devcontainer, and the script's own comment said so without enforcing it. No doc, runbook, Makefile target or workflow mentioned the script, so nobody would find it.
  • The streaming UTF-8 check decides whether a file is listed as text or binary. Its carried-over bytes were tested for one split position only.

No product behaviour changes.

Validation

In temporary containers from the devcontainer image:

  • make check passed on this branch.
  • The conformance script, with the new guard, ran on an isolated copy of this branch: 45 official checks SUCCESS (enumeration 32, manifest 6, directory 7).
  • python3 scripts/ai-context.py check passed on the host.

Not run: the website production build. Each locale changes one sentence.

Not covered

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check) — for code changes
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR



Follow-up to #905.

The conformance script builds and serves skillshare and runs npm ci, which
the repository only allows inside a container, but nothing stopped it from
running on the host. It now refuses outside a container, with the same check
scripts/hooks/git-e2e.sh uses. Nothing referred to the script either, so the
testing topic now says when and how to run it.

The translated mcp reference pages left out the example URI the English page
gives for a skill root. All four now carry it.

The streaming UTF-8 check in the package loader was only exercised with a
rune split one byte before the read boundary. Two fixtures in the existing
directory test add the 2+2 and 3+1 splits, so a mistake in the carried-over
bytes shows up as a wrong MIME type.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 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-14T16:28:20.605097Z 8bf3794 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.

@runkids
runkids merged commit 1f0077d into main Nov 14, 2026
9 checks passed
@runkids
runkids deleted the runkids/mcp-conformance-followups branch November 14, 2026 16:37
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.

1 participant