Skip to content

Feat/diagnostics/output pane reading#32

Open
shaiku wants to merge 4 commits intoCodingWithCalvin:mainfrom
shaiku:feat/diagnostics/output-pane-reading
Open

Feat/diagnostics/output pane reading#32
shaiku wants to merge 4 commits intoCodingWithCalvin:mainfrom
shaiku:feat/diagnostics/output-pane-reading

Conversation

@shaiku
Copy link

@shaiku shaiku commented Feb 13, 2026

Description

Allows AI agents to interact with the VS output panes and read error messages.

Type of Change

  • feat - New feature
  • fix - Bug fix
  • docs - Documentation only
  • refactor - Code change that neither fixes a bug nor adds a feature
  • test - Adding or updating tests
  • chore - Maintenance tasks
  • ci - CI/CD changes

Related Issues

Resolves #3

Checklist

  • My code follows the project's code style
  • I have tested my changes locally

Implement 5 new MCP tools for enhanced debugger functionality:
- debugger_add_breakpoint: Set breakpoint at file:line (works in any mode)
- debugger_remove_breakpoint: Remove breakpoint by file:line (destructive)
- debugger_list_breakpoints: List all breakpoints with metadata
- debugger_get_locals: Inspect local variables in Break mode
- debugger_get_callstack: Inspect call stack frames with file/line info

Also improve document_read pagination:
- Add offset (1-based line start) and limit (max lines) parameters
- Reduce default limit from 2000 to 500 to prevent token overflow
- Return numbered lines with continuation hints for large files
- Enables safe reading of files > 100K characters
…put pane access

Implement three new MCP tools for accessing Visual Studio diagnostics:

- errors_list: Read build errors, warnings, and messages from the Error List using the modern Table Control API (IErrorList/IWpfTableControl)
- output_read: Read content from Visual Studio Output window panes
- output_list_panes: List all available Output window panes (built-in and custom)

Key improvements:
- Use IErrorList and IWpfTableControl for reliable, type-safe error access
- Properly map __VSERRORCATEGORY enum to Error/Warning/Message severity
- Extract all error details: code, project, file path, line, column, description
- Support severity filtering on errors_list tool
- Implement proper RPC contracts and service layer integration
- Add Microsoft.VisualStudio.Editor package for text view support

The diagnostics tools enable AI assistants to inspect build output and error details during development.
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 diagnostics tools

1 participant