{
  "markdown": "# mcp-pyright\n\n> MCP server that exposes Pyright language server functionality\n\n[![PyPI](https://img.shields.io/pypi/v/mcp-pyright.svg)](https://pypi.org/project/mcp-pyright/)\n[![Python](https://img.shields.io/pypi/pyversions/mcp-pyright.svg)](https://pypi.org/project/mcp-pyright/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\nmcp-name: io.github.daedalus/mcp-pyright\n\n## Install\n\n```bash\npip install mcp-pyright\n```\n\n## Usage\n\nThe MCP server can be used with any MCP-compatible client. It exposes the following tools:\n\n### Type Checking\n\n```python\nfrom mcp_pyright import mcp\n\n# Run type checking\nresult = check_types(code=\"x: int = 'hello'\")\n```\n\n### Get Hover Information\n\n```python\n# Get type information at position\nresult = get_hover(code=\"x: int = 1\", position=0)\n```\n\n### Get Completions\n\n```python\n# Get code completions\nresult = get_completions(code=\"prin\", position=4)\n```\n\n### Get Definition\n\n```python\n# Find definition location\nresult = get_definition(code=\"def foo(): pass\\nfoo()\", position=15)\n```\n\n### Find References\n\n```python\n# Find all references\nresult = find_references(code=\"x = 1\\nx\", position=5)\n```\n\n### Get Document Symbols\n\n```python\n# Get all symbols in document\nresult = get_document_symbols(code=\"class Foo: pass\\ndef bar(): pass\")\n```\n\n### Format Code\n\n```python\n# Format Python code\nresult = format_code(code=\"x=1\\ny=2\")\n```\n\n## Development\n\n```bash\ngit clone https://github.com/daedalus/mcp-pyright.git\ncd mcp-pyright\npip install -e \".[test]\"\n\n# run tests\npytest\n\n# format\nruff format src/ tests/\n\n# lint\nruff check src/ tests/\n\n# type check\nmypy src/\n```\n\n## License\n\nMIT\n",
  "bytes": 1722,
  "sha": "4de4be7fe89be8a89812cf50371c972b037f6d62a38510d4eb44ea35a17c4977",
  "repo_slug": "daedalus/mcp-pyright",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_daedalus_mcp_pyright_ffe41d68/readme"
}