[Bug] TypeScript LSP Plugin Not Registering with LSP Tool System
Hi! Default (anthropic-provided) LSP plugin do not work for me. Below the details and proposed (by CC) fix.
Bug Description
Bug Report: TypeScript LSP Tool Returns "No LSP server available" Despite Plugin Being Enabled
Summary
The LSP tool returns "No LSP server available for file type: .ts" even when:
- typescript-lsp@claude-plugins-official plugin is enabled in settings
- typescript-language-server is globally installed and accessible in PATH
Environment
- Claude Code version: Latest (as of Jan 2026)
- OS: macOS (Darwin 24.3.0)
- Node: v22.13.1 (via nvm)
- typescript-language-server: 4.4.0 (globally installed)
Steps to Reproduce
- Enable the TypeScript LSP plugin in ~/.claude/settings.json:
{
"enabledPlugins": {
"typescript-lsp@claude-plugins-official": true
}
}
- Install typescript-language-server globally:
npm install -g typescript-language-server
- Verify installation:
which typescript-language-server
# Returns: /Users/name/.nvm/versions/node/v22.13.1/bin/typescript-language-server
typescript-language-server --version
# Returns: 4.4.0
- Use the LSP tool in Claude Code on any TypeScript file:
LSP operation: documentSymbol
filePath: src/lib/shared/utils.ts
line: 1
character: 1
Expected Behavior
The LSP tool should connect to the typescript-language-server and return document symbols, hover information, go-to-definition results, etc.
Actual Behavior
The LSP tool returns:
No LSP server available for file type: .ts
Investigation Done
- Confirmed plugin is enabled in ~/.claude/settings.json ✓
- Confirmed typescript-language-server is globally installed ✓
- Confirmed binary is in PATH and executable ✓
- Restarted Claude Code multiple times ✗ (no effect)
- Checked ~/.claude.json for LSP config options - none documented
- Reviewed Claude Code documentation - no explicit LSP server registration mechanism exists
Hypothesis
The typescript-lsp@claude-plugins-official plugin and the LSP tool appear to be disconnected systems. The plugin may provide some functionality, but it doesn't register a language server that the LSP tool can discover and use.
Requested Fix
Either:
- Make the typescript-lsp plugin properly register with the LSP tool system
- Add explicit LSP server configuration in settings.json or ~/.claude.json, e.g.:
{
"lspServers": {
"typescript": {
"command": "typescript-language-server",
"args": ["--stdio"],
"fileTypes": [".ts", ".tsx", ".js", ".jsx"]
}
}
}
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.0.76
- Feedback ID: 57946a01-2dc6-48aa-abae-d323bf135693
Errors
No errors
15 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Same for me! No LSP works. Claude found a PR with race conditions. Hopefully we get a fix soon. Its a shame to have such a great feature that doesnt work :(
@ajbmachon patch here https://gist.github.com/Zamua/f7ca58ce5dd9ba61279ea195a01b190c?permalink_comment_id=5933528#gistcomment-5933528
Thanks so much @genesiscz! That is super helpful :)
It is working now in the new version, can be closed @ajbmachon @olegakbarov
Yes it it resolved for me. LSP finally works! 😁
just a question guys, did you install anything else aside from the plugin?
Still not working in v2.1.14.
Tried uninstalling and reinstalling.
Yes you need to install an LSP server for your language, and it must be on your $PATH, and the CC must be configured to call this LSP from your system. Try asking CC resolve this issue.
For me it worked in earlier versions with the exact same setup
why this issue is still persist, how to fix this? try reinstalling still no working
you need to change some setting: check here
I am on MacOS, Claude Code version 2.1.39 and still have this issue. I tried adding ENABLE_LSP_TOOL=1 when starting claude as suggested somewhere but didn't help.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.