From pyright-lsp
Pyright language server provides code intelligence for Python — real-time diagnostics, type checking, go-to-definition, find references, and hover information for .py and .pyi files.
Ships in pyright-lsp. Installing the plugin adds it to Claude Code.
This LSP server requires pyright-langserver to be installed on your system. Make sure it's available in your PATH before enabling.
Copy this JSON into your .lsp.json to enable this server
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"pyright": {
"command": "pyright-langserver",
"extensionToLanguage": {
".py": "python",
".pyi": "python"
},
"args": [
"--stdio"
]
}
}
}File extensions mapped to language identifiers
Server configuration and transport parameters
pyright-langserverstdioCommand-line arguments passed to the server process
Initialization options and workspace settings
7-day visitors to each server page
claude plugin install pyright-lsp@claude-plugins-official