version-compat-mcp

v0.2.0
version-compat-mcp Checked 4 days ago Published 1 month ago

Version-Aware Setup & Migration MCP Server for JS/TS & Python ecosystems (Antigravity, Codex, Claude Code, Cursor)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

detect_project_environment

Detects Node.js & Python runtime, package manager (npm/pnpm/yarn/bun/uv/poetry/pip), locked dependency versions, and config paradigms (ESLint flat config, Tailwind v4 CSS-first, Next.js App/Pages router, tsconfig, pyproject.toml PEP 621) from local project files without network calls.

ParameterTypeDescription
project_path *stringAbsolute path to the project or workspace package root directory (containing package.json or pyproject.toml / uv.lock / requirements.txt)

check_dependency_compatibility

Verifies engines.node, peerDependencies cross-compatibility, and deprecation notices deterministically using npm registry abbreviated metadata.

ParameterTypeDescription
dependencies *objectMap of production dependencies and their version or range (e.g. {"next": "15.0.3", "react": "18.2.0"} or {"pydantic": "2.10.6", "fastapi": "0.115.6"})
devDependenciesobjectOptional map of devDependencies and their version or range (e.g. {"eslint": "9.14.0", "typescript": "5.7.2"} or {"pytest": "8.3.0", "ruff": "0.8.0"})
ecosystemstringTarget package registry ecosystem ("npm" or "pypi"). Auto-detected if omitted based on dependencies and runtime.
runtime_versionstringTarget runtime version (e.g. Node.js "20.11.0" or Python "3.12.0"). If omitted, runtime checks are reported as unverified.

get_versioned_setup_guide

Returns citation-backed installation commands (formatted for the project's package manager), initial configuration file examples, and obsolete patterns to avoid for a specific library version.

ParameterTypeDescription
library *stringTarget library name (supported: node, typescript, react, nextjs, vite, tailwindcss, eslint, python, pydantic, fastapi, sqlalchemy, langchain, uv)
package_manager *stringProject package manager detected from detect_project_environment
target_version *stringTarget version to set up (e.g. "4.0.0", "15.0.3", "9.14.0", "2.10.6", "0.115.6"). Do NOT pass "latest" without checking project versions.
framework_contextstringOptional host framework context (e.g. setting up tailwindcss v4 inside vite vs nextjs, or pydantic v2 inside fastapi)
runtime_versionstringOptional runtime version (e.g. Node "20.11.0" or Python "3.12.0")

get_upgrade_steps

Retrieves step-by-step migration guides, breaking changes, and official codemod commands between two versions of a library (e.g. Tailwind v3 -> v4, ESLint v8 -> v9, Next.js v14 -> v15) with GitHub tag source URLs.

ParameterTypeDescription
from_version *stringCurrent version before upgrade (e.g. "3.4.1", "8.57.0", "14.2.0", "1.10.19")
library *stringTarget library name (supported: node, typescript, react, nextjs, vite, tailwindcss, eslint, python, pydantic, fastapi, sqlalchemy, langchain, uv)
to_version *stringTarget version after upgrade (e.g. "4.0.0", "9.14.0", "15.0.3", "2.10.6")
focus_areastringOptional keyword or section filter (e.g. "flat config", "caching", "async request", "model_dump", "lifespan", "select")
package_managerstringOptional package manager to format codemod and upgrade commands accurately

search_versioned_docs

Searches tag-pinned migration guides, release notes, and deprecation notices for a specific library version using SQLite FTS5 (BM25). Resolves version from project_path lockfile if version is omitted.

ParameterTypeDescription
library *stringTarget library name (supported: node, typescript, react, nextjs, vite, tailwindcss, eslint, python, pydantic, fastapi, sqlalchemy, langchain, uv)
query *stringSearch query: config key, API symbol, error message, or migration topic
doc_typesarrayOptional filter by document type
project_pathstringOptional path to the project root so the tool can resolve the installed version from lockfile/package.json when version is omitted.
top_kintegerMaximum number of chunks to return (default: 5)
versionstringTarget library version (e.g. "15.0.3", "4.0.0", "2.10.6"). If omitted, project_path must be provided to resolve version from lockfile/config.