-
Notifications
You must be signed in to change notification settings - Fork 11
Connection string is not retained when LLM tries to reconnect #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We recently resolved #80, which appears to be somewhat related here. Do you think you can test with latest main and confirm you're still seeing this problem? |
@nirinchev – Pulled main and tested again - it does appear to be better for sure! Though I'm wondering why the LLM cannot fetch this from the launch command on the first attempt to connect? |
This is not the correct syntax for providing a connection string. Right now we don't take in positional arguments, so you'll need to pass in the arg name like |
By the way the "MongoDB": {
"command": "< your full path >/dist/index.js --connectionString mongodb://localhost:58321",
} and in VSCode: "MongoDB": {
"type": "stdio",
"command": "< your full path >/dist/index.js",
"args": ["--connectionString", "mongodb://localhost:58321"]
} |
I think the args in vscode should be separate, no? Like |
If I pass connection string in the launch command or define it in an env var, when Cursor calls the
Connect
tool the second time (with some amount of delay between the first successful connection attempt), sometimes MCP doesn't appear to know what the connection string is.The text was updated successfully, but these errors were encountered: