io.github.daedalus/mcp-pyright

Registre officiel Autres

MCP server that exposes Pyright language server functionality

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

PYPI package mcp-pyright
Claude Code
claude mcp add mcp-pyright -- uvx mcp-pyright==0.1.0
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "mcp-pyright": {
            "command": "uvx",
            "args": [
                "mcp-pyright==0.1.0"
            ]
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. mcp-pyright
  2. Install
  3. Usage
  4. Development
  5. License

mcp-pyright

MCP server that exposes Pyright language server functionality

mcp-name: io.github.daedalus/mcp-pyright

Install

pip install mcp-pyright

Usage

The MCP server can be used with any MCP-compatible client. It exposes the following tools:

Type Checking
from mcp_pyright import mcp

# Run type checking
result = check_types(code="x: int = 'hello'")
Get Hover Information
# Get type information at position
result = get_hover(code="x: int = 1", position=0)
Get Completions
# Get code completions
result = get_completions(code="prin", position=4)
Get Definition
# Find definition location
result = get_definition(code="def foo(): pass\nfoo()", position=15)
Find References
# Find all references
result = find_references(code="x = 1\nx", position=5)
Get Document Symbols
# Get all symbols in document
result = get_document_symbols(code="class Foo: pass\ndef bar(): pass")
Format Code
# Format Python code
result = format_code(code="x=1\ny=2")

Development

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/

License

MIT

Questions fréquentes

Qu'est-ce que io.github.daedalus/mcp-pyright ?

MCP server that exposes Pyright language server functionality

Comment installer io.github.daedalus/mcp-pyright ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add mcp-pyright -- uvx mcp-pyright==0.1.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.daedalus/mcp-pyright ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

io.github.daedalus/mcp-pyright est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.daedalus/mcp-pyright ?

Il est publié par daedalus. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.