ts-error-mcp
v1.0.1
Published
MCP stdio server for TypeScript compiler diagnostics
Downloads
200
Readme
ts-error-mcp
ts-error-mcp is a TypeScript MCP stdio server that wraps tsc --noEmit and exposes token-efficient tools for compiler diagnostics.
Tools
getAllErrorsgetErrorsInDirectorygetErrorsByCodegetErrorsInFilegetErrorSummarylistTopErrorCodeserrorDescription
Setup
npm install
npm run buildRun
npm startOr run the packaged CLI directly:
npx ts-error-mcpExample MCP config
{
"mcpServers": {
"ts-error-mcp": {
"command": "npx",
"args": ["-y", "ts-error-mcp"]
}
}
}Notes
- The server runs the local TypeScript compiler (
typescript/bin/tsc) with--noEmit --pretty false. - Diagnostic runs are cached briefly to avoid repeated full compiles during iterative queries.
errorDescriptionfetches docs from thebennycode/typescript-errorsrepository and caches by code.
