/python-lsp:python-lspfrom MSApps Python LSP
Provides semantic Python code intelligence via Pyright LSP: type errors, import resolution, go-to-definition, find-references, and hover type info. Use when grep/glob is insufficient for Python symbol resolution.
Ships in MSApps Python LSP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part of the LSP plugin series. Wraps Pyright (pyright-langserver)
as a read-only, SOSA Level 1 intelligence source.
pyright-langserver --version works. If missing, run
npm install -g pyright or pip install pyright.pyrightconfig.json,
pyproject.toml, setup.py, setup.cfg, or a .git directory..lsp.json wiring:
textDocument/publishDiagnostics → type/import errorstextDocument/definition → jump to definitiontextDocument/references → all call sitestextDocument/hover → inferred type / docstringworkspace/symbol → fuzzy symbol searchfind-references over every public symbol in the touched file.reportMissingImports for installed packages, the
virtual environment isn't configured — check pyrightconfig.json
venvPath/venv settings before trusting import counts..pyright/ to the workspace root.
Safe to delete to force a full reindex. Subsequent runs are fast.venvPath + venv in pyrightconfig.json
(or pythonPath for a specific interpreter) so Pyright resolves installed
packages correctly.off → basic → standard → strict. The plugin
sends basic via settings.python.analysis (a project pyrightconfig.json
overrides it); upgrade to standard or strict for well-typed
codebases where you want exhaustive checking.pyrightconfig.json{
"typeCheckingMode": "basic",
"pythonVersion": "3.11",
"venvPath": ".",
"venv": ".venv",
"reportMissingImports": true,
"reportMissingTypeStubs": false,
"exclude": ["**/node_modules", "**/__pycache__"]
}
"reportMissingImports fires on every import."
Your venv isn't configured. Add venvPath/venv to pyrightconfig.json or
set pythonPath to the interpreter that has your dependencies installed.
"find-references returns fewer hits than I expect." Two common causes:
getattr, __dict__) — Pyright can't statically
resolve these; note them as dynamic in your output."Type stubs missing for a third-party library."
Install types-<package> from PyPI (e.g. pip install types-requests) or
add reportMissingTypeStubs: false to pyrightconfig.json to silence it.
"Pyright is slow on first open."
Expected — Pyright indexes the full workspace. Subsequent runs use the
.pyright/ cache and are much faster. For very large monorepos, add
"exclude" patterns to limit the scope.
".pyi stub files not picked up."
Set stubPath in pyrightconfig.json to the directory containing your stubs.
Pyright looks in typings/ by default.
"Django / SQLAlchemy dynamic attributes flagged as errors."
These frameworks use heavy runtime metaprogramming. Install the appropriate
type stubs (django-stubs, sqlalchemy-stubs) or switch to "basic" mode
to suppress dynamic-attribute false positives.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub msapps-mobile/claude-plugins --plugin python-lspOther plugins' skills for the same job