Skip to content

Commit cbb9d57

Browse files
cliffhallolaservoclaude
authored
feat: version the TypeScript servers with changesets, from 1.0.0
Resets all four TypeScript servers to 1.0.0 (everything comes down from its never-published 2.0.0) and adopts changesets: the config, the changeset and version-packages scripts, and version-packages.yml, which keeps the rolling Version Packages PR open against v2/main. everything and filesystem now report their serverInfo version from package.json, as memory and sequentialthinking already do. The Version Packages PR edits package.json only, so a literal in the source would drift at the first bump (filesystem already reported 0.2.0 at package 0.6.3). Ported from #4604, retargeted at v2/main. Co-authored-by: olaservo <olahungerford@gmail.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 9f572d2 commit cbb9d57

16 files changed

Lines changed: 779 additions & 231 deletions

File tree

‎.changeset/README.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Changesets
2+
3+
The four TypeScript servers (`everything`, `filesystem`, `memory`,
4+
`sequentialthinking`) are versioned with
5+
[changesets](https://github.com/changesets/changesets). This directory holds the
6+
pending ones: one small Markdown file per change, each naming the packages it
7+
bumps, the bump type, and the line that becomes the CHANGELOG entry. The whole
8+
release flow is in [`RELEASING.md`](../RELEASING.md).
9+
10+
A PR that changes what a TypeScript server publishes adds one:
11+
12+
```sh
13+
npm run changeset
14+
```
15+
16+
Pick the affected package or packages, choose the bump type, and write a
17+
one-line summary for a user of the server. Commit the generated file with the
18+
PR.
19+
20+
| Bump | When |
21+
| --- | --- |
22+
| **patch** | A bug fix |
23+
| **minor** | A new tool, prompt, resource or option |
24+
| **major** | A breaking change: a tool removed or renamed, a schema change that breaks clients, a protocol or Node floor bump |
25+
26+
A change that does not alter a published TypeScript package needs none: docs,
27+
skills, workflows, the gate's scripts, tests, and anything in a Python server.
28+
The Python servers (`fetch`, `git`, `time`) use CalVer and are stamped by the
29+
**Prepare Python Release** workflow instead.
30+
31+
Merged changesets accumulate on `v2/main`. The **Version Packages** workflow
32+
keeps one rolling PR open that consumes them: merging it applies the version
33+
bumps, writes each package's `CHANGELOG.md`, and deletes the consumed files.
34+
Nothing is published until a maintainer publishes a GitHub Release.

‎.changeset/config.json‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@4.0.1/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "modelcontextprotocol/servers" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "v2/main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Keeps the rolling changesets "Version Packages" PR open against `v2/main`
2+
# (#4472). It runs on every push there: when `.changeset/` holds pending
3+
# changesets it runs `npm run version-packages` (`changeset version`, then a
4+
# lockfile refresh, since the lockfile records each workspace's version) and
5+
# creates or updates one PR carrying the version bumps and the CHANGELOG
6+
# entries. With no pending changesets it does nothing.
7+
#
8+
# It targets `v2/main`, not `main`: the bump is part of the milestone's work,
9+
# so it has to exist on the develop branch before the milestone merge carries
10+
# it to `main`. A bump made downstream of `v2/main` would never flow back.
11+
#
12+
# This workflow only ever opens a PR. It gives the action no publish script, so
13+
# it never publishes, tags or creates a Release; that is `release.yml`, on a
14+
# maintainer-published GitHub Release.
15+
16+
name: Version Packages
17+
18+
on:
19+
push:
20+
branches: [v2/main]
21+
22+
concurrency: ${{ github.workflow }}-${{ github.ref }}
23+
24+
jobs:
25+
version:
26+
timeout-minutes: 10
27+
if: github.repository_owner == 'modelcontextprotocol'
28+
runs-on: ubuntu-latest
29+
permissions:
30+
contents: write
31+
pull-requests: write
32+
steps:
33+
- uses: actions/checkout@v6
34+
35+
- uses: actions/setup-node@v7
36+
with:
37+
node-version: 22
38+
cache: npm
39+
40+
# Versioning needs the changesets CLI, not a build, so the workspaces'
41+
# `prepare` scripts are skipped.
42+
- name: Install dependencies
43+
run: npm ci --ignore-scripts
44+
45+
- name: Create or update the Version Packages PR
46+
uses: changesets/action@v2
47+
with:
48+
version-script: npm run version-packages
49+
pr-title: "chore: version packages"
50+
commit-message: "chore: version packages"
51+
env:
52+
# Read by @changesets/changelog-github to link PRs and authors in
53+
# the CHANGELOG entries. The action itself authenticates through its
54+
# `github-token` input, which defaults to this same token.
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)