-
Notifications
You must be signed in to change notification settings - Fork 35
Description
My mongo connection string is:
"mongodb://mingda:md%[email protected]:27017,10.175.244.221:27017,10.175.244.231:27017/netap-collecter-dev"
'%40' is '@' encoding, and will throw a err:
2025-06-01 12:32:11.440 [info] godb: Starting new stdio process with command: npx mongo-mcp mongodb://mingda:md%[email protected]:27017,10.175.244.221:27017,10.175.244.231:27017/netap-collecter-dev
2025-06-01 12:32:35.011 [error] project-0-netap-mongodb: MongoDB connection error: TypeError: Invalid URL
at new URL (node:internal/url:775:36)
at connectToMongoDB (file:///C:/Users/Administrator/AppData/Local/npm-cache/_npx/9e2330fe22e4697f/node_modules/mongo-mcp/dist/mongodb/client.js:8:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runServer (file:///C:/Users/Administrator/AppData/Local/npm-cache/_npx/9e2330fe22e4697f/node_modules/mongo-mcp/dist/index.js:60:9) {
code: 'ERR_INVALID_URL',
input: 'mongodb://mingda:md%[email protected]:27017,10.175.244.221:27017,10.175.244.231:27017/netap-collecter-dev'
}