Skip to content

Fix: report the real package version in the MCP handshake - #10

Merged
salatmaster merged 2 commits into
salatmaster:mainfrom
BrainRTP:fix/server-version-from-package-json
Aug 7, 2026
Merged

Fix: report the real package version in the MCP handshake#10
salatmaster merged 2 commits into
salatmaster:mainfrom
BrainRTP:fix/server-version-from-package-json

Conversation

@BrainRTP

@BrainRTP BrainRTP commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

createServer hardcoded version: '0.1.0', so clients saw that in serverInfo while the package shipped 0.2.1. It now reads package.json, which is already the single source of truth for every manifest, and a test against the built binary locks it in. Also ignores editor and IDE state.

createServer hardcoded version 0.1.0, so every client saw that in
serverInfo while the package shipped 0.2.1. package.json is already the
single source of truth for every manifest - the entry point now reads it
too, through createRequire, which resolves the same from dist/index.js
and src/index.ts.

The new binary test runs the built artefact, so it also covers the one
way the runtime read could break: package.json not being reachable from
the packed layout.
@salatmaster
salatmaster merged commit 4ebfa83 into salatmaster:main Aug 7, 2026
4 checks passed
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.

2 participants