Skip to content

Commit bc9d1e6

Browse files
cliffhallclaude
andcommitted
ci: add mcp-interface-diff.yml as a dispatch-only placeholder
Step 1 of the staged rename of everything-mcp-diff.yml (#5463). GitHub dispatches a workflow only when its file exists on the default branch, and the version workflows dispatch the diff by file name from v2/main, so the new name ships to main first as a placeholder with only a workflow_dispatch trigger. #5527 then moves the diff into it and switches the callers. A test pins that the placeholder is dispatch-only and that no version workflow dispatches it yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 6cfff62 commit bc9d1e6

4 files changed

Lines changed: 61 additions & 0 deletions

File tree

‎.github/workflows/everything-mcp-diff.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
# dispatches only a workflow whose file exists on the default branch (`main`),
5353
# and both version workflows dispatch this one by file name from `v2/main`, so
5454
# renaming it here would break their dispatch until the next milestone merge.
55+
# The rename is staged instead: `mcp-interface-diff.yml` lands on `main` first
56+
# as a dispatch-only placeholder (#5463), then #5527 moves this file's contents
57+
# there, switches the callers and deletes this file.
5558
#
5659
# See: https://github.com/modelcontextprotocol/inspector/issues/1034
5760
name: MCP Interface Diff
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Placeholder for the MCP interface diff's future file name (#5463, Step 1 of
2+
# a rename staged across a milestone merge).
3+
#
4+
# The interface diff lives in `everything-mcp-diff.yml`, a name left over from
5+
# when it diffed only the Everything server. GitHub dispatches a workflow only
6+
# when its file exists on the default branch (`main`), and both version
7+
# workflows (`version-packages.yml`, `prepare-python-release.yml`) dispatch
8+
# the diff by file name from `v2/main`. Renaming it in one step on `v2/main`
9+
# would break their dispatch until the next milestone merge. So the rename is
10+
# staged:
11+
#
12+
# 1. This file ships to `main` in a milestone merge. It is a placeholder, not
13+
# a copy of the diff: a dispatch resolves the file name on `main` but runs
14+
# the file as it is on the dispatched ref, so a placeholder makes the name
15+
# dispatchable as well as a copy would, without a second copy to keep in
16+
# step meanwhile. It has only a `workflow_dispatch` trigger, so it never
17+
# runs beside the real diff on a push or a pull request.
18+
# 2. After that merge, #5527 (Step 2) moves `everything-mcp-diff.yml`'s
19+
# contents here, switches the callers to this name, and deletes the old
20+
# file.
21+
#
22+
# Until then, nothing dispatches this file, and a manual dispatch only says
23+
# where the diff is.
24+
name: MCP Interface Diff (rename placeholder)
25+
26+
on:
27+
workflow_dispatch:
28+
29+
permissions:
30+
contents: read
31+
32+
jobs:
33+
placeholder:
34+
name: Point to the interface diff
35+
timeout-minutes: 5
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Say where the interface diff runs
39+
run: |
40+
echo "This file is a placeholder for a staged rename (#5463, #5527)."
41+
echo "The MCP interface diff runs from .github/workflows/everything-mcp-diff.yml:"
42+
echo " gh workflow run everything-mcp-diff.yml --ref <branch>"

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ servers/
6464
├── .github/workflows/ typescript.yml, python.yml (per-package CI), release.yml (publishes on a GitHub Release),
6565
│ version-packages.yml (the changesets PR), prepare-python-release.yml (the CalVer PR),
6666
│ everything-mcp-diff.yml (each changed server's interface diff on PRs),
67+
│ mcp-interface-diff.yml (a dispatch-only placeholder for that file's new name, #5463),
6768
│ main-source.yml (a PR into main must bring nothing that is not on v2/main),
6869
│ and the scheduled sweeps that file issues: dependency-refresh.yml, dependabot-alerts.yml, sdk-watch.yml
6970
├── .github/ISSUE_TEMPLATE/ Bug and feature issue forms; config.yml routes security and new servers away

‎scripts/version-pr-ci.test.mjs‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,18 @@ test("RELEASING.md names the statuses a version PR is merged on", () => {
257257
assert.ok(releasing.includes(`\`${context}\``), context);
258258
assert.doesNotMatch(releasing, /Close and reopen the PR to run CI/);
259259
});
260+
261+
// #5463 (Step 1 of a staged rename): `mcp-interface-diff.yml` exists so the
262+
// name is on `main` before #5527 (Step 2) points the version workflows at it.
263+
// Until then it must not run beside the real diff on a push or a pull
264+
// request, and nothing may dispatch it yet: the version workflows keep
265+
// dispatching `everything-mcp-diff.yml` (pinned in VERSION_WORKFLOWS above).
266+
test("mcp-interface-diff.yml is a dispatch-only placeholder until Step 2", () => {
267+
const wf = workflow("mcp-interface-diff.yml");
268+
assert.deepEqual(Object.keys(wf.on), ["workflow_dispatch"]);
269+
for (const { file } of VERSION_WORKFLOWS)
270+
assert.ok(
271+
!read(`.github/workflows/${file}`).includes("mcp-interface-diff.yml"),
272+
`${file} does not dispatch the placeholder yet`,
273+
);
274+
});

0 commit comments

Comments
 (0)