mcp-win-stdio-tsc

v0.5.6
mcp-win-stdio-tsc Checked 1 day ago Published 4 days ago

Windows-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.

ParameterTypeDescription
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…

ParameterTypeDescription
project_path *string
alias
auto_watchboolean
description
timeout_secondsnumber
wait_for_initial_compileboolean

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).

ParameterTypeDescription
project *string
stop_watcherboolean

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…

ParameterTypeDescription
error_code
limitinteger
max_message_charsinteger
offsetinteger
project_path
tsconfig_path
wait_if_compilingboolean
wait_timeoutnumber

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.

ParameterTypeDescription
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.

ParameterTypeDescription
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).

ParameterTypeDescription
file_path *string
limitinteger
max_message_charsinteger
offsetinteger
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).

ParameterTypeDescription
project
wait_if_compilingboolean
wait_timeoutnumber

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).…

ParameterTypeDescription
project_path *string
timeout_secondsnumber
wait_for_initial_compileboolean

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).

ParameterTypeDescription
timeout_secondsnumber
wait_for_initial_compileboolean