mcp-win-stdio-tsc
v0.5.6Windows-optimized TypeScript Diagnostic Watcher MCP server: background watchers and in-memory cache for instant 0ms compiler error checks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_projects
List all configured TypeScript projects (from ~/.mcp-win-stdio/tsc_projects.json and active watchers), indicating the active sticky project, watcher status, error count, compiler, and tsconfig paths.
use_project
Switch the active default TypeScript project context. All subsequent diagnostic queries (get_tsc_errors, get_file_errors, get_error_summary) will target this project automatically when project is not specified. Args: project: Project alias name (e.g. 'frontend', 'web') or filesystem directory path to switch to.
| Parameter | Type | Description |
|---|---|---|
project * | string |
add_project
Register and persist a new TypeScript project to ~/.mcp-win-stdio/tsc_projects.json. Optionally starts background compiler watchers immediately and waits for initial compilation. Args: project_path: Local filesystem directory path to the TypeScript project or tsconfig.json. alias: Friendly alias name for switching (e.g. 'web', 'api', 'admin'). Defaults to directory name. auto_watch: If True, immediately verifies tsc and starts background watching (default True). description: Friendly description or notes for this project. wait_for_initial_c…
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
alias | ||
auto_watch | boolean | |
description | ||
timeout_seconds | number | |
wait_for_initial_compile | boolean |
remove_project
Remove a saved TypeScript project configuration from ~/.mcp-win-stdio/tsc_projects.json. Args: project: Alias or directory path of the project to remove. stop_watcher: If True, terminates active background compiler processes for this project (default True).
| Parameter | Type | Description |
|---|---|---|
project * | string | |
stop_watcher | boolean |
get_tsc_errors
Get active TypeScript compiler errors across watched projects (0ms latency from memory cache). Features automatic context window protection, pagination, error code filtering, token-safe message truncation, and automatic synchronization if an initial compilation pass is in progress. Args: project_path: Optional filter by project directory substring. tsconfig_path: Optional filter by specific tsconfig.json file path. error_code: Optional filter by TS error code (e.g. 'TS2304', 'TS2322', 'TS2339'). limit: Maximum number of detailed error objects t…
| Parameter | Type | Description |
|---|---|---|
error_code | ||
limit | integer | |
max_message_chars | integer | |
offset | integer | |
project_path | ||
tsconfig_path | ||
wait_if_compiling | boolean | |
wait_timeout | number |
suggest_error_fixes
[Advanced Tool] Instant actionable fix recommendations and code patterns for common TypeScript compiler errors. Args: error_code: The TypeScript error code (e.g. 'TS2304', 'TS2322', 'TS2339', 'TS7016'). message: Optional compiler error message for deeper context analysis.
| Parameter | Type | Description |
|---|---|---|
error_code * | string | |
message |
get_error_category_breakdown
[Advanced Tool] Get an architectural aggregate breakdown of active errors grouped by semantic category (Missing Imports, Type Mismatches, Property Errors, Nullability, Syntax) to plan refactors. Args: project: Optional project alias or path to filter errors by. Defaults to active project or all.
| Parameter | Type | Description |
|---|---|---|
project |
get_file_errors
Get TypeScript compiler errors for a specific file (.ts, .tsx, .js, .jsx) with context window protection. Args: file_path: Relative or absolute path to the TypeScript/JavaScript file. project: Optional project alias or path filter. Defaults to active project context if set. limit: Max errors to return in this batch (default 30, max 100). offset: Starting offset for pagination (default 0). max_message_chars: Maximum character length for individual error messages (default 300).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
limit | integer | |
max_message_chars | integer | |
offset | integer | |
project |
get_error_summary
Get high-level summary of TypeScript errors across projects without full diagnostic lists. Synchronizes with background compiler passes to avoid returning inaccurate 0-error states while compiling. Args: project: Optional project alias or path to filter summary. Defaults to all or active project. wait_if_compiling: If True, waits up to wait_timeout seconds if projects are currently compiling their initial pass (default True). wait_timeout: Maximum seconds to wait if a project is actively compiling (default 15.0).
| Parameter | Type | Description |
|---|---|---|
project | ||
wait_if_compiling | boolean | |
wait_timeout | number |
list_watched_projects
List all active TypeScript projects and tsconfig.json files currently being monitored.
watch_project
Dynamically add and watch a new TypeScript project or directory without restarting the MCP server. First verifies TypeScript compiler availability, scans for tsconfig.json files, registers project to ~/.mcp-win-stdio/tsc_projects.json, and waits for the initial compilation pass. Args: project_path: Path to project directory or tsconfig.json. wait_for_initial_compile: If True, waits up to timeout_seconds for initial compilation to complete before returning (default True). timeout_seconds: Maximum seconds to wait for initial compilation (default 30.0).…
| Parameter | Type | Description |
|---|---|---|
project_path * | string | |
timeout_seconds | number | |
wait_for_initial_compile | boolean |
restart_tsc_watcher
Restart all active background TypeScript watchers and recompile all projects. Preserves all currently watched projects and registered projects in ~/.mcp-win-stdio/tsc_projects.json, waiting for compilation passes to finish (by default) to guarantee accurate diagnostic results. Args: wait_for_initial_compile: If True, waits up to timeout_seconds for all projects to complete compilation before returning (default True). timeout_seconds: Maximum seconds to wait for initial compilation across all projects (default 30.0).
| Parameter | Type | Description |
|---|---|---|
timeout_seconds | number | |
wait_for_initial_compile | boolean |