Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(atlas-local): Added Atlas Local List Deployments tool #520

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

Open
jeroenvervaeke wants to merge 10 commits into feat-MCP-40
base: feat-MCP-40
Choose a base branch
Loading
from MCP-158

Conversation

Copy link
Member

@jeroenvervaeke jeroenvervaeke commented Sep 4, 2025

Proposed changes

Ticket: [MCP-158] [mongodb-mcp-server] Implement listLocalAtlasClusters tool

Checklist

});

it.skipIf(!isMacOSInGitHubActions)(
"[MacOS in GitHub Actions] should not have the atlas-local-list-deployments tool",
Copy link
Collaborator

Choose a reason for hiding this comment

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

[q] why? can we add some details here?

Copy link
Member Author

@jeroenvervaeke jeroenvervaeke Sep 5, 2025

Choose a reason for hiding this comment

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

Because MacOS doesn't have docker installed in github runners, I can add a comment

kmruiz reacted with thumbs up emoji
Copy link
Member Author

@jeroenvervaeke jeroenvervaeke Sep 5, 2025

Choose a reason for hiding this comment

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

Added a comment

this.registerToolInstances(AtlasLocalTools);
} catch (error) {
// If Atlas Local tools are disabled, don't log an error
if (this.userConfig.disabledTools.includes("atlas-local")) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be done even before the import at line 207? Why do we want to attempt this if the tools are disabled? Or am I missing something?

// This should never happen, because the tool should have been disabled.
// verifyAllowed in the base class returns false if the client is not found
if (!client) {
throw new Error("Atlas Local client not found, tool should have been disabled.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

the pattern we're leaning towards lately is to return a response to the LLM instead, so that the customer understands what's happening.

probably worth adding a log and sending a result to the LLM -> something went wrong setting up the local atlas environment / check logs or disable the tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@kmruiz kmruiz kmruiz left review comments

@blva blva blva left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /