Skip to content

Conversation

Qiiks
Copy link
Contributor

@Qiiks Qiiks commented Sep 5, 2025

This pull request contains the following fixes:

  • Gemini CLI Fix: Correctly parses the nested response from the Gemini API.
  • MCP Server Addition Fix: Resolves a runtime error when adding a new MCP server from the webview. This was caused by an incorrect method call and has been fixed by adding a new public addServer method to the McpHub class.

This commit introduces a new public  method to the  class to allow for the programmatic addition of MCP servers. This resolves a runtime error in the  that was incorrectly attempting to call a private  method.

The new  method:
- Accepts a server name, a configuration object, and the source (global or project).
- Validates the provided configuration to ensure it includes a .
- Adds the new server to the appropriate settings file ().
- Leverages the existing  method to properly load and connect to the new server.
- Includes robust error handling to provide clear feedback to the user.

This change ensures that MCP servers can be added dynamically from the webview without causing errors, improving the stability and usability of the MCP server management interface.
Copy link

changeset-bot bot commented Sep 5, 2025

⚠️ No Changeset found

Latest commit: 1cd9b70

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chrarnoldus
Copy link
Contributor

@Qiiks thanks for your PR, can you make a separate one for the Gemini CLI Fix? I think we'll be able to review/merge that one faster.

Copy link
Contributor Author

@Qiiks Qiiks left a comment

Choose a reason for hiding this comment

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

@Qiiks thanks for your PR, can you make a separate one for the Gemini CLI Fix? I think we'll be able to review/merge that one faster.

Done! #2287

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.

2 participants