Skip to content

[Experimental] Add MCP server for analysis and bulk-fixing#17

Draft
yaakov-h wants to merge 3 commits into
masterfrom
yaakov/mcp
Draft

[Experimental] Add MCP server for analysis and bulk-fixing#17
yaakov-h wants to merge 3 commits into
masterfrom
yaakov/mcp

Conversation

@yaakov-h

@yaakov-h yaakov-h commented Jun 29, 2026

Copy link
Copy Markdown
Member

Warning

This PR is raw AI-generated code and is probably not yet fit for human consumption.

This PR adds a new executable, WTG.BulkAnalysisRunner.Mcp, which exposes a MCP server for LLM coding agents to find Roslyn Diagnostics in a workspace and apply the fixes.

The MCP server holds analysis sessions in-memory to avoid recomputing the whole project/solution on each request.

This is the result of a few back-and-forth sessions with Claude and includes a bunch of changes that should be their own outright prereqs, including upgrading dependencies, restructuring outputs, and changing target frameworks.

It's also quite possible that I mucked up line endings in this PR.

@yaakov-h yaakov-h self-assigned this Jun 29, 2026
@yaakov-h yaakov-h added the enhancement New feature or request label Jun 29, 2026

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<TargetFrameworks>net472;net10.0</TargetFrameworks>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we still need net472? I would be tempted to drop it and just target net10.0.

Last I checked, the .NET Core version of Roslyn had a bug when adding new assembly references, but is that something we need to worry about here? Are we likely to run a code-fix that adds an assembly reference?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I am also quite tempted to drop it, but we should cut over to modern .NET as a (series of) separate PR(s).

Have you ever come across a code-fix that adds assembly references?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants