Skip to content
Kitbay

mongodb-mcp-v3-migration

Apache-2.0Updated on Nov 17, 20261,162GitHub starsIncludes scripts

A skill from the MongoDB MCP Server repository for developers who embed or extend that server as a library in their own code.

What the skill teaches

A skill from the MongoDB MCP Server repository for developers who embed or extend that server as a library in their own code. Version 3 split the old single npm package into scoped @mongodb-js/mcp-* packages and made mongodb-mcp-server a binary only, so code written against v1 or v2 breaks. The agent runs the bundled inventory script in the consumer project, sorts the code into custom CLI, HTTP host or config cases, rewrites imports and constructors to the new packages, and then builds and tests. It does not touch MongoDB data and is only useful to people building on the MCP server's code.

Capabilities

  • Inventory code that imports mongodb-mcp-server v1 or v2
  • Move custom CLIs and HTTP hosts to the v3 scoped packages
  • Rename and replace symbols removed from the v1 public API
  • Verify the migrated project builds and its tests pass