{"_id":"@anshuman.sengar/unicommerce-mongo-mcp-server","name":"@anshuman.sengar/unicommerce-mongo-mcp-server","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.1":{"name":"@anshuman.sengar/unicommerce-mongo-mcp-server","version":"1.1.1","description":"MCP server for Uniware MongoDB (tenant + common) with auto SSH tunnel via jumpbox","type":"module","main":"dist/mcp-server.js","bin":{"unicommerce-mongo-mcp":"dist/mcp-server.js"},"license":"UNLICENSED","publishConfig":{"access":"public"},"scripts":{"build":"tsc","mcp":"node dist/mcp-server.js","dev:mcp":"node --import tsx src/mcp-server.ts","audit-catalog":"node scripts/audit-mongo-catalog.mjs","pack:check":"node scripts/verify-publish-pack.mjs","prepublishOnly":"npm run build && npm run pack:check"},"engines":{"node":">=18"},"dependencies":{"@modelcontextprotocol/sdk":"^1.29.0","get-port":"^7.1.0","mongodb":"3.7.4","pino":"^9.6.0","ssh2":"^1.16.0","zod":"^3.24.1"},"devDependencies":{"@types/mongodb":"^3.6.20","@types/node":"^22.10.2","@types/ssh2":"^1.15.1","tsx":"^4.19.2","typescript":"^5.7.2"},"types":"./dist/mcp-server.d.ts","_id":"@anshuman.sengar/unicommerce-mongo-mcp-server@1.1.1","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-Cl0pTuhNz+udJ9oPTLeXSghBh449v/zc15FcE4I40Nbks+85kDR7VWjryPHUGa+dcrraE4e4iD7PtlC5hoZ8Ug==","shasum":"135061155a00c4644b6d0d99e59833f3dc84b7a2","tarball":"https://registry.npmjs.org/@anshuman.sengar/unicommerce-mongo-mcp-server/-/unicommerce-mongo-mcp-server-1.1.1.tgz","fileCount":71,"unpackedSize":139306,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDFfnU6h59qwrXhZqhK2GS6xhWtV//o1dBAhhXatY71SQIga2x+RfcirfSwKkIh9TIcPHiUa17tqlnHQt1n9FflSFg="}]},"_npmUser":{"name":"anshuman.sengar","email":"anshuman.sengar@unicommerce.com"},"directories":{},"maintainers":[{"name":"anshuman.sengar","email":"anshuman.sengar@unicommerce.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unicommerce-mongo-mcp-server_1.1.1_1781436964315_0.26746457217902453"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-14T11:36:04.146Z","1.1.1":"2026-06-14T11:36:04.459Z","modified":"2026-06-14T11:36:04.679Z"},"maintainers":[{"name":"anshuman.sengar","email":"anshuman.sengar@unicommerce.com"}],"description":"MCP server for Uniware MongoDB (tenant + common) with auto SSH tunnel via jumpbox","license":"UNLICENSED","readme":"# Uniware Mongo MCP Server\n\nMCP server for Uniware MongoDB (tenant + common) with auto SSH tunnel via jumpbox.\n\nUses MongoDB Node driver **3.7** so both **tenant mongo 4.4** and **common mongo 3.2** work through the same MCP.\n\n## Install (npm)\n\n```bash\nnpx @anshuman.sengar/unicommerce-mongo-mcp-server@latest\n```\n\nThe npm package ships **code only**. Each developer keeps two local config files (never published):\n\n| File | Env var | Purpose |\n|------|---------|---------|\n| `~/.cursor/ssh-tunnel.json` | `MONGO_SSH_TUNNEL` | Jumpbox SSH credentials |\n| `~/.cursor/mongo-servers.json` | `MONGO_SERVER_CATALOG` | Cloud → mongo host mapping |\n\nCopy the catalog shape from `config/mongo-servers.example.json` in this repo, or get the real `mongo-servers.json` from your team lead / internal wiki.\n\n## Cursor setup\n\nAdd to `~/.cursor/mcp.json`:\n\n```json\n\"mongo-agent\": {\n  \"command\": \"npx\",\n  \"args\": [\"-y\", \"@anshuman.sengar/unicommerce-mongo-mcp-server@1.1.1\"],\n  \"env\": {\n    \"LOG_LEVEL\": \"warn\",\n    \"MONGO_SSH_TUNNEL\": \"/Users/you/.cursor/ssh-tunnel.json\",\n    \"MONGO_SERVER_CATALOG\": \"/Users/you/.cursor/mongo-servers.json\"\n  }\n}\n```\n\nRestart Cursor after editing `mcp.json`.\n\n## Local development\n\n```bash\nnpm install && npm run build\n```\n\nPlace `config/mongo-servers.json` locally (gitignored). Reuse MySQL MCP jumpbox file:\n\n```bash\nexport MONGO_SSH_TUNNEL=/path/to/ssh-tunnel.json\nexport MONGO_SERVER_CATALOG=/path/to/Mongo_MCP/config/mongo-servers.json\nnpm run mcp\n```\n\nRegenerate catalog from jumpbox (maintainers only):\n\n```bash\nMONGO_SSH_TUNNEL=~/.cursor/ssh-tunnel.json npm run audit-catalog\n```\n\n## Usage\n\n```\nconnect_mongo({ name: \"ecloud1\", serverName: \"ECloud1-tenant\" })\nfind_documents({ database: \"mosaicwellnesspvtlmt\", collection: \"channelInventoryUpdateSnapshot\", limit: 5 })\nlist_catalog_servers()\nlist_collections({ database: \"mosaicwellnesspvtlmt\" })\n```\n\nCommon mongo: `connect_mongo({ serverName: \"common\", name: \"common\" })` then query database **`uniware`**.\n\n## Publish to npm (public)\n\nInfra catalog is **not** included in the package.\n\n```bash\nnpm run pack:check\nnpm publish --access public\n```\n","readmeFilename":"README.md","_rev":"1-83867d01b58d6fa6320fc331bfb20232"}