GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Compiler-backed read-only Verilog and SystemVerilog project analysis.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"pyslang": {
"command": "uvx",
"args": [
"pyslang-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add pyslang -- uvx pyslang-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"pyslang": {
"command": "uvx",
"args": [
"pyslang-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"pyslang": {
"type": "stdio",
"command": "uvx",
"args": [
"pyslang-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 ariklapid 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.0)于6个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
pyslang-mcp is a local Model Context Protocol server that gives AI agents compiler-backed, read-only context for Verilog and SystemVerilog projects.
It wraps pyslang so an MCP client can ask questions against parsed and elaborated HDL instead of plain text:
.f files resolve as expected?This is not a simulator, synthesizer, waveform viewer, linter replacement, or RTL refactoring tool. It is a small semantic analysis service for local HDL checkouts.
That read-only boundary is intentional. It keeps the server side-effect free, reduces the blast radius in IP-protected workspaces, and makes it safer to use in local and CI environments.
It was decided to keep pyslang-mcp read-only. The LLM handles the actual RTL coding, while pyslang-mcp serves as the compile/elab-backed reader, checker, and explainer for code that already exists. In other words, the model drafts the RTL and the MCP server verifies what the compiler frontend sees.
[!NOTE]
The project is currently early-stage and published on
PyPI and the
MCP Registry for
local stdio use.
Most AI coding tools are good at searching text. HDL usually needs more than that.
In real projects, useful answers often depend on filelists, packages, includes, defines, generate blocks, and hierarchy. pyslang-mcp gives an agent a compact compiler-backed view of that structure, while keeping the server read-only and scoped to a project root you provide.
Good fits:
.f file expands toInstall the package:
pip install pyslang-mcp
Run the local stdio server:
pyslang-mcp
For contributor setup, clone the repo and install it in editable mode:
git clone https://github.com/ariklapid/pyslang-mcp.git
cd pyslang-mcp python -m venv .venv ./.venv/bin/pip install -e '.[dev]'
Run the checkout stdio server:
./.venv/bin/python -m pyslang_mcp
The installed console script works too:
./.venv/bin/pyslang-mcp
Run tests:
./.venv/bin/pytest
Use local stdio. The MCP client should launch the server on the same machine, VM, or dev container that can see your RTL checkout.
{
"mcpServers": { "pyslang-mcp": { "command": "pyslang-mcp", "args": [] } } }
For editable checkout installs, point the command at the checkout virtual environment instead:
{
"mcpServers": { "pyslang-mcp": { "command": "/absolute/path/to/pyslang-mcp/.venv/bin/python", "args": ["-m", "pyslang_mcp"] } } }
Tool calls must provide a project_root. Source paths, filelists, and include directories may be absolute or relative, but they must stay under that root.
Analyze explicit files:
{
"project_root": "/path/to/rtl-project", "files": ["rtl/pkg.sv", "rtl/top.sv"], "include_dirs": ["include"], "defines": { "WIDTH": "32" }, "top_modules": ["top"] }
Analyze a filelist:
{
"project_root": "/path/to/rtl-project", "filelist": "compile/project.f" }
Find a symbol:
{
"project_root": "/path/to/rtl-project", "filelist": "compile/project.f", "query": "payload", "match_mode": "exact", "include_references": true }
| Need | Tool |
|---|---|
| Load explicit files | pyslang_parse_files |
Load a .f filelist | pyslang_parse_filelist |
| Get parse and semantic diagnostics | pyslang_get_diagnostics |
| List modules, interfaces, and packages | pyslang_list_design_units |
| Inspect one design unit | pyslang_describe_design_unit |
| Walk the elaborated instance tree | pyslang_get_hierarchy |
| Find declarations and references | pyslang_find_symbol |
| Find a local member in one design unit | pyslang_find_member |
| Find assignments involving a signal | pyslang_get_assignments |
| Trace bounded structural connectivity | pyslang_trace_connectivity |
| Dump one instance's port connections | pyslang_get_instance_connections |
| Group diagnostics by code | pyslang_summarize_diagnostics_by_code |
| Summarize syntax node shapes | pyslang_dump_syntax_tree_summary |
| Check preprocessing metadata and excerpts | pyslang_preprocess_files |
| Get a compact project overview | pyslang_get_project_summary |
Typical flow:
pyslang_parse_filelist or pyslang_parse_files.pyslang_get_diagnostics.pyslang_list_design_units to see what the compiler frontend found.pyslang_describe_design_unit, pyslang_get_hierarchy, or pyslang_find_symbol for the actual review/debug question.pyslang_summarize_diagnostics_by_code to separate repeated frontend warnings from unresolved dependency errors.pyslang_find_member to locate local names such as response__vld.pyslang_get_assignments to inspect visible continuous or procedural drivers and loads.pyslang_get_instance_connections for one instance's port binding context.pyslang_trace_connectivity for bounded structural paths through assignments and instance port bindings.Connectivity tracing is structural frontend evidence. It is not simulation, formal proof, CDC/RDC signoff, timing signoff, or a complete netlist-level driver/load database.
The current parser intentionally supports a practical subset used by many RTL flows:
-f and -F+incdir+..., -I dir, and -Idir+define+..., -D NAME, and -DNAMEUnsupported filelist tokens are reported in the tool output instead of being silently ignored.
Use this server when compiler-backed context matters:
compile/project.f with +define+DEBUG and group diagnostics by source file."top, show the instance hierarchy down to depth 4."axi_dma_top: ports, child instances, and declared names."payload_valid."legacy_widget is instantiated anywhere the elaborator sees it."For single-line questions, comments, naming searches, or partial/incomplete source sets, regular rg, editor search, or direct file reading is usually faster and clearer.
project_root are rejected.pyslang_preprocess_files is summary-oriented. It returns preprocessing metadata and source excerpts, not a guaranteed full standalone preprocessed stream.streamable-http remains experimental. The internal MaaS path wraps it with a bearer token for single-server use, but it is not a complete production hosted security boundary by itself.Remote MaaS is planned as two separate tracks, not as one generic hosted mode:
Start with the internal MaaS quickstart for a single internal server. See REMOTE_DEPLOYMENT.md for the full Plan A / Plan B split.
Docker Compose is the recommended bring-up path because it avoids Python setup issues and mounts the RTL checkout read-only. Docker is not required; the quickstart also includes a native Python path for corporate servers where containers are not available.
The repo includes generated HDL examples under examples/hdl:
easy, medium, and hardpyslang and verilator --lint-onlyRun the full corpus validator:
./.venv/bin/python scripts/validate_hdl_examples.py
Run the CI smoke subset:
./.venv/bin/python scripts/validate_hdl_examples.py --smoke-only
If your agent environment already has a broad RTL skill such as rtl-analysis, rtl-audit, or llm-based-verilog-analysis, use pyslang-verilog-context as the fine-grained compiler-evidence layer beneath that broader skill.
Recommended setup:
pyslang-mcp server in your MCP client so the agent can call the read-only pyslang_* tools.pyslang-verilog-context skill from skills/pyslang-verilog-context.For Verilog/SystemVerilog tasks, use $pyslang-verilog-context before making
claims about diagnostics, design units, ports, hierarchy, declarations, references, includes, defines, or filelist behavior. Treat its output as compiler frontend evidence only. Do not present it as simulation, synthesis, timing, CDC/RDC, formal, or full lint signoff.
The intended flow is:
user RTL request
-> broad RTL analysis/audit skill -> pyslang-verilog-context -> pyslang-mcp compiler-backed evidence -> final answer with evidence and limitations
This keeps high-level RTL review policy in the broad skill while grounding Verilog/SystemVerilog structure, diagnostics, hierarchy, symbols, includes, and filelists in pyslang.
The repo includes a pyslang-verilog-context skill eval suite under skills/pyslang-verilog-context/evals and comparison reports under reports/. The current benchmark compares three local evidence modes:
pyslang-mcp tool callspyslang-verilog-context sequencing with pyslang-mcpLatest local result from 2026-06-14:
| Benchmark | Text/no skill | MCP/no skill | Skill + MCP |
|---|---|---|---|
| 100 HDL analysis cases | 60/100 | 95/100 | 100/100 |
The benchmark mixes deterministic repo-local HDL fixtures with re
只显示了开头部分;其余内容请在仓库中阅读