loading…
Search for a command to run...
loading…
An HTTP MCP server providing AI agents with real-time access to all VS Code diagnostics (TypeScript, ESLint, Prettier, etc.) via 5 powerful tools including work
An HTTP MCP server providing AI agents with real-time access to all VS Code diagnostics (TypeScript, ESLint, Prettier, etc.) via 5 powerful tools including workspace health scoring.
HTTP MCP server with 5 diagnostic tools providing real-time access to ALL VS Code diagnostics (TypeScript, ESLint, Prettier, and all installed extensions)
This Model Context Protocol (MCP) server provides AI agents with real-time access to all diagnostics from your VS Code workspace, including:
The extension provides two configuration settings:
diagnostics-mcp-server.autoStartbooleantrueTo disable auto-start:
diagnostics-mcp-server.portnumber3846To change the port:
Install from VS Code Marketplace:
Latest Version: 1.0.12 - Complete HTTP MCP implementation with 5 diagnostic tools, enhanced error handling, and working commands
The extension automatically starts the HTTP MCP server when VS Code opens. No additional setup required!
Server Details:
Add this to your MCP client configuration (e.g., Claude Desktop config or VS Code MCP settings):
{
"mcpServers": {
"diagnostics": {
"type": "http",
"url": "http://127.0.0.1:3846/mcp",
"description": "VS Code diagnostics - all 5 tools (errors, warnings, info, health, all diagnostics)"
}
}
}
http://127.0.0.1:3846/healthAvailable immediately after VS Code extension installation - no additional setup required!
Once configured, AI agents (like Claude, GitHub Copilot) can use these 5 MCP tools:
get_all_diagnostics - Get complete diagnostic information from workspaceget_errors - Get only error-level diagnosticsget_warnings - Get only warning-level diagnosticsget_info - Get only info-level diagnosticsget_workspace_health - Get workspace health score (0-100)This extension uses an HTTP MCP Server architecture:
┌─────────────────────────────────────────────────────┐
│ AI Agent (Claude, GitHub Copilot) │
│ ↓ │
│ HTTP MCP Protocol (port 3846) │
│ ↓ │
│ VS Code Extension (HTTP MCP Server) │
│ ↓ │
│ vscode.languages.getDiagnostics() API │
│ ↓ │
│ ALL Diagnostics (TS, ESLint, Prettier, etc.) │
└─────────────────────────────────────────────────────┘
Why Extension Required?
vscode modulegit clone https://github.com/Maaz0313-png/Diagnostics-MCP.git
cd "Diagnostics MCP"
npm install
npm run compile
# Test the launcher
node index.js --help
# Test with a workspace
node index.js
get_all_diagnosticsGet complete diagnostic information from workspace.
Returns:
{
"total": 42,
"diagnostics": [
{
"file": "src/app.ts",
"line": 10,
"column": 5,
"severity": "error",
"message": "Type 'string' is not assignable to type 'number'",
"source": "ts"
}
],
"status": "found",
"timestamp": "2025-10-02T10:30:00.000Z"
}
get_errorsGet only error-level diagnostics.
Returns:
{
"count": 5,
"diagnostics": [...],
"severityLevel": "errors",
"status": "found",
"timestamp": "2025-10-02T10:30:00.000Z"
}
get_warningsGet only warning-level diagnostics.
Returns:
{
"count": 3,
"diagnostics": [...],
"severityLevel": "warnings",
"status": "found",
"timestamp": "2025-10-02T10:30:00.000Z"
}
get_infoGet only info-level diagnostics.
Returns:
{
"count": 2,
"diagnostics": [...],
"severityLevel": "info",
"status": "found",
"timestamp": "2025-10-02T10:30:00.000Z"
}
get_workspace_healthGet workspace health score (0-100) based on diagnostics.
Returns:
{
"healthScore": 85,
"status": "good",
"summary": {
"errors": 2,
"warnings": 5,
"infos": 3,
"total": 10
},
"timestamp": "2025-10-02T10:30:00.000Z"
}
Health Score Calculation:
Four commands available in Command Palette (Ctrl+Shift+P):
🚀 Diagnostics MCP: Start HTTP MCP Server
🛑 Diagnostics MCP: Stop HTTP MCP Server
🔄 Diagnostics MCP: Restart HTTP MCP Server
📊 Diagnostics MCP: MCP Server Status (5 Tools + Health)
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
http://127.0.0.1:3846/healthdiagnostics-mcp-server.portMade with ❤️ by Maaz Tajammul
Выполни в терминале:
claude mcp add diagnostics-mcp-server -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development