Open
Conversation
Add window_list, window_activate, toolwindow_show, and toolwindow_hide MCP tools for interacting with Visual Studio windows. The toolwindow_show tool uses well-known friendly names mapped to DTE View commands instead of requiring GUIDs.
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.
Summary
window_list,window_activate,toolwindow_show, andtoolwindow_hideMCP tools for interacting with Visual Studio windowstoolwindow_showuses friendly names (e.g.,SolutionExplorer,ErrorList,Output) mapped to DTEView.*commands instead of requiring GUIDsNew Tools
window_listwindow_activatetoolwindow_showtoolwindow_hideSupported Tool Windows
SolutionExplorer, ErrorList, Output, TeamExplorer, Terminal, TaskList, Properties, Toolbox, FindResults, Bookmarks
Test plan
dotnet build src/CodingWithCalvin.MCPServer.slnx— verified passingwindow_listreturns all open windows with correct kind classificationwindow_activatefocuses the correct window by captiontoolwindow_showopens known tool windows (e.g., SolutionExplorer, ErrorList)toolwindow_showreturns supported names list for invalid inputtoolwindow_hidecloses tool windows by captionCloses #4