dotnet-context-mcp for VS Code & Cursor
Zero-config setup for dotnet-context-mcp MCP server in VS Code, Cursor, Continue.dev, and Windsurf.
Installation
For Cursor and other Open VSX-compatible editors: Search "dotnet-context-mcp" in the Extensions panel and click Install.
For VS Code (manual for now):
- Download the latest
.vsixfrom GitHub Releases - In VS Code, open Extensions panel (
Ctrl+Shift+X) - Click the
...menu (top-right of Extensions panel) - Select "Install from VSIX..."
- Choose the downloaded
.vsixfile
VS Code Marketplace listing coming soon.
What it does
dotnet-context-mcp gives Claude Code (and other MCP-compatible AI clients) structured, symbol-level access to your .NET solution — DbContexts, entities, migrations, relationships, DI registrations, and custom analyzer plugins.
This extension makes setup trivial:
- Detects installed MCP clients
- Adds dotnet-context-mcp to their config with backup + rollback
- Shows a live sidebar tree view of your solution's health
- Provides commands for install, uninstall, verify, and log inspection
Commands
Access via Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS):
- dotnet-context-mcp: Setup for MCP Client — auto-detect and install
- dotnet-context-mcp: Detect MCP Clients — show detection results
- dotnet-context-mcp: Verify — check current setup health
- dotnet-context-mcp: Uninstall — remove from selected client(s)
- dotnet-context-mcp: Show Status — open detection report
- dotnet-context-mcp: Show Logs — open extension log output
- dotnet-context-mcp: Open Settings — jump to extension settings
Solution Overview Tree View
When a .NET solution (.sln) is open, click the database icon in the
Activity Bar to see:
- Solution health score (0-100) and grade (A-F)
- Each DbContext expandable with entities, migrations, relationships, and registrations
- All detected issues from analyze_solution_health
Click any item to open its source file.
Settings
Available in File → Preferences → Settings (search "dotnet-context-mcp"):
serverPath— npm package identifier for the MCP server (advanced)logLevel— off / error / warn / info / debugautoDetectOnStartup— detect clients when extension activatesnotifyOnFirstRun— welcome notificationtreeView.autoRefresh— refresh on.sln/.csfile changestreeView.includeCustomRules— include custom analyzer rules in health report
Supported MCP Clients
- Claude Code —
.mcp.json(project) or~/.claude.json(user) - Cursor —
.cursor/mcp.json - Continue.dev —
~/.continue/config.json - Windsurf —
~/.codeium/windsurf/mcp_config.json
About dotnet-context-mcp
The underlying MCP server (npmjs.com/package/dotnet-context-mcp) provides 9 Roslyn-powered tools:
analyze_solution_health— aggregate health report with issue detectionanalyze_migration— 13 EF migration operation typesfind_relationships— entity relationship graph with cardinalityfind_dbcontext_dependencies— DI registration analysisrun_custom_analyzers— user-defined JSON ruleslist_dbcontexts,list_entities,list_migrationsecho— connectivity test
See the main project README for detailed tool documentation.
License
MIT © 2026 Halil İbrahim Sayın
