
ariklapid/pyslang-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
pyslang-mcp は、Compr-backed Verilog および SystemVerilog 解析用のモデルコンテキストプロトコルサーバーです.
概要
pyslang-mcp は、Verilog および SystemVerilog プロジェクト用の、AI エージェントコンパイラバック、読み取り専用コンテクストを提供するローカルモデルコンテキストプロトコルサーバーです。 pyslang をラップするので、MCP クライアントは、プレーンテキストの代わりに、パースおよび精巧な HDL に対して質問をすることができます。 - このファイルリストにあるモジュール、インターフェイス、パッケージは? - コンパイラフロントエンドレポートの診断は? - このトップの下のインスタンス階層は何ですか? - このシンボルが宣言されるか、参照されるか - パス、定義、およびネストされた .f ファイルが期待通り解決しましたか? これは、シミュレータ、シンセサイザー、波形ビューア、焼結交換、またはRTLリファクタリングツールではありません。 ローカルHDLチェックアウト用の小規模なセマンティック解析サービスです。 読まれた境界は意図的である。 サーバのサイド効果を自由に保ち、IP保護されたワークスペースのブラスト半径を削減し、ローカルおよびCI環境で安全に使用できます。 pyslang-mcp の読み込み専用を維持することにしました.
概要(AI 翻訳)
[[pyslang-mcp]は、AIエージェントにサービスを提供するローカルモデルコンテキストプロトコルサーバーです。
Verilog と SystemVerilog プロジェクトのコンパイラ・バック、読み取り専用コンテキスト。
pyslang をラップするので、MCP クライアントはリクエストできます
明白なテキストの代りにパースされ、elaborated HDL に対する質問:
- このファイルリストにあるモジュール、インターフェイス、パッケージは?
- コンパイラフロントエンドレポートの診断は?
- このトップの下のインスタンス階層は何ですか?
- このシンボルが宣言されるか、参照されるか
- パス、定義、ネストされた [
.f] ファイルが期待どおりに解決しましたか?
これは、シミュレータ、シンセサイザー、波形ビューア、焼結交換、または RTLリファクタリングツール。 それはローカルHDLのための小さい皮の分析サービスです チェックアウト
読まれた境界は意図的である。 サーバのサイドエフェクトを自由に保持し、 IP 保護されたワークスペースの防爆半径を減らし、使用するためにそれをより安全にします ローカルおよびCI環境で。
pyslang-mcpを読み取り専用にしておくことにしました。 LLMは実際のRTLを扱います
コーディング, [pyslang-mcp はコンパイル/elab-backed リーダーとして機能します, チェッカー,
既に存在するコードの解説 つまり、モデルドラフト
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
pyslang-mcp
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:
- What modules, interfaces, and packages are in this filelist?
- What diagnostics does the compiler frontend report?
- What is the instance hierarchy below this top?
- Where is this symbol declared or referenced?
- Did my include paths, defines, and nested
.ffiles 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.
Why ASIC And EDA Engineers Might Care
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:
- triaging parse and semantic diagnostics before asking an agent to reason about RTL
- checking what a
.ffile expands to - listing design units in a block or small IP
- finding a declaration without chasing comments and stale grep hits
- getting hierarchy and port-connection context for review/debug prompts
- giving workflow agents HDL context without handing them an EDA runtime
Quickstart
Install 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:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"pyslang-mcp": {
"command": "pyslang-mcp",
"args": []
}
}
}