
Pyrefly Lsp
- Updated February 27, 2026
- lolpack/pyrefly-lsp-claude-plugin
pyrefly-lsp is a Claude Code skill for ai & agent building. It helps developers move faster with AI-assisted coding.
Key points
- pyrefly-lsp
- AI & Agent Building
- AI-coding skill
Pyrefly Lsp by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
/plugin marketplace add lolpack/pyrefly-lsp-claude-plugin/plugin install pyrefly-lsp@pyrefly-lsp-claude-pluginAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Last updated | February 27, 2026 |
|---|---|
| Repository | lolpack/pyrefly-lsp-claude-plugin ↗ |
What it does
Helps with ai & agent building tasks.
README.md
Pyrefly LSP for Claude Code
Python language intelligence for Claude Code powered by Pyrefly (fast Rust-based Python type checker + language server) and launched via uvx (no global pip install pyrefly required).
This is a community-maintained Claude Code plugin. Pyrefly itself is developed upstream in the facebook/pyrefly project.
What you get
- Instant diagnostics: see type errors and warnings while Claude edits code.
- Code navigation: go-to-definition, find references, and document symbols.
- Type insight: hover types + inferred return types.
- Great framework coverage: Pyrefly has built-in understanding for popular patterns (including Pydantic).
Installation
claude plugin marketplace add lolpack/pyrefly-lsp-claude-plugin
claude plugin install pyrefly-lsp@pyrefly-lsp-claude-plugin
Prerequisites
- Install
uvsouvxis available on yourPATH.
Verify:
uvx --version
First run note:
uvxmay download Pyrefly the first time the LSP starts. Subsequent starts are cached.
Notes on diagnostics
Pyrefly intentionally does not show type errors by default unless a Pyrefly configuration exists (e.g. pyrefly.toml or [tool.pyrefly] in pyproject.toml) or the client forces diagnostics on.
This plugin attempts to force diagnostics on via LSP initializationOptions. If you still don’t see diagnostics, run:
uvx pyrefly init
…which will create/augment a config file in your project so diagnostics are enabled.
Local development / testing
You can test this plugin locally (without installing) by pointing Claude Code at the directory:
claude --plugin-dir .
Then open a Python project and ensure:
uvx --versionworks- LSP features (hover, go-to-def, references) work in Python files
Troubleshooting
- If Claude Code reports Executable not found in $PATH:
- Confirm
uvx --versionworks in the same shell session. - Restart Claude Code after installing
uv.
- Confirm
- If navigation works but diagnostics are empty:
- Ensure your project has a Pyrefly config:
uvx pyrefly init.
- Ensure your project has a Pyrefly config:
License
MIT