Skip to content

feat(tools): add window management tools#64

Open
CalvinAllen wants to merge 2 commits intomainfrom
feat/tools/window-management
Open

feat(tools): add window management tools#64
CalvinAllen wants to merge 2 commits intomainfrom
feat/tools/window-management

Conversation

@CalvinAllen
Copy link
Copy Markdown
Contributor

Summary

  • Add window_list, window_activate, toolwindow_show, and toolwindow_hide MCP tools for interacting with Visual Studio windows
  • toolwindow_show uses friendly names (e.g., SolutionExplorer, ErrorList, Output) mapped to DTE View.* commands instead of requiring GUIDs
  • Returns the list of supported tool window names when an invalid name is provided

New Tools

Tool Description
window_list List all open windows with caption, kind, visibility, and GUID
window_activate Activate/focus a window by caption
toolwindow_show Show a tool window by well-known name
toolwindow_hide Hide/close a tool window by caption

Supported Tool Windows

SolutionExplorer, ErrorList, Output, TeamExplorer, Terminal, TaskList, Properties, Toolbox, FindResults, Bookmarks

Test plan

  • Build solution with dotnet build src/CodingWithCalvin.MCPServer.slnx — verified passing
  • Verify window_list returns all open windows with correct kind classification
  • Verify window_activate focuses the correct window by caption
  • Verify toolwindow_show opens known tool windows (e.g., SolutionExplorer, ErrorList)
  • Verify toolwindow_show returns supported names list for invalid input
  • Verify toolwindow_hide closes tool windows by caption

Closes #4

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat(tools): Add window management tools

1 participant