You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: unexport internal helpers, drop dead MCP_JSON_FORMAT_VERSION
Knip flagged 12 unused exports and 8 unused exported types — all were
internal helpers that leaked public visibility by accident. No external
callers existed; the module public API was always the narrow set of
functions imported by tool files.
Changes per file:
- repo-paths.ts: realPathOrSelf (used only by isStrictlyUnderGitTop)
- json.ts: drop MCP_JSON_FORMAT_VERSION (unreferenced dead code),
unexport readPackageVersion (called only by readMcpServerVersion)
- presets.ts: unexport PresetEntry/File/Load* types, splitPresetFileRaw,
getPresetEntry, mergeNestedRoots, mergePairs
- roots.ts: unexport uriToPath, listFileRoots, pathMatchesWorkspaceRootHint,
resolveWorkspaceRoots, resolveRootsForPreset, RootPick/ResolveRootsResult/
GitAndRootsResult types
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments