How to install the Pyright LSP plugin in Claude Code
Install the Pyright language-server executable and open the project with its intended Python environment.
- Install the language server separately and make sure pyright-langserver is available on your PATH.
- Start Claude Code once to register Anthropic’s official marketplace. Then run the install command in your terminal.
- Start a new Claude Code session in a project for the language and open a source file to confirm the server loads.
Claude Code · Install in Claude Code
claude plugin install pyright-lsp@claude-plugins-officialTry a first task
Change a Python function to allow an empty result and inspect every call site that assumes it always returns a value. Confirm the diagnostics disappear after handling the optional result.
Package components
- Python language server