[BUG]

Resolved 💬 3 comments Opened Dec 28, 2025 by dchersey Closed Dec 31, 2025

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

  1. Environment variables set:

ENABLE_LSP_TOOL=1
ENABLE_LSP_TOOLS=1

  1. Plugin enabled in ~/.claude/settings.json:

"enabledPlugins": {
"pyright-lsp@claude-plugins-official": true
}

  1. 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
}]
}

  1. Binary available in PATH:

$ which pyright-langserver
/Users/david/.nvm/versions/node/v22.15.0/bin/pyright-langserver

  1. 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

  1. Confirmed LSP tool returns "No LSP server available for file type: .py"
  2. Discovered pyright wasn't installed → installed via npm install -g pyright
  3. Restarted Claude Code
  4. Still didn't work
  5. Added ENABLE_LSP_TOOLS=1 (plural) in addition to singular
  6. Restarted Claude Code
  7. Still didn't work
  8. Cleared plugin cache: rm -rf ~/.claude/plugins/cache/claude-plugins-official
  9. Reinstalled plugin via /plugin install pyright-lsp@claude-plugins-official
  10. Restarted Claude Code
  11. 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_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗