# ts-language-mcp

Source: https://glimind.com/server/npm%2Fts-language-mcp
Registry id: `npm/ts-language-mcp`
Status: unknown

## Install

```json
{
  "mcpServers": {
    "ts-language-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ts-language-mcp"
      ]
    }
  }
}
```

Claude Code:

```sh
claude mcp add ts-language-mcp -- npx -y ts-language-mcp
```

## Tools (29)

- `analyze_position`: Combined analysis in one call (by name)
- `apply_code_fix`: Apply a fix and write it to disk (by name)
- `batch_analyze`: Analyze multiple positions at once (by name)
- `calculate_metrics`: Cyclomatic complexity and LOC per function/file
- `detect_duplication`: Structurally duplicated code blocks
- `find`: AST search by name pattern, kind, scope (paged)
- `find_indirection_hotspots`: Symbols reached through deep call chains
- `format_document`: Format with built-in formatter, written to disk
- `get_all_diagnostics`: Project-wide diagnostics, including tsconfig errors
- `get_call_hierarchy`: Trace function callers / callees (by name)
- `get_code_fixes`: The compiler's own fixes for an error (by name)
- `get_completions`: Context-aware completions
- `get_definition`: Jump from usage to declaration (by name, returns all declarations)
- `get_diagnostics`: Errors/warnings for a file, TypeScript + ESLint
- `get_hover`: Type info and JSDoc (by name)
- `get_implementations`: Find concrete implementations of interfaces (by name)
- `get_imports`: List all imports with details
- `get_module_dependencies`: What a file imports and what imports it
- `get_outline`: Hierarchical file structure
- `get_references`: Find all usages with read/write classification (by name, paged)
- `get_signature`: Function parameter help (by name)
- `get_symbols`: Flat list of symbols in a file (paged)
- `get_type_definition`: Jump to a symbol's type rather than the symbol (by name)
- `get_type_hierarchy`: Navigate inheritance chains (by name)
- `get_workspace_symbols`: Fast fuzzy symbol search
- `organize_imports`: Sort imports and drop unused ones
- `quality_report`: Top offenders across all quality categories
- `rename_preview`: Preview rename impact (by name)
- `rename_symbol`: Execute rename across project, written to disk (by name)

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
