typescript-lsp — Claude Code plugin: what it does, how to install
Adds TypeScript and JavaScript language server support to Claude Code. It provides definition lookups, reference finding, and error diagnostics across project files.
/plugin install typescript-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-officialWhat typescript-lsp does
This plugin connects Claude Code to a language server for JavaScript and TypeScript projects. It handles go-to-definition lookups and error checks. Supported file extensions include .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, and .cjs.
Setup requires a global installation of typescript-language-server and typescript via npm or yarn. Run npm install -g typescript-language-server typescript or use yarn. Without those global packages, the server will fail to start.
What it helps with
- jump to definitions across
.tsand.tsxsource files - locate symbol references throughout the repository
- spot syntax and type errors before compiling
- inspect modules in
.cjsand.mjsformats
Example prompts for the agent
- Find all references to
handleAuthin the codebase - Check
src/server.tsfor type errors - Go to the definition of the
UserConfiginterface
How to install typescript-lsp
Plugin marketplace
/plugin install typescript-lsp@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-officialStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about typescript-lsp
How to install typescript-lsp in Claude Code?
First, register the official marketplace with /plugin marketplace add anthropics/claude-plugins-official. Then install the plugin using /plugin install typescript-lsp@claude-plugins-official. Ensure you also run npm install -g typescript-language-server typescript or use yarn.
What does typescript-lsp do?
It equips Claude Code with code intelligence for JavaScript and TypeScript. That includes go-to-definition queries, reference lookups, and error checking.
Which file extensions are supported by typescript-lsp?
The plugin supports .ts, .tsx, .js, .jsx, .mts, .cts, .mjs, and .cjs files.
Source text
typescript-lsp · Apache-2.0
# typescript-lsp TypeScript/JavaScript language server for Claude Code, providing code intelligence features like go-to-definition, find references, and error checking. ## Supported Extensions `.ts`, `.tsx`, `.js`, `.jsx`, `.mts`, `.cts`, `.mjs`, `.cjs` ## Installation Install the TypeScript language server globally via npm: ```bash npm install -g typescript-language-server typescript ``` Or with yarn: ```bash yarn global add typescript-language-server typescript ``` ## More Information - [typescript-language-server on npm](https://www.npmjs.com/package/typescript-language-server) - [GitHub Repository](https://github.com/typescript-language-server/typescript-language-server)
© Anthropic · Apache-2.0 · anthropics/claude-plugins-official