Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ilepnv1.0.0MIT
Gives Claude Code live Python type diagnostics and code intelligence through Astral's ty language server, a Rust-based alternative to Pyright. Claims about 2.2x faster checks than Pyright; ty is beta (v0.0.10), and it says strict mode is not yet available.
Trending plugins
7-day copy clicks
Language servers for diagnostics and code navigation.
type-checker, lsp, type-checking, code-intelligence, astral, language-server, ty
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Reference implementation of ty LSP plugin for Claude Code.
ty is an extremely fast Python type checker and language server from Astral (creators of Ruff and uv), written in Rust. This plugin enables ty integration with Claude Code for blazing-fast Python type checking.
Performance comparison on a 2,092-line typed Python codebase (16 files):
| Type Checker | Mode | Avg Time | Performance |
|---|---|---|---|
| ty | default | 0.43s | 2.2x faster |
| Pyright | basic | 0.95s | baseline |
Key Findings:
You need uv installed to run ty:
# Install uv (if not already installed)
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Verify ty works
uvx ty@latest --version
# Clone this repository
git clone https://github.com/YOUR_USERNAME/ty-lsp-claude-code.git
cd ty-lsp-claude-code
# Install the plugin in Claude Code
claude plugin install .
For testing without permanent installation:
# Run Claude Code with this plugin
claude --plugin-dir /path/to/ty-lsp-claude-code
~/.claude/plugins/local/ty-lsp/~/.claude/settings.json:{
"enabledPlugins": {
"ty-lsp@local": true
}
}
No additional configuration needed - ty will automatically discover your project settings from pyproject.toml.
Create or update pyproject.toml in your project root:
[tool.ty.environment]
python-version = "3.12"
[tool.ty.rules]
# Configure individual rules (see: https://docs.astral.sh/ty/rules/)
invalid-assignment = "error"
invalid-argument-type = "error"
invalid-return-type = "error"
If you want to use ty exclusively and disable Pyright:
File: ~/.claude/settings.json
{
"enabledPlugins": {
"pyright-lsp@claude-plugins-official": false,
"ty-lsp@local": true
}
}
Pyright (basic mode):
Run 1: 1.442s
Run 2: 0.956s
Run 3: 0.945s
Run 4: 0.960s
Run 5: 0.947s
Average: 0.950s
ty (default mode):
Run 1: 0.444s
Run 2: 0.426s
Run 3: 0.445s
Run 4: 0.408s
Run 5: 0.423s
Average: 0.429s
Speedup: 2.21x faster
ty is in beta (v0.0.10) as of January 2025:
Recommendation: Great for early adopters and performance-critical LSP usage. For production strict typing, continue using Pyright until ty 1.0.
This plugin follows the Claude Code plugin specification:
ty-lsp-claude-code/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest with LSP configuration
└── README.md # This file
The LSP configuration in plugin.json:
{
"lspServers": {
"ty": {
"command": "uvx",
"args": ["ty@latest", "server"],
"extensionToLanguage": {
".py": "python",
".pyi": "python"
}
}
}
}
This is a reference implementation created in response to astral-sh/ty#2230.
Suggestions and improvements welcome! Please open an issue or PR.
MIT License - See ty repository for ty's license terms.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (ilepn/ty-lsp-claude-code) — no native marketplace selected
npx claudepluginhub p/ilepn-ty-lspPlugins from other owners that cover similar ground