typescript-analyzer-mcp

typescript-analyzer-mcp

3.3

If you are the rightful owner of typescript-analyzer-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

TypeScript Analyzer MCP Server - Enterprise Edition is a high-performance server designed to analyze and fix TypeScript 'any' types in codebases, offering advanced error handling, caching, and intelligent type inference.

The TypeScript Analyzer MCP Server - Enterprise Edition is a robust tool for developers working with TypeScript. It specializes in identifying and replacing 'any' types in TypeScript code, enhancing code quality and maintainability. The server supports batch processing, allowing multiple files to be analyzed and fixed simultaneously. It also offers features like component interface generation for React components and dynamic server configuration. With its caching capabilities, the server ensures efficient processing by storing analysis results for reuse. This tool is particularly useful for large codebases where manual type correction would be time-consuming.

Features

  • Analyze TypeScript Files: Scan files for 'any' types and get suggested replacements.
  • Fix TypeScript Files: Automatically replace 'any' types with more specific types.
  • Batch Processing: Process multiple files at once.
  • Component Interface Generation: Generate TypeScript interfaces for React components.
  • Server Configuration: Dynamically update server config (log level, caching, etc.).

Tools

  1. getServerInfo

    Retrieves basic information about the analyzer server (name, version, description, features, configuration).

  2. configureServer

    Updates server configuration (log levels, caching, etc.) at runtime.

  3. analyzeTypeScriptFile

    Analyzes a TypeScript file for 'any' types.

  4. fixTypeScriptFile

    Fixes 'any' types in a single TypeScript file.

  5. batchFixTypeScriptFiles

    Batch fixes 'any' types in multiple TypeScript files.

  6. generateComponentInterface

    Generates a proper TypeScript interface for React component props.

  7. clearCache

    Clears the analysis cache to force fresh analysis on subsequent operations.