servers icon indicating copy to clipboard operation
servers copied to clipboard

sequentialthinking: serverInfo.version hardcoded as "0.2.0" (published package is 2026.7.4)

Open KarlLeen opened this issue 4 months ago • 1 comments

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:

  1. 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"'
    
    
  2. Observe dist/index.js contains version: "0.2.0" while package/package.json has "version": "2026.7.4".

  3. Or start the server and send initialize — serverInfo.version is "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.ts and compiled into dist/, so calendar-versioned releases keep advertising 0.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.json at runtime (source + dist/ layouts), as proposed for memory in #4406 / PRs such as #4407.
  • Note: this aligns serverInfo with whatever is in package.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.

KarlLeen avatar Jul 29 '26 10:07 KarlLeen

This issue exists in all TS servers in the repo. I'll try to add a another PR that address these at onece.

Medsaad avatar Aug 02 '26 11:08 Medsaad