Token导航 LogoToken导航TokenDH.com
MCP Pyright logo
开发工具stdio官方级别未说明来源级核验

MCP Pyright

MCP Server

一个基于Pyright的MCP服务器,提供Python代码的类型检查、悬停信息、自动补全、定义跳转、引用查找、文档符号获取和代码格式化功能。

工具数

7

提示词数

0

GitHub Stars

0

资源数

0
代码分析开发工具Python本地部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

daedalus

提供方

daedalus

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install mcp-pyright

详细介绍

mcp版权

公开Pyright语言服务器功能的MCP服务器

![PyPI](https://pypi.org/project/mcp-pyright/) ![Python](https://pypi.org/project/mcp-pyright/) ![Ruff](https://github.com/astral-sh/ruff)

mcp名称:io.github.daedalus/mcp-yright

安装

pip install mcp-pyright

用法

MCP服务器可以与任何兼容MCP的客户端一起使用。它公开了以下工具:

类型检查

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/

许可证

麻省理工学院

目录标签

目录标签

代码分析开发工具Python本地部署Python开发语言服务器

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

7

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP