Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
a2cf253
fix(filesystem): describe edit_file's oldText matching rule in its sc…
cliffhall Nov 30, 2026
6fcfd18
test(everything): pin that error paths carry no credential value
cliffhall Nov 30, 2026
f4acaa5
fix(everything): fall back to the default on an unusable gzip limit
cliffhall Nov 30, 2026
954ec01
test(filesystem): pin the new oldText description in the schema snapshot
cliffhall Nov 30, 2026
d104316
test(memory): pin what a save does when the graph file path is a symlink
cliffhall Nov 30, 2026
9ff9867
docs(memory): say what happens to lines of the memory file the server…
cliffhall Nov 30, 2026
c268819
test(memory): pin the neighbouring faces of three pinned invariants
cliffhall Nov 30, 2026
9167dc5
fix(memory): store a repeated observation once in create_entities
cliffhall Nov 30, 2026
edb349e
fix(memory): report relations create_relations skipped
cliffhall Nov 30, 2026
2b64c89
fix(memory): count a repeated delete request item once
cliffhall Nov 30, 2026
1616778
fix(filesystem): ship the root LICENSE in the npm package and correct…
cliffhall Nov 30, 2026
90e20f7
fix(memory): fail every tool with an actionable error when the memory…
cliffhall Nov 30, 2026
b076e50
fix(memory): clear a crash-left lock guard by rename-aside, not by path
cliffhall Nov 30, 2026
ac38a2c
chore: ship the root LICENSE in the everything, memory and sequential…
cliffhall Nov 30, 2026
e954ef4
feat(git): describe every tool input property
cliffhall Nov 30, 2026
73720f9
test(fetch): run subprocesses under stretched budgets in tests
cliffhall Nov 30, 2026
f7adcea
perf(memory): index the write methods' lookups with Set and Map
cliffhall Nov 30, 2026
1de9642
docs: extend the GitHub pacing rule to expensive reads
cliffhall Nov 30, 2026
9bf9ad1
fix(git): parse GIT_AUTHOR_DATE/GIT_COMMITTER_DATE with git itself
cliffhall Nov 30, 2026
6ad13e1
fix(git): list bare branch names from git_branch
cliffhall Nov 30, 2026
b626625
fix(docker): end every image on docker stop instead of killing it at …
cliffhall Nov 30, 2026
2b02c2f
test(memory): drive the clock in the heartbeat freshness test instead…
cliffhall Nov 30, 2026
ae2c4c4
feat(git): name the --repository in the server's instructions
cliffhall Nov 30, 2026
1bd3262
fix(time): report is_dst the same for negative-DST zones on every tz …
cliffhall Nov 30, 2026
9d43f2b
test(everything): clear GZIP_ALLOWED_DOMAINS before the gzip refusal …
cliffhall Nov 30, 2026
f0e16a0
docs(memory): separate an unreachable line from a reachable namesake,…
cliffhall Nov 30, 2026
b6cd3f1
docs(board-ops): re-check a reused listing, and capture REST pages be…
cliffhall Nov 30, 2026
0875cae
fix(memory): give reads the missing-directory error for ENOTDIR too
cliffhall Nov 30, 2026
41b9ff7
test(image-smoke): keep the no-stop-check path covered with a made-up…
cliffhall Nov 30, 2026
d871592
test(memory): bound the heartbeat test's waits and clean up on a failure
cliffhall Nov 30, 2026
76047ea
fix(time): judge zero-dst periods by both neighbours, and negative ds…
cliffhall Nov 30, 2026
3895000
Merge pull request #5709 from modelcontextprotocol/v2/docs/5663-pacin…
cliffhall Nov 30, 2026
f84fff3
Merge pull request #5704 from modelcontextprotocol/v2/fix/5688-filesy…
cliffhall Nov 30, 2026
465d3bd
Merge pull request #5712 from modelcontextprotocol/v2/fix/5639-filesy…
cliffhall Nov 30, 2026
86e6d19
Merge remote-tracking branch 'origin/v2/main' into v2/chore/5700-ts-l…
cliffhall Nov 30, 2026
157c06c
docs(memory): name every gap the guard put-back leaves
cliffhall Nov 30, 2026
274c802
Merge remote-tracking branch 'origin/v2/main' into v2/chore/5658-fetc…
cliffhall Nov 30, 2026
23d42da
Merge remote-tracking branch 'origin/v2/main' into v2/fix/5686-time-n…
cliffhall Nov 30, 2026
8cecbb1
Merge pull request #5714 from modelcontextprotocol/v2/chore/5700-ts-l…
cliffhall Nov 30, 2026
429e1c5
Merge remote-tracking branch 'origin/v2/main' into v2/fix/5642-gzip-l…
cliffhall Nov 30, 2026
d25695d
Merge remote-tracking branch 'origin/v2/main' into v2/chore/5658-fetc…
cliffhall Nov 30, 2026
df758df
Merge #5707 (#5653) into the #5693 branch to resolve the createEntiti…
cliffhall Nov 30, 2026
0aa4a38
Merge #5711 (#5655) into the #5693 branch to resolve the delete-metho…
cliffhall Nov 30, 2026
f3f9f97
test(memory): simulate the stat failure rather than rely on a mode-00…
cliffhall Nov 30, 2026
76273c1
test: skip the SIGTERM exit tests on Windows, which cannot deliver th…
cliffhall Nov 30, 2026
48df5b8
fix(git): split git_branch's listing on LF only
cliffhall Nov 30, 2026
aca1af1
Merge remote-tracking branch 'origin/v2/main' into v2/fix/5686-time-n…
cliffhall Nov 30, 2026
9d40988
Merge pull request #5703 from modelcontextprotocol/v2/fix/5642-gzip-l…
cliffhall Nov 30, 2026
05fe6e1
Merge remote-tracking branch 'origin/v2/main' into v2/chore/5646-erro…
cliffhall Nov 30, 2026
f549ca9
Merge pull request #5721 from modelcontextprotocol/v2/chore/5658-fetc…
cliffhall Nov 30, 2026
bd46e7f
test: kill and reap a SIGTERM probe child that hangs, inside the test…
cliffhall Nov 30, 2026
79b9f02
test(memory): assert the created relations without pinning create_rel…
cliffhall Nov 30, 2026
9d55e43
Merge pull request #5716 from modelcontextprotocol/v2/fix/5686-time-n…
cliffhall Nov 30, 2026
dcb5cb3
Merge pull request #5702 from modelcontextprotocol/v2/chore/5646-erro…
cliffhall Nov 30, 2026
e394c90
Merge remote-tracking branch 'origin/v2/main' into v2/feat/5611-docke…
cliffhall Nov 30, 2026
9634716
Merge pull request #5710 from modelcontextprotocol/v2/feat/5610-git-r…
cliffhall Nov 30, 2026
b4e12df
Merge pull request #5722 from modelcontextprotocol/v2/feat/5647-git-i…
cliffhall Nov 30, 2026
1890d93
Merge pull request #5726 from modelcontextprotocol/v2/fix/5690-git-co…
cliffhall Nov 30, 2026
08d0e79
Merge pull request #5727 from modelcontextprotocol/v2/fix/5641-git-br…
cliffhall Nov 30, 2026
fac7632
Merge remote-tracking branch 'origin/v2/main' into v2/feat/5611-docke…
cliffhall Nov 30, 2026
0e8a099
Merge pull request #5725 from modelcontextprotocol/v2/feat/5611-docke…
cliffhall Nov 30, 2026
692f0f6
Merge pull request #5701 from modelcontextprotocol/v2/chore/5645-memo…
cliffhall Nov 30, 2026
73ee092
Merge pull request #5705 from modelcontextprotocol/v2/chore/5644-memo…
cliffhall Nov 30, 2026
6347e09
Merge pull request #5706 from modelcontextprotocol/v2/docs/5609-memor…
cliffhall Nov 30, 2026
3b7c042
Merge pull request #5715 from modelcontextprotocol/v2/fix/5680-memory…
cliffhall Nov 30, 2026
d6a81ef
Merge pull request #5719 from modelcontextprotocol/v2/fix/5624-memory…
cliffhall Nov 30, 2026
e232380
Merge pull request #5713 from modelcontextprotocol/v2/fix/5689-memory…
cliffhall Nov 30, 2026
28761d0
Merge pull request #5708 from modelcontextprotocol/v2/fix/5654-memory…
cliffhall Nov 30, 2026
aabf381
Merge pull request #5707 from modelcontextprotocol/v2/fix/5653-memory…
cliffhall Nov 30, 2026
706d3f8
Merge pull request #5711 from modelcontextprotocol/v2/fix/5655-memory…
cliffhall Nov 30, 2026
d1d7add
Merge remote-tracking branch 'origin/v2/main' into v2/feat/5693-memor…
cliffhall Nov 30, 2026
002bcce
Merge pull request #5724 from modelcontextprotocol/v2/feat/5693-memor…
cliffhall Nov 30, 2026
ab01169
Gate lease: configurable slots, with a per-gate Vitest worker share
cliffhall Dec 4, 2026
afc2340
Pin the lease tests to one slot, so a slot count exported for the gat…
cliffhall Dec 4, 2026
30a5a92
Strip every inherited lease variable from the lease tests' environment
cliffhall Dec 4, 2026
cd6c590
Gate: run each suite once, scope per-server stages, lighter draft gate
cliffhall Dec 4, 2026
af7033b
docs(security-advisory): isolate each advisory's fix branch and push …
cliffhall Dec 4, 2026
2b5d4b7
test(security-advisory): reword the same-code eval case so it measure…
cliffhall Dec 4, 2026
ff5fc78
docs(security-advisory): compare only reporter credits before combini…
cliffhall Dec 4, 2026
f74cc70
Serialize stale-slot takeover: only the queue head asks, and a takeov…
cliffhall Dec 4, 2026
1ad5861
Gate: read GATE_BASE in resolveBase so every stage scopes alike
cliffhall Dec 4, 2026
e1aaff4
Gate: never read v2/main or main as a draft; shallow-safe base test
cliffhall Dec 4, 2026
362267e
fix(fetch): harden response handling
cliffhall Dec 5, 2026
47a596a
fix(fetch): harden content extraction
cliffhall Dec 5, 2026
a596a42
fix(everything): harden gzip-file-as-resource
cliffhall Dec 5, 2026
5fb78f3
fix(memory): preserve saved-file permission bits from the loaded handle
cliffhall Dec 5, 2026
76c3e90
Merge pull request #5769 from modelcontextprotocol/v2/fix/ghsa-72p8-6…
cliffhall Dec 5, 2026
f900c97
Merge pull request #5771 from modelcontextprotocol/v2/fix/ghsa-8hv3-6…
cliffhall Dec 5, 2026
619f7ee
Merge remote-tracking branch 'origin/v2/main' into HEAD
cliffhall Dec 5, 2026
dc26de5
Merge pull request #5773 from modelcontextprotocol/v2/fix/ghsa-669j-g…
cliffhall Dec 5, 2026
2bb81c2
fix(git): harden git directory link checks
cliffhall Dec 5, 2026
baacec6
Merge pull request #5772 from modelcontextprotocol/v2/fix/ghsa-3xw7-4…
cliffhall Dec 5, 2026
31ad8ae
Merge pull request #5786 from modelcontextprotocol/v2/fix/ghsa-v8h9-x…
cliffhall Dec 5, 2026
96f4597
fix(git): harden shared file checks
cliffhall Dec 5, 2026
22e6d1f
fix(memory): refresh the lock-file heartbeat through a single no-foll…
cliffhall Dec 5, 2026
9bbd04a
Merge pull request #5770 from modelcontextprotocol/v2/fix/ghsa-8qfg-5…
cliffhall Dec 5, 2026
1858624
Merge pull request #5795 from modelcontextprotocol/v2/fix/ghsa-m7x8-g…
cliffhall Dec 5, 2026
e8d2597
fix(git): harden repository argument checks
cliffhall Dec 5, 2026
d0b7f31
Merge pull request #5796 from modelcontextprotocol/v2/fix/ghsa-jc92-w…
cliffhall Dec 5, 2026
ccc72ad
fix(git): harden working tree file handling
cliffhall Dec 5, 2026
8cd3377
Merge pull request #5797 from modelcontextprotocol/v2/fix/ghsa-f3r7-6…
cliffhall Dec 5, 2026
55869c7
fix(git): harden index entry checks
cliffhall Dec 5, 2026
3a5ca8f
Merge pull request #5798 from modelcontextprotocol/v2/fix/ghsa-22r3-h…
cliffhall Dec 5, 2026
5421ab0
fix(git): harden merge tree checks
cliffhall Dec 5, 2026
d0b4727
Merge pull request #5799 from modelcontextprotocol/v2/fix/ghsa-9mfh-3…
cliffhall Dec 5, 2026
45507c6
fix(git): harden checkout and merge of submodule paths
cliffhall Dec 5, 2026
1b73b94
Merge pull request #5800 from modelcontextprotocol/v2/fix/ghsa-p8rj-2…
cliffhall Dec 5, 2026
042cc7f
fix(git): harden submodule git directory checks
cliffhall Dec 5, 2026
505bca3
Merge pull request #5801 from modelcontextprotocol/v2/fix/ghsa-6c7c-7…
cliffhall Dec 5, 2026
b101983
fix(git): pin repository locations per call
cliffhall Dec 5, 2026
469fa46
fix(filesystem): harden read-only directory handling
cliffhall Dec 5, 2026
61047da
fix(filesystem): harden path resolution
cliffhall Dec 5, 2026
188ad22
Merge pull request #5802 from modelcontextprotocol/v2/fix/ghsa-74v6-p…
cliffhall Dec 5, 2026
06568a1
fix(filesystem): harden directory argument handling
cliffhall Dec 5, 2026
96b8c57
Merge pull request #5816 from modelcontextprotocol/v2/fix/ghsa-74fx-4…
cliffhall Dec 5, 2026
f911233
Merge pull request #5817 from modelcontextprotocol/v2/fix/ghsa-6ffx-f…
cliffhall Dec 5, 2026
83313f1
Merge pull request #5818 from modelcontextprotocol/v2/fix/ghsa-v9mf-5…
cliffhall Dec 5, 2026
ba3d43c
fix(git): refuse configuration paths outside the repository
cliffhall Dec 5, 2026
127fd7d
fix(git): harden submodule handling
cliffhall Dec 5, 2026
146e3a7
fix(git): harden nested repository configuration
cliffhall Dec 5, 2026
6371c3b
fix(git): harden index listing
cliffhall Dec 5, 2026
f89fbc9
fix(git): find submodules where git looks for them
cliffhall Dec 5, 2026
dfeaa1b
fix(git): pin signing programs
cliffhall Dec 5, 2026
9b12bc7
fix(git): refuse configuration a write can change
cliffhall Dec 5, 2026
83cebb7
fix(git): check the repository git and the server open agree
cliffhall Dec 5, 2026
3524fdc
Merge pull request #5803 from modelcontextprotocol/v2/fix/ghsa-q89q-h…
cliffhall Dec 5, 2026
90e2b01
Merge pull request #5809 from modelcontextprotocol/v2/fix/ghsa-33p6-8…
cliffhall Dec 5, 2026
077bf32
Merge pull request #5810 from modelcontextprotocol/v2/fix/ghsa-j4hr-p…
cliffhall Dec 5, 2026
0dcd4f7
Merge pull request #5811 from modelcontextprotocol/v2/fix/ghsa-72h3-v…
cliffhall Dec 5, 2026
ab680b8
Merge pull request #5812 from modelcontextprotocol/v2/fix/ghsa-pjvq-3…
cliffhall Dec 5, 2026
7a5f269
Merge pull request #5813 from modelcontextprotocol/v2/fix/ghsa-3r4g-w…
cliffhall Dec 5, 2026
5ca54c8
Merge pull request #5814 from modelcontextprotocol/v2/fix/ghsa-vv37-2…
cliffhall Dec 5, 2026
a275196
Merge pull request #5815 from modelcontextprotocol/v2/fix/ghsa-xg98-h…
cliffhall Dec 5, 2026
ad9a7c7
Merge pull request #5760 from modelcontextprotocol/v2/docs/5756-advis…
cliffhall Dec 5, 2026
597a263
Merge pull request #5758 from modelcontextprotocol/v2/chore/5757-gate…
cliffhall Dec 5, 2026
5d7b27e
Merge origin/v2/main (597a263e, with #5758) into v2/chore/5759-gate-s…
cliffhall Dec 5, 2026
93f0355
Merge pull request #5761 from modelcontextprotocol/v2/chore/5759-gate…
cliffhall Dec 5, 2026
a095d7d
chore(deps): require minimatch 11.0.8 or later
cliffhall Dec 5, 2026
f27b764
Merge pull request #5821 from modelcontextprotocol/v2/chore/5740-mini…
cliffhall Dec 5, 2026
78ae7de
chore(deps): pin cross-spawn past three Windows injection advisories
cliffhall Dec 5, 2026
5e39582
Merge pull request #5822 from modelcontextprotocol/v2/chore/5820-rele…
cliffhall Dec 5, 2026
e97638e
chore: version packages
github-actions[bot] Dec 5, 2026
852cf65
Merge pull request #5720 from modelcontextprotocol/changeset-release/…
cliffhall Dec 5, 2026
55eba5d
chore: stamp Python CalVer versions for 2026.12.5
github-actions[bot] Dec 5, 2026
a399368
Merge pull request #5823 from modelcontextprotocol/v2/chore/5820-pyth…
cliffhall Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 106 additions & 7 deletions .claude/skills/board-ops/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,41 @@ about the board's size; don't make the recipes depend on it being right.
file, an incomplete dump is deleted, so that step fails on the missing file
rather than running on partial data.

### One listing per batch

The whole-board listing is the costliest read these recipes make (about 50
GraphQL points), so **a batch takes it once and every lookup in the batch
reads that one result**, as `AGENTS.md` **Pacing GitHub calls** says. Never
re-list per item, and never re-list to test whether a refusal has lifted.

```sh
# board_list → BOARD holds the complete listing, or is empty and the call fails.
board_list() {
BOARD=$(gh project item-list 43 --owner modelcontextprotocol --format json --limit 2000) || BOARD=
jq -e '(.items | length) == .totalCount' <<<"$BOARD" >/dev/null 2>&1 \
|| { echo "item-list incomplete or failed — raise --limit; not concluding anything" >&2
BOARD=; return 1; }
}

# issue_item <N> → the item id of this repo's issue N in BOARD, or nothing.
# Arguments reach jq through --args, never as shell positional parameters (#5160).
issue_item() {
jq -r '($ARGS.positional[0] | tonumber) as $n | .items[]
| select(.content.type=="Issue" and .content.repository=="modelcontextprotocol/servers"
and .content.number==$n) | .id' --args "$@" <<<"$BOARD"
}

board_list # once, at the start of the batch
```

Every lookup below that needs the listing runs `[ -n "$BOARD" ] || board_list`
first, so it reuses a listing it is given and fetches only when there is none.
A listing is a snapshot: it holds no card added after it was taken, so take a
fresh one for the next batch, not for the next item. For a batch of issues,
`issue_item` replaces the per-issue lookup in
[Move an existing card](#move-an-existing-card); for one issue, that lookup is
cheaper than a listing.

## Recipes

Every recipe below assumes `FIELDS` and `opt` from [IDs](#ids) are defined in
Expand Down Expand Up @@ -263,20 +298,22 @@ finds the follow-up.

⚠️ **A draft card has no repository and no issue number**, so the issue-side
lookup above cannot find one. Look it up by its **bracketed GHSA id** in the
full listing, checked for truncation, then feed that item id to `item-edit` or
`item-delete` exactly as usual:
complete listing from [One listing per batch](#one-listing-per-batch), then
feed that item id to `item-edit` or `item-delete` exactly as usual. Over
several advisories, run this block once per GHSA against the same `BOARD`:

```sh
GHSA=GHSA-xxxx-yyyy-zzzz # the advisory's real id
ITEM_ID= # never let an earlier lookup's id survive a failed one
LOOKED= # set only by a lookup over a COMPLETE listing
BOARD=$(gh project item-list 43 --owner modelcontextprotocol --format json --limit 2000)
if jq -e '(.items | length) == .totalCount' <<<"$BOARD" >/dev/null; then
[ -n "$BOARD" ] || board_list # reuse the batch's listing; fetch only if there is none
# Re-check what was handed in: a BOARD from another recipe may be truncated.
if jq -e '(.items | length) == .totalCount' <<<"$BOARD" >/dev/null 2>&1; then
ITEM_ID=$(jq -r --arg p "[$GHSA]" '.items[] | select(.content.type=="DraftIssue")
| select(.content.title | startswith($p)) | .id' <<<"$BOARD") && LOOKED=1
[ -n "$ITEM_ID" ] || echo "no draft card titled [$GHSA] on #43" >&2
else
echo "item-list incomplete or failed — raise --limit; not concluding anything" >&2
echo "BOARD incomplete or failed — run board_list again; not concluding anything" >&2
fi
```

Expand All @@ -299,6 +336,10 @@ fi
# Then the two chained item-edit calls from "Add a card and set its fields".
```

A card this creates is not in `BOARD`, which predates it, so a batch never
runs the lookup and create a second time for the same GHSA against one
listing: it would find nothing and create a duplicate.

**Convert** it to an issue when its fix is ready to merge, keeping its opaque
title; a follow-up card converts only after the advisory is **published**. When
each happens, and what the issue gets, is the `/security-advisory` flow. The web
Expand All @@ -315,6 +356,64 @@ REPO_ID=$(gh api repos/modelcontextprotocol/servers --jq .node_id) || REPO_ID=
The card keeps its place and its field values; the new issue takes the card's
title and body.

## When GraphQL is exhausted: the REST endpoints

The GraphQL quota is per account, so concurrent sessions can exhaust it
together (`AGENTS.md` **Pacing GitHub calls**). Then every `gh project`
command fails with `unknown owner type`, because its first owner lookup is
refused. Confirm it before doing anything else:

```sh
gh api rate_limit --jq '.resources | {graphql, core}'
```

Projects v2 also has REST endpoints, which draw on the separate **core**
quota. They cover listing the fields and items, adding an issue, and setting
Status or Priority, under the same pacing. They do **not** cover editing a
draft card's body, which still needs GraphQL. REST uses **numeric** ids for
fields and items, not the `PVTSSF_…` / `PVTI_…` node ids above; option ids are
the same short ids `opt` returns.

```sh
P=/orgs/modelcontextprotocol/projectsV2/43
RFIELDS=$(gh api "$P/fields") || RFIELDS= # once per session, like FIELDS
# rfield <Field> → its numeric REST id; ropt <Field> <Option> → the option id.
rfield() { jq -r '.[] | select(.name == $ARGS.positional[0]) | .id' --args "$@" <<<"$RFIELDS"; }
ropt() {
jq -r '$ARGS.positional as [$f, $o] | .[] | select(.name == $f)
| .options[] | select(.name.raw == $o) | .id' --args "$@" <<<"$RFIELDS"
}
STATUS_FID=$(rfield Status); PRIORITY_FID=$(rfield Priority)

# The whole board with Status and Priority, once per batch. Captured before
# jq, so a failed page empties RBOARD instead of hiding behind jq's status.
RBOARD=$(gh api --paginate --slurp \
"$P/items?per_page=100&fields=$STATUS_FID,$PRIORITY_FID") \
&& RBOARD=$(jq 'add' <<<"$RBOARD") || RBOARD=

# This repo's issue N → its card's numeric item id, from that one listing.
N=<ISSUE_NUMBER>
RITEM=$(jq -r --argjson n "$N" '.[] | select(.content_type=="Issue"
and .content.number==$n
and (.content.repository_url | endswith("/modelcontextprotocol/servers")))
| .id' <<<"$RBOARD")

# Set one field: Status here; Priority is the same call with PRIORITY_FID.
STATUS_OPT=$(ropt Status "In Review")
if [ -n "$RITEM" ] && [ -n "$STATUS_FID" ] && [ -n "$STATUS_OPT" ]; then
jq -n --argjson f "$STATUS_FID" --arg v "$STATUS_OPT" '{fields: [{id: $f, value: $v}]}' \
| gh api -X PATCH "$P/items/$RITEM" --input -
else
echo "no item, field or option id — nothing edited" >&2
fi

# Add an issue's card: by the issue's numeric id, not its number. The
# response's .id is the new item's numeric id; set its fields as above.
ISSUE_DBID=$(gh api repos/modelcontextprotocol/servers/issues/"$N" --jq .id) || ISSUE_DBID=
[ -n "$ISSUE_DBID" ] && jq -n --argjson i "$ISSUE_DBID" '{type: "Issue", id: $i}' \
| gh api -X POST "$P/items" --input - --jq .id
```

## ⚠️ The option-deletion hazard

This section and its two subsections are copied verbatim from the MCP
Expand Down Expand Up @@ -440,15 +539,15 @@ if [ -s "$BOARD_TMP/lost-ids.json" ]; then
gh project item-edit --project-id PVT_kwDOCt2Azc4BcZgq --id "$id" \
--field-id PVTSSF_lADOCt2Azc4BcZgqzhXCpm0 --single-select-option-id <NEW_OPTION_ID> \
|| { echo "item-edit failed on $id — stopping; re-run step 1 to see what is left" >&2; break; }
sleep 8 # a sustained loop: see AGENTS.md "Pacing GitHub writes"
sleep 8 # a sustained loop: see AGENTS.md "Pacing GitHub calls"
done
else
echo "no lost-ids.json — step 1 did not complete; nothing re-applied" >&2
fi
```

Step 3 is a sustained loop, so it sleeps 8 s between edits, long enough to stay
inside every limit in `AGENTS.md` **Pacing GitHub writes** for as long as it
inside every limit in `AGENTS.md` **Pacing GitHub calls** for as long as it
runs: a restore of 250 cards takes about 35 minutes.

Step 1's join is the safety check: only a card that held the deleted option in
Expand Down
7 changes: 5 additions & 2 deletions .claude/skills/issue-create/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,19 @@ gh issue list --repo modelcontextprotocol/servers --state all --limit 200 \
This repository has thousands of issues, most from outside contributors, so
search with two or three phrasings (the symptom, the tool or server name, the
error text) before concluding there is none. Also check the board itself, where
approved work already has a card:
approved work already has a card. Filing several issues in one go, take the
listing once and check each against it (`AGENTS.md` **Pacing GitHub calls**):
the block keeps a `BOARD` this session already holds.

```sh
BOARD=$(gh project item-list 43 --owner modelcontextprotocol --format json --limit 2000)
[ -n "$BOARD" ] || BOARD=$(gh project item-list 43 --owner modelcontextprotocol --format json --limit 2000)
# --limit truncates silently: trust the listing only when it is complete.
if jq -e '(.items | length) == .totalCount' <<<"$BOARD" >/dev/null; then
jq -r '.items[] | "\(.content.number)\t\(.status)\t\(.title)"' <<<"$BOARD" \
| grep -i "<keyword>"
else
echo "board listing incomplete or failed — raise --limit; not concluding anything" >&2
BOARD= # never leave a bad listing for the next recipe to reuse
fi
```

Expand Down
8 changes: 6 additions & 2 deletions .claude/skills/issue-triage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@ reporter is notified of each one. So:
manifest** that lists each item, its class, and the issue it will point at.
A wrong class is cheap to fix in a file and expensive to fix after a
notification went out. Closing a single item the maintainer named is fine.
- **Pace every write loop** by `AGENTS.md` **Pacing GitHub writes**, and
- **Pace every write loop** by `AGENTS.md` **Pacing GitHub calls**, and
**stop on the first failed call** rather than carrying on blind. GitHub's
secondary rate limit trips well before its primary one, and a loop that
keeps going after a 403 leaves a half-applied batch nobody can see.
- **List the board once per pass**, not once per issue, by the same rule.
The finder and the audit below each take one listing; per-issue `board-ops`
calls in a pass resolve their ids from it: `BOARD=$(cat "$D/b43.json")`
hands it to the `board-ops` lookups (**One listing per batch**).
- **Never restate a vulnerability in public**, not even to summarize a report
that was already filed publicly. See [Security reports](#security-reports).
- **Keep dumps outside the repository.** Every snapshot and manifest below goes
Expand Down Expand Up @@ -469,7 +473,7 @@ done < "$D/manifest.tsv"
```

Each `sleep 8` paces a sustained loop, long enough to stay inside every limit
in `AGENTS.md` **Pacing GitHub writes** for as long as the batch runs.
in `AGENTS.md` **Pacing GitHub calls** for as long as the batch runs.

The step 0 issue closes take the same two sweep additions during the backlog
sweep: the close label (`gh issue edit <N> --add-label`) and the `#4875`
Expand Down
23 changes: 19 additions & 4 deletions .claude/skills/pr-flow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,26 @@ npm run format # TypeScript; in a Python server: uv run --fro
npm run local:gate; echo "EXIT=$?"
```

`local:gate` runs every check CI runs, for both languages, whatever the change
touched. Verify by the exit code, not by grepping the output. What each stage
checks and how to fix a red one is `/pre-push-gate`; the stage list is
`local:gate` runs every check CI runs, for both languages. Its per-server
stages run for the servers the change touches, and for every server when any
file outside a server directory changed; it prints which, and why. Verify by
the exit code, not by grepping the output. What each stage checks and how to
fix a red one is `/pre-push-gate`; the stage list and the scope rule are in
[`docs/quality-gate.md`](../../../docs/quality-gate.md).

**A draft PR** (`gh pr create --draft`) needs less until it is marked ready
(`AGENTS.md` **Before pushing**):

| The PR is | Before each push | In CI |
| --- | --- | --- |
| A draft | `npm run local:gate:draft` (exit 0): `verify:dco` and the touched servers' full `validate` / `validate:py` | Format, lint, typecheck, build and tests; coverage, the boot smoke, the interface diff and the image smoke are skipped |
| Being marked ready | A full `npm run local:gate` (exit 0), then `gh pr ready <PR>` | `ready_for_review` runs what the draft skipped |
| Ready | `npm run local:gate`, as above | Everything |

A draft is for work still moving, when you want CI or a reviewer's eye before
it settles. A PR that is finished when it opens is opened ready, after a full
gate, as above; the Copilot loop (step 7) starts once it is ready.

One thing the gate deliberately leaves out:

| Change touches | Also run |
Expand Down Expand Up @@ -338,7 +353,7 @@ worth doing on its own. Implementing a suggestion differently is fine.
```

A round with many comments is a bulk write: send the replies one at a time,
paced by `AGENTS.md` **Pacing GitHub writes**.
paced by `AGENTS.md` **Pacing GitHub calls**.

- ⚠️ **Then post a PR-level summary of the round, in addition, never instead.**
Inline replies go hidden once the fix is pushed, because the threads become
Expand Down
62 changes: 53 additions & 9 deletions .claude/skills/pre-push-gate/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ disable-model-invocation: false

**The rule** (stated in [`AGENTS.md`](../../../AGENTS.md#before-pushing)): run
**`npm run local:gate`** before every push, and push only when it exits 0.
`npm run validate` is the inner-loop check and is **not** a substitute.
`npm run validate` is the inner-loop check and is **not** a substitute. The
one lighter gate is **`npm run local:gate:draft`**, for a push to a PR that is
still a draft; marking the PR ready for review needs a full `local:gate`
first, and so does every push after that.

What each stage covers, and how the gate relates to CI, is
[`docs/quality-gate.md`](../../../docs/quality-gate.md). The stage list is
Expand Down Expand Up @@ -41,6 +44,33 @@ The gate stops at the first failing stage, so the last stage header in the
output is the one that failed. Fix it, then **re-run the whole gate**, not just
that stage: the stages after it have not run yet.

## Which servers it ran

The per-server stages (`check`, `coverage`, `validate:py`, `coverage:py`,
`smoke`) run through `scripts/gate-servers.mjs`, which prints its choice
first:

```
[gate] base 002bcceed159
[gate] servers: memory — every changed file is under `src/memory/`
```

and then one `[gate] <stage>: <command>` line per step, with `passed (Ns)` or
`FAILED (exit N, Ns)` after it. A change confined to server directories gates
those servers; **any file outside one gates every server**, and the line names
the first few such files. If it gated more than you expected, that line says
why: an untracked file in the worktree root counts too (`git status`). Do not
work around the scope; the rule is in
[`docs/quality-gate.md`](../../../docs/quality-gate.md#which-servers-the-gate-runs).

- **"could not decide which servers to gate"**: usually `origin/v2/main` is
missing, so `git fetch origin v2/main`. On a stacked branch,
`GATE_BASE=<parent branch> npm run local:gate` scopes against the parent.
- **Each suite runs once, under coverage.** A failing test shows up in the
`coverage` or `coverage:py` step, not in a plain `test` or `pytest` step;
fix it as under [`test`](#test-a-typescript-workspace) or `validate:py`'s
`pytest` below.

## Diagnosing a failing stage

Each heading is a stage or guard name as it appears in the output.
Expand Down Expand Up @@ -148,7 +178,9 @@ mean a change broke one of its invariants
- **"every CI job needs a timeout"**: a job was added without
`timeout-minutes`.
- **"local:gate must run …"**: a stage was dropped from `local:gate:stages`,
or `local:gate` is no longer exactly the lease wrapper.
or `local:gate` is no longer exactly the lease wrapper. The per-server
stages are pinned through `gatePlan` in `scripts/gate-servers.mjs` ("the
full gate must run …").

Do not edit the guard to make these pass; the split they enforce is the design.

Expand All @@ -159,15 +191,23 @@ a warning fails exactly as an error does. Fix the finding. If a rule genuinely
must be waived on one line, use its inline disable comment **with a one-line
justification**; never widen an ignore list or turn the rule off.

### `check` (a TypeScript workspace)

The workspace's `validate` without its tests: `format:check`, `lint`,
`typecheck`, `build`, in that order. The failing one is named in the npm
output; each has its own section here.

### `typecheck` / `build`

`typecheck` runs `tsc -p tsconfig.test.json` (source and tests); `build` runs
the server's own `tsc`. An error in a test file only shows in `typecheck`.

### `test` (a TypeScript workspace)

Re-run just that suite to iterate: `npm test -w src/<server>`. Read the failure
before changing a timeout: an assertion that races is a bug in the test.
The full gate runs the suite only under `coverage`; `local:gate:draft` runs it
plainly, inside each workspace's `validate`. Re-run just that suite to
iterate: `npm test -w src/<server>`. Read the failure before changing a
timeout: an assertion that races is a bug in the test.

### `coverage`

Expand All @@ -179,8 +219,8 @@ ERROR: Coverage for branches (71.42%) does not meet global threshold (90%) for r
```

("global threshold" is Vitest's wording; with `perFile: true` it is checked
per file.) The root `npm run coverage` carries on into the remaining
workspaces after a failure, so **the failing report is not the last thing
per file.) Over several workspaces, `npm run coverage` carries on into the
remaining ones after a failure, so **the failing report is not the last thing
printed**: find the `npm ERR!` block, which names the workspace
(`in workspace: @modelcontextprotocol/server-<name>`), and read the `ERROR:`
lines just above it.
Expand All @@ -207,7 +247,9 @@ fix it as under `test`, above.

The summary at the end names the failing server, and the step that failed is
the last `[validate:py] <server>: <step>` line above it. Re-run one server with
`npm run validate:py -- <server>`.
`npm run validate:py -- <server>`. The full gate passes `--no-pytest`, since
`coverage:py` runs the suite next; `local:gate:draft` and a bare
`npm run validate:py` run it here.

| Step | Fix |
| --- | --- |
Expand Down Expand Up @@ -260,7 +302,7 @@ of the server's stderr. Re-run a subset with

- **"dist/index.js does not exist — build first"**: you ran the smoke on its
own before building. `npm run build -w src/<server>`. Inside the gate this
cannot happen, since `validate` builds first.
cannot happen, since `check` builds first.
- **".venv does not exist — sync first"**: the same for a Python server. The
smoke never creates an environment; `npm run validate:py -- <server>` does.
- **The server exited before answering**: the stderr tail shows why. This is
Expand Down Expand Up @@ -352,7 +394,9 @@ gate-lease: pid 12345 in /path/to/other-worktree, running for 40s holds the gate
is queued behind another worktree's gate. That is normal: it starts once the
holder (and any gate that arrived before it) finishes. The line names the
holder's pid and worktree, so you can tell whether to wait or to stop that
gate.
gate. When `SERVERS_GATE_LEASE_SLOTS` allows more than one gate at once, the
line reads `all N gate lease slots are held (…)` and names every holder; the
gate starts when any one of them finishes.

- A holder that was **killed** stops refreshing its lock and is taken over
after 30 seconds. Nothing needs cleaning up.
Expand Down
Loading
Loading