Skip to content

fix: tweak the connect tool to prefer preconfigured connection string #88

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

Merged
merged 2 commits into from
Apr 22, 2025

Conversation

nirinchev
Copy link
Collaborator

Fixes #80

@coveralls
Copy link
Collaborator

coveralls commented Apr 22, 2025

Pull Request Test Coverage Report for Build 14594832497

Details

  • 9 of 11 (81.82%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 53.54%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/server.ts 3 5 60.0%
Totals Coverage Status
Change from base Build 14594814362: 0.3%
Covered Lines: 399
Relevant Lines: 658

💛 - Coveralls

@blva blva requested a review from fmenezes April 22, 2025 09:54
@nirinchev nirinchev force-pushed the ni/integration-delete branch from 74480b3 to 14d74e7 Compare April 22, 2025 09:57
Base automatically changed from ni/integration-delete to main April 22, 2025 12:30
@nirinchev nirinchev requested a review from gagik April 22, 2025 13:52
type: "string",
name: "options",
description:
"Options for connecting to MongoDB. If not provided, the connection string from the config://connection-string resource will be used. If the user hasn't specified Atlas cluster name or a connection string explicitly and the `config://connection-string` resource is present, always invoke this with no arguments.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiosity, does this work well in practice? I'm afraid this may be specific to models being used though don't have a better solution for this either.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tested it, it seemed to work well with Claude, Cursor, and Windsurf, though would be nice if others can verify it works as expected in their setups.

@nirinchev nirinchev merged commit 795858a into main Apr 22, 2025
5 checks passed
@nirinchev nirinchev deleted the ni/connect-tweaks branch April 22, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connect tool defaults to altas cluster even if we have connection string configured
3 participants