MCP.so
登录

TypeScript Analyzer MCP Server - Enterprise Edition

@davidleathers113

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

davidleathers113

关于 TypeScript Analyzer MCP Server - Enterprise Edition

Analyze and fix any types in TypeScript with an intelligent MCP server – fast, extensible, and React-aware.

#typescript-analyzer#type-checker#code-analysis

TypeScript Analyzer MCP Server - Enterprise Edition 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "typescript-analyzer-mcp": {
      "command": "node",
      "args": [
        "dist/index.js"
      ]
    }
  }
}

TypeScript Analyzer MCP Server - Enterprise Edition 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is TypeScript Analyzer MCP Server - Enterprise Edition?

It is a high-performance MCP (Model Context Protocol) server that analyzes and fixes TypeScript any types in a codebase, featuring caching, intelligent type inference, batch processing, and React component interface generation. It is designed for developers using MCP‑compatible assistants like Claude Desktop.

How to use TypeScript Analyzer MCP Server - Enterprise Edition?

Clone the repository, run npm install, build with npm run build, and start with npm start (or node dist/index.js). To use with Claude Desktop, add the server to your .claude-app.json configuration under mcpServers. Invoke operations via tools such as analyzeTypeScriptFile, fixTypeScriptFile, batchFixTypeScriptFiles, generateComponentInterface, clearCache, configureServer, and getServerInfo.

Key features of TypeScript Analyzer MCP Server - Enterprise Edition

  • Scan TypeScript files for any types and suggest replacements
  • Automatically replace any types with more specific types
  • Process multiple files in batch with configurable concurrency
  • Generate TypeScript interfaces for React component props
  • Update server configuration (log level, caching) at runtime
  • Clear and manage analysis caches on demand

Use cases of TypeScript Analyzer MCP Server - Enterprise Edition

  • Analyze a single TypeScript file for any usage and get suggestions
  • Fix any types in a file with a dry run to preview changes
  • Batch‑fix all TypeScript files in a directory, skipping backups if desired
  • Generate a proper TypeScript interface for a React component’s props
  • Clear the analysis cache to force fresh analyses on subsequent operations

常见问题

1

What types does the server use to replace `any`?

It applies a predefined set of mappings for common patterns (e.g., `e: any` → `e: React.SyntheticEvent`, `data: any` → `data: Record<string, unknown>`). For patterns not covered, it defaults to `unknown`.

2

Can I preview changes before applying them?

Yes. The `fixTypeScriptFile` and `batchFixTypeScriptFiles` tools accept a `dryRun` parameter. When set to `true`, the server shows the modifications without altering any files.

3

How can I process multiple files at once?

Use the `batchFixTypeScriptFiles` tool. Provide a `directory` and a glob `pattern` (e.g., `**/*.ts`) to select files; you can also adjust `concurrency` for parallel processing.

4

Does the server create backup files before editing?

By default, a backup is created before modifying a file. To skip this, set the `skipBackup` parameter to `true` when calling `fixTypeScriptFile` or `batchFixTypeScriptFiles`.

5

How do I clear the analysis cache?

Invoke the `clearCache` tool. This removes all cached analysis results, forcing fresh analyses on subsequent operations.

评论

其他 分类下的更多 MCP 服务器