Skip to content

Read sequentialthinking version from package.json - #4680

Open
sachinsharma3191 wants to merge 1 commit into
modelcontextprotocol:mainfrom
sachinsharma3191:fix/4575-sequentialthinking-version
Open

Read sequentialthinking version from package.json#4680
sachinsharma3191 wants to merge 1 commit into
modelcontextprotocol:mainfrom
sachinsharma3191:fix/4575-sequentialthinking-version

Conversation

@sachinsharma3191

Copy link
Copy Markdown

Summary

Fixes #4575

  • Replaced hardcoded "0.2.0" version string with dynamic read from package.json using createRequire(import.meta.url)
  • Version now stays in sync with the package automatically on every release

Test plan

  • Server reports correct version from package.json
  • No runtime errors with createRequire in ESM context

…rdcoding

The serverInfo.version was hardcoded as "0.2.0" even though the package
version is 0.6.2 (and CalVer releases like 2026.7.4 in published builds).
This caused confusing version mismatches when diagnosing client/server issues.
Now uses createRequire to read version from package.json at runtime, which
works from both source and dist layouts.

Fixes modelcontextprotocol#4575
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant