Patch Changes
- #2765
5ecc791Thanks @claude! - Project-type inference no longer counts bare SDK paths that appear only in ordinary string data. The v1→v2 codemod's source scanner matched any quoted@modelcontextprotocol/sdk/client|serversubpath anywhere in a file, so a server path stored as data (example text, a log message, a config value) misclassified a client-only project asboth— rewriting shared type imports to@modelcontextprotocol/serverand adding a server dependency the project never uses. The scanner now requires a module-specifier position: static imports and re-exports (from '...'), side-effect imports, dynamicimport('...')(including webpack magic comments),require('...')/require.resolve('...'), and thevi./jest.mock-method calls the mock-paths transform rewrites. Known limitation: the scan is lexical, so a string whose text embeds a complete import statement still counts.