Skip to main content
plugin official · Anthropic

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.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install typescript-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official
Open on GitHub

What 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 .ts and .tsx source files
  • locate symbol references throughout the repository
  • spot syntax and type errors before compiling
  • inspect modules in .cjs and .mjs formats

Example prompts for the agent

  • Find all references to handleAuth in the codebase
  • Check src/server.ts for type errors
  • Go to the definition of the UserConfig interface

How to install typescript-lsp

Plugin marketplace

/plugin install typescript-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official

Step 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

Similar plugins

All plugins for Programming languages →

From the same set123

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor