Add fallback mechanism for MCP configuration updates in VS Code (AST-129350)#1401
Merged
cx-rahul-pidde merged 3 commits intomainfrom Feb 12, 2026
Merged
Add fallback mechanism for MCP configuration updates in VS Code (AST-129350)#1401cx-rahul-pidde merged 3 commits intomainfrom
cx-rahul-pidde merged 3 commits intomainfrom
Conversation
Contributor
|
New Issues (1)Checkmarx found the following issues in this Pull Request
|
cx-margarita-levitm
approved these changes
Feb 9, 2026
cx-rahul-pidde
added a commit
that referenced
this pull request
Feb 13, 2026
This reverts commit c681bbf.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
References
Testing
Note -
Test Case 1: VS Code - Successful Configuration Update
Scenario: Install MCP server in VS Code when settings API works correctly
Steps:
Expected Result:
Test Case 2: VS Code - Fallback Mechanism on Installation
Scenario: Install MCP server when VS Code settings API fails
Steps:
Expected Result:
Windows: %APPDATA%\Code\User\mcp.json
macOS: ~/Library/Application Support/Code/User/mcp.json
Linux: ~/.config/Code/User/mcp.json
Test Case 3: VS Code - Fallback Mechanism on Uninstallation
Scenario: Uninstall MCP server when VS Code settings API fails
Steps:
Expected Result:
Test Case 5: Cursor - Direct File Write (No Fallback)
Scenario: Install MCP server in Cursor IDE
Steps:
Expected Result:
Test Case 6: Windsurf - Direct File Write
Scenario: Install MCP server in Windsurf IDE
Steps:
Expected Result:
Test Case 7: Kiro - Direct File Write with Special Configuration
Scenario: Install MCP server in Kiro IDE
Steps:
Expected Result:
Test Case 8: Uninstall from Non-VS Code IDE
Scenario: Uninstall MCP server from Cursor/Windsurf/Kiro
Steps:
Expected Result:
File is updated successfully
Checklist