
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
mcp-pyright
Advanced tools
MCP server that exposes Pyright language server functionality
mcp-name: io.github.daedalus/mcp-pyright
pip install mcp-pyright
The MCP server can be used with any MCP-compatible client. It exposes the following tools:
from mcp_pyright import mcp
# Run type checking
result = check_types(code="x: int = 'hello'")
# Get type information at position
result = get_hover(code="x: int = 1", position=0)
# Get code completions
result = get_completions(code="prin", position=4)
# Find definition location
result = get_definition(code="def foo(): pass\nfoo()", position=15)
# Find all references
result = find_references(code="x = 1\nx", position=5)
# Get all symbols in document
result = get_document_symbols(code="class Foo: pass\ndef bar(): pass")
# Format Python code
result = format_code(code="x=1\ny=2")
git clone https://github.com/daedalus/mcp-pyright.git
cd mcp-pyright
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
MIT
FAQs
MCP server that exposes Pyright language server functionality
We found that mcp-pyright demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.