sequentialthinking: serverInfo.version hardcoded as "0.2.0" (published package is 2026.7.4)
Describe the bug
serverInfo.version returned during MCP initialization for @modelcontextprotocol/server-sequential-thinking is hardcoded as "0.2.0" in source/dist, so it does not match the installed npm package version. Same class of bug as #4406 for memory; related to the broader sync request in #360.
To Reproduce Steps to reproduce the behavior:
-
Inspect the published package (or current
main):npm pack @modelcontextprotocol/[email protected] tar -xOf modelcontextprotocol-server-sequential-thinking-2026.7.4.tgz package/dist/index.js | rg 'version:' tar -xOf modelcontextprotocol-server-sequential-thinking-2026.7.4.tgz package/package.json | rg '"version"' -
Observe
dist/index.jscontainsversion: "0.2.0"whilepackage/package.jsonhas"version": "2026.7.4". -
Or start the server and send
initialize—serverInfo.versionis"0.2.0".
On main (src/sequentialthinking/index.ts):
const server = new McpServer({
name: "sequential-thinking-server",
version: "0.2.0",
});
Expected behavior
serverInfo.version should match the package version from package.json (in-tree currently 0.6.2; published CalVer such as 2026.7.4 after release bumps that field).
Logs
Published @modelcontextprotocol/[email protected]:
package.json→"version": "2026.7.4"dist/index.js→version: "0.2.0"
Additional context
- Root cause: the version string is hardcoded in
src/sequentialthinking/index.tsand compiled intodist/, so calendar-versioned releases keep advertising0.2.0. - Impact: confusing when diagnosing client/server issues — reported version looks like a very old release even though the installed package is current.
- Suggested fix: read the version from
package.jsonat runtime (source +dist/layouts), as proposed for memory in #4406 / PRs such as #4407. - Note: this aligns
serverInfowith whatever is inpackage.json; keeping that field bumped on CalVer release is separate (see #3870). Related to the broader sync ask in #360. - Happy to send a PR.
This issue exists in all TS servers in the repo. I'll try to add a another PR that address these at onece.