name: typescript-lsp
description: TypeScript language server providing type checking, code intelligence, and LSP diagnostics for .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, .cjs files. Use when working with TypeScript or JavaScript code that needs type checking, autocomplete, error detection, refactoring support, or code navigation.
TypeScript LSP
TypeScript/JavaScript language server integration providing comprehensive code intelligence through typescript-language-server.
Capabilities
- Type checking: Static analysis of TypeScript and JavaScript types
- Code intelligence: Autocomplete, go-to-definition, find references, rename symbols
- Error detection: Real-time diagnostics for type errors, syntax issues, and semantic problems
- Refactoring: Extract function/variable, organize imports, quick fixes
- Supported extensions:
.ts, .tsx, .js, .jsx, .mts, .cts, .mjs, .cjs
Installation
Install TypeScript language server and TypeScript compiler:
npm install -g typescript-language-server typescript
Or with yarn:
yarn global add typescript-language-server typescript
Verify installation:
typescript-language-server --version
tsc --version
Usage
The language server runs automatically in LSP-compatible editors. For manual type checking:
tsc --noEmit # Type check without generating output files
Compile TypeScript files:
tsc src/index.ts
Watch mode for continuous type checking:
tsc --watch --noEmit
Configuration
Create tsconfig.json in project root:
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}
Integration Pattern
When editing TypeScript/JavaScript code:
- Run
tsc --noEmit after significant changes
- Address type errors before committing
- Use
tsc --watch during active development
- Leverage quick fixes for common issues
Common Flags
--noEmit: Type check only, no output files
--strict: Enable all strict type checking options
--watch: Watch mode for continuous compilation
--project <path>: Specify tsconfig.json location
--pretty: Stylize errors and messages
More Information
Source: modbender/skill-library-mcp — distributed by TomeVault.
1---2name: modbender-skill-library-mcp-typescript-lsp3description: ---4---5---6name: typescript-lsp7description: TypeScript language server providing type checking, code intelligence, and LSP diagnostics for .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, .cjs files. Use when working with TypeScript or JavaScript code that needs type checking, autocomplete, error detection, refactoring support, or code navigation.8---910# TypeScript LSP1112TypeScript/JavaScript language server integration providing comprehensive code intelligence through typescript-language-server.1314## Capabilities1516- **Type checking**: Static analysis of TypeScript and JavaScript types17- **Code intelligence**: Autocomplete, go-to-definition, find references, rename symbols18- **Error detection**: Real-time diagnostics for type errors, syntax issues, and semantic problems19- **Refactoring**: Extract function/variable, organize imports, quick fixes20- **Supported extensions**: `.ts`, `.tsx`, `.js`, `.jsx`, `.mts`, `.cts`, `.mjs`, `.cjs`2122## Installation2324Install TypeScript language server and TypeScript compiler:2526```bash27npm install -g typescript-language-server typescript28```2930Or with yarn:31```bash32yarn global add typescript-language-server typescript33```3435Verify installation:36```bash37typescript-language-server --version38tsc --version39```4041## Usage4243The language server runs automatically in LSP-compatible editors. For manual type checking:4445```bash46tsc --noEmit # Type check without generating output files47```4849Compile TypeScript files:5051```bash52tsc src/index.ts53```5455Watch mode for continuous type checking:5657```bash58tsc --watch --noEmit59```6061## Configuration6263Create `tsconfig.json` in project root:6465```json66{67 "compilerOptions": {68 "target": "ES2020",69 "module": "ESNext",70 "strict": true,71 "esModuleInterop": true,72 "skipLibCheck": true,73 "forceConsistentCasingInFileNames": true,74 "resolveJsonModule": true,75 "moduleResolution": "node"76 },77 "include": ["src/**/*"],78 "exclude": ["node_modules", "dist"]79}80```8182## Integration Pattern8384When editing TypeScript/JavaScript code:851. Run `tsc --noEmit` after significant changes862. Address type errors before committing873. Use `tsc --watch` during active development884. Leverage quick fixes for common issues8990## Common Flags9192- `--noEmit`: Type check only, no output files93- `--strict`: Enable all strict type checking options94- `--watch`: Watch mode for continuous compilation95- `--project <path>`: Specify tsconfig.json location96- `--pretty`: Stylize errors and messages9798## More Information99100- [typescript-language-server on npm](https://www.npmjs.com/package/typescript-language-server)101- [GitHub Repository](https://github.com/typescript-language-server/typescript-language-server)102- [TypeScript Official Documentation](https://www.typescriptlang.org/docs/)103- [TypeScript Compiler Options](https://www.typescriptlang.org/tsconfig)104105---106> Source: [modbender/skill-library-mcp](https://github.com/modbender/skill-library-mcp) — distributed by [TomeVault](https://tomevault.io).107<!-- tomevault:4.0:skill_md:2026-06-15 -->