[BUG]
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I have tried to enable LSP tools and installed 2 (pyright and typescript) as plugins from the ofiicial marketplace. I start claude with both
- ENABLE_LSP_TOOL=1 / ENABLE_LSP_TOOLS=1 set
- pyright-lsp@claude-plugins-official plugin installed and enabled
- pyright-langserver in PATH
- LSP tool returns "No LSP server available for file type: .py"
Claude verified all of these are accessible in session.
Not sure if it matters but I also launch with --dangerously-skip-permissions
What Should Happen?
Claude should be able to perform LSP operations on .py files.
Error Messages/Logs
Steps to Reproduce
Environment
- macOS Darwin 24.6.0
- Claude Code with Opus 4.5
- Node v22.15.0
- pyright 1.1.407
Configuration Verified
- Environment variables set:
ENABLE_LSP_TOOL=1
ENABLE_LSP_TOOLS=1
- Plugin enabled in ~/.claude/settings.json:
"enabledPlugins": {
"pyright-lsp@claude-plugins-official": true
}
- Plugin installed in ~/.claude/plugins/installed_plugins.json:
{
"pyright-lsp@claude-plugins-official": [{
"scope": "user",
"installPath": "~/.claude/plugins/cache/claude-plugins-official/pyright-lsp/1.0.0",
"version": "1.0.0",
"isLocal": true
}]
}
- Binary available in PATH:
$ which pyright-langserver
/Users/david/.nvm/versions/node/v22.15.0/bin/pyright-langserver
- Marketplace plugin definition correct (in ~/.claude/plugins/marketplaces/claude-plugins-official/.claude-plugin/marketplace.json):
{
"name": "pyright-lsp",
"lspServers": {
"pyright": {
"command": "pyright-langserver",
"args": ["--stdio"],
"extensionToLanguage": {
".py": "python",
".pyi": "python"
}
}
}
}
Steps Taken
- Confirmed LSP tool returns "No LSP server available for file type: .py"
- Discovered pyright wasn't installed → installed via npm install -g pyright
- Restarted Claude Code
- Still didn't work
- Added ENABLE_LSP_TOOLS=1 (plural) in addition to singular
- Restarted Claude Code
- Still didn't work
- Cleared plugin cache: rm -rf ~/.claude/plugins/cache/claude-plugins-official
- Reinstalled plugin via /plugin install pyright-lsp@claude-plugins-official
- Restarted Claude Code
- Still returns "No LSP server available for file type: .py"
Expected Behavior
LSP tool should connect to pyright-langserver and return code intelligence data.
Actual Behavior
LSP tool returns "No LSP server available for file type: .py" despite all configuration being correct.
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
v2.0.76
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗