open_schematic
Serve an interactive browser schematic of the current design. Returns a local URL to open on the MCP server's machine; requires the schematic extra. Uses the loaded design and supports anonymous #id instances.
path
io.github.keplertech由 GitHub 账号 keplertech 发布v0.1.25更新于 Nov 13, 2026
Let AI agents explore SystemVerilog, Verilog and VHDL designs: connectivity, hierarchy, source.
发布方自己的服务:Scope (AEC) - Preview
让 AI 助手加载 SystemVerilog、Verilog 或 VHDL 设计,并查询层次、连接关系和源码,无需粘贴 RTL 的 MCP 服务器。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
[PyPI version] [Python versions] [CI] [License: Apache 2.0] [Glama quality] [Install in VS Code] [Install in Cursor]
Let your AI assistant explore SystemVerilog and VHDL designs — without pasting source code into the chat.
naja-scope is an MCP server that gives AI agents (Claude, and any MCP-compatible assistant) a precise, structured view of your elaborated SystemVerilog or VHDL design. Instead of dumping thousands of lines of RTL into the model's context, the agent asks targeted questions — what drives this signal? what's inside this module? where does this net come from? — and gets back small, exact answers with file-and-line references.
Built on the najaeda netlist engine.
On a 17-question CVA6 benchmark, the same Claude Code agent scored 17/17 with naja-scope versus 10/17 with grep/read source tools — in 77 turns instead of 123, processing about 5× less input. How it was measured ↓
No separate install step: uvx fetches naja-scope
and najaeda from PyPI on first launch. The buttons above do the same for VS Code
and Cursor. Prefer pip? See Install.
Large designs don't fit in a chat window. Pasting RTL is slow, expensive, and the model still can't reliably trace connectivity across hierarchy. naja-scope turns your design into something an agent can navigate:
file:line ranges, so the
agent can quote the exact RTL that matters.Requires najaeda 0.7.35 or newer. See the 0.1.25 release notes for test results and snapshot migration requirements.
Works on RTL and gate-level netlists alike: load elaborated SystemVerilog or VHDL (beta), or load a post-synthesis structural Verilog netlist together with its Liberty standard-cell library and navigate the gates the same way (see Gate-level designs).
All responses are token-bounded: lists paginate, large results truncate with clear markers. Your context stays small; your answers stay accurate.
naja-scope helps most when the answer exists in the elaborated design rather
than in any single source file. In an initial 17-question run on the
cv32a6_imac_sv32 configuration of
CVA6, the same Claude Code agent was
tested with naja-scope and with source-search tools alone.
The difference is clearest on structural questions that source search cannot answer directly:
Source search remains the right tool for local textual questions. naja-scope adds the elaborated hierarchy, connectivity, lowered primitives, and generated or uniquified structures that are otherwise difficult to reconstruct.
See the benchmark methodology and multi-model runner and historical result record for configuration, scoring, token accounting, and reproducibility details.
Or add it to any MCP client's config:
(With a pip install, use "command": "naja-scope-mcp" and no args.)
Then just ask your assistant to load a design and start exploring:
"Load my UART design from
rtl/uart.svwith topuart_top, then show me everything that drivestx_o."
The agent loads the design once and answers follow-up questions instantly — no re-reading source, no giant pastes.
ChatGPT connects to MCP servers over an HTTP endpoint (custom connectors / Developer mode), so run naja-scope as an HTTP server instead of stdio:
This serves MCP at http://<host>:8000/mcp. Because ChatGPT reaches the server
over the network, expose that URL where ChatGPT can see it — e.g. a public
tunnel for a local run:
Then in ChatGPT, open Settings → Connectors (enable Developer mode if
needed), add a custom connector, and paste the server URL
(https://<your-host>/mcp). Once connected, ask it to load a design and explore
exactly as above. (ChatGPT's connector UI evolves; the constant is: it needs an
HTTPS MCP URL, which --transport streamable-http provides.)
⚠️ The HTTP server has no built-in auth — only expose it over a trusted tunnel, and prefer short-lived tunnels for local experiments.
Already synthesized? Load the structural Verilog netlist together with the Liberty library that defines its standard cells, and navigate the gates the same way as RTL:
"Load the Liberty library
pdk/stdcells.lib, then the gate netlistbuild/top.v, and tell me what cellstopis built from and what drivesdata_out."
Hierarchy, per-cell counts (get_module_card), drivers/loads, and logic cones
all work on the netlist; cones stop at the sequential cells. get_source
shows a cell's or net's line in the netlist. For Yosys output, load with
yosys_source_attributes=True: the (* src = ... *) attributes become
origins that get_source(path, origin=0) reads back in the RTL. A runnable
example lives in examples/ (stdcells.lib + counter2.v +
gate_level.py).
get_module_card reports direct-child register bits and inferred RAM/ROM
summaries: width, depth, capacity in bits, read/write port counts, and
initialization status. Native memory interfaces also report address_bits
and reset_mode (none, async_low, async_high, sync_low, or
sync_high). It lists up to 12 memories, with memories_truncated
when more exist; initialized memories include a 64-character init_preview
and init_truncated. Address zero occupies the least-significant word.
get_stats aggregates these counts below the selected instance using
flat_register_bits, flat_memory_instances, flat_rom_instances,
flat_ram_instances, and flat_memory_bits. Register bits count modeled
flip-flop/latch states, including multibit Liberty banks; RAM capacity is
separate. Sequential cells without a state model are counted in
register_bits_unknown_instances (flat_ in statistics), so known bit
counts remain explicit lower bounds when that count is nonzero. Memories
are recognized from native naja primitives; opaque memory macros are not
assigned an inferred capacity.
MCP tools send compact JSON text alongside the same structured result.
get_stats() returns aggregate counts and total_models with an empty
models list. Request details with get_stats(limit=5), or pass the
summary's next_cursor to start paging models (25 per page when only a cursor
is supplied; maximum 200). Totals stay the same on every page.
find, get_drivers, and get_loads default to 20 entries (maximum 200).
Use find's next_cursor to continue; for endpoints, check truncated and
raise limit or query an individual bus bit. Explicit large limits or deep
hierarchy queries can still exceed a client's inline output cap.
These defaults change benchmark token counts; record the naja-scope version when comparing runs across this change.
get_content_hash() returns a versioned SHA-256 of the top model and its
descendants; pass module="uart_tx" to hash one elaborated model. Use it to
compare loaded content before and after snapshot reload or netlist edits.
The response includes format_version and naja_git_hash; compare hashes only
within the same format version and track the engine separately when primitive
semantics matter. Names and IDs participate, while source metadata and
primitive definitions are excluded. This is not functional equivalence.
Hashing is explicit because large hierarchies can take time.
For mixed RTL where only some modules declare a time unit, pass
default_timescale="1ns/1ps" to load_systemverilog. It supplies a fallback
for modules without a time unit and preserves explicit declarations. The
setting survives snapshots and load_intent re-elaboration.
VHDL loading is available in beta. Call
load_vhdl(file=["pkg.vhd", "child.vhd", "top.vhd"], top="my_entity") to
explore its elaborated hierarchy and connectivity; the files may be listed in
any order. A single path per call also works (load packages first);
package-only files may return top: null until the top file is loaded. The frontend supports a restricted two-state RTL subset,
and supported constructs may change. get_source reads VHDL entity, port,
signal, instance and process origins, including after snapshot reloads.
Designs that name their library, as in library neorv32;, need
library="neorv32" on the load.
Pass intent=True to load_vhdl, or call load_intent afterwards, to query
get_intent for enum literals and their encodings, including FSM states held
in record fields, record fields, generics, and symbolic ranges such as
WIDTH-1 downto 0. Package members use pkg::NAME, and an instance's parameter
list leaves them out. Query the signal rather than its inferred flop, and note
that record fields report widths, not bit positions. Validated on the
NEORV32 SoC.
find uses case-sensitive globs: use *state*. Regex-style patterns such as
.*state.* return a corrective hint without scanning the hierarchy. When a
search misses a known parameter, a warm intent session points to get_intent.
Use get_intent("top.inst.PARAM") for one parameter, get_intent("pkg::NAME")
for a package member, or get_intent("pkg", want="parameters") to list package
parameters. SystemVerilog package listing discovers names from available
source files and validates them through the live engine; macro-generated
names may require an explicit pkg::NAME query.
Once a design is loaded, your assistant can:
0 / 1 / X / Z values.A runnable end-to-end walkthrough lives in examples/, including
versions that run against CVA6 (a
production RISC-V core, cloned on demand — see
examples/cva6_demo.sh) and
CORE-V-MCU (a full multi-vendor
RISC-V SoC — see examples/core_v_mcu_demo.sh).
naja-scope also has a query_python tool that runs Python directly against the
loaded design, for queries the typed tools above cannot express. It is not
registered unless you opt in:
It is unsandboxed eval/exec inside the server process — read-only by
convention, not enforced — so anything that can reach the server can run
arbitrary Python as the server's user. That matters most under --transport streamable-http, where the server listens on a socket. Leave it off unless you
need it and trust every client that can reach the endpoint.
najaeda runs (Linux, macOS, Windows)The full test suite runs against a plain pip install of najaeda — no native
build required. The CVA6 cross-hierarchy cone regression
(tests/test_zzz_cone_cva6.py) is slow and skips automatically unless a CVA6
snapshot is present.
CI tests every supported Python version on Linux x86_64, plus native platform
lanes for Linux x86_64/aarch64, macOS x86_64/arm64, and Windows x86_64. The
macOS x86_64 lane builds najaeda from its source distribution because PyPI
does not currently provide an Intel macOS wheel.
Apache-2.0. See LICENSE.
Requires naja-schematic 0.2.0 or later (the release containing the embeddable viewer API):
Restart the MCP server after installation. Load a design as usual, then use:
open_schematic(path="top.u_cpu"): returns a local browser URL and focuses
the instance. Omit path for the top. Anonymous #id instances are supported.annotate_schematic(items=[{"path": "top.u_cpu", "message": "Check reset", "severity": "warning"}]): replaces the overlay. Use kind="term" with a
pin/port path to annotate that terminal; annotations apply to the whole port,
not individual bus bits. Pass items=[] to clear. At most 200 annotations,
each with at most 2000 message characters.get_schematic_selection(): returns the last clicked instance as a regular
naja-scope path, usable with source, hierarchy and module-card queries.The viewer shares the existing raw naja universe; it does not elaborate again. The server binds to loopback and returns a token-bearing URL. Open that URL on the machine running the MCP server; it is not a remote or embedded MCP UI. Treat the URL as access to the loaded design. Design loads/resets refresh open viewers and clear selection, focus and annotations. The browser server stops with naja-scope. Existing tools remain usable without the schematic extra.
来源:README.md,提交 1e753d4
Serve an interactive browser schematic of the current design. Returns a local URL to open on the MCP server's machine; requires the schematic extra. Uses the loaded design and supports anonymous #id instances.
pathReplace schematic annotations on instances or pins/ports. Returns the local viewer URL and count. Annotations clear when the design changes.
items必填Return the last browser-selected instance as a naja-scope path, or null. Use the returned path with module-card, source, or hierarchy tools.
无需输入参数。
Inspect the current in-memory session without changing it. Use this before design queries to confirm a design is loaded and whether get_intent is live (`intent_loaded`) or can be reloaded (`intent_loadable`). Returns `loaded` and, when available, the top summary and loaded source files.
无需输入参数。
Elaborate local SystemVerilog sources into the active design session. Use this for SystemVerilog RTL; use load_vhdl for VHDL (beta), or load_verilog with load_liberty/load_primitives for a structural gate netlist. Requires at least `files` or `flist` and changes the in-memory design session. Anonymous lowered objects are addressable by #<id>. defines are preprocessor -D entries ("NAME" or "NAME=VALUE"). allow_unknown_designs=True blackboxes any module still undefined instead of failing (e.g. undelivered hard macros in a partly-open-source design). blackbox_multi_writer_memories does the same for modules whose multi-writer memories naja cannot infer. intent=True retains naja's in-engine SNL↔slang link for get_intent.
topfilesflistintentdefineskeep_assignsdefault_timescaleallow_unknown_designsblackbox_multi_writer_memoriesLoad local gate-level or structural Verilog into the active session. First call load_liberty for Liberty cells or load_primitives for built-ins; use load_systemverilog instead for RTL elaboration. Unknown modules fail unless `allow_unknown_designs` is true. get_source shows the netlist declaration of an object; for Yosys output, yosys_source_attributes=True also records its RTL `origins` (get_source origin=N). get_intent cannot answer for netlists.
files必填keep_assignsallow_unknown_designsyosys_source_attributesLoad VHDL into the active session (beta, restricted two-state RTL subset). Prefer passing every file of the design as one list (any order; units are resolved across files). Single-file calls still work: load package files first, then the top. Package-only files or entities awaiting generics may return top=null. Use hierarchy, cards and connectivity queries on the elaborated design. Use get_source for entity, port, signal, instance and process source references. intent=True enables get_intent for enum literals, record fields, generics and symbolic ranges. Unsupported constructs may fail during beta development. Returns the top summary when elaborated, language and beta status.
topfile必填intentlibraryRegister standard-cell models from local Liberty `.lib` files in the active session. Use this before load_verilog when a gate netlist instantiates those cells; use load_primitives instead for the built-in Xilinx or Yosys model sets. This changes session state and returns `{"ok": true}`.
files必填Register primitive models in the active session from either a built-in `name` (`xilinx` or `yosys`) or one local Python `file` defining `load(db)`. Provide one source; `name` takes precedence when both are set. A custom file executes unsandboxed Python in the server process, so only use trusted code. Use load_liberty instead for standard-cell `.lib` files. Returns `{"ok": true}`.
filenameWrite the active design and source metadata to a local directory for fast reload. Use after loading a design; load_snapshot reads the result. Existing snapshot files in the directory may be overwritten. Snapshots are tied to their producing najaeda version, and returns include the saved path.
directory必填Load a compatible save_snapshot directory into the active session in seconds instead of re-elaborating. Use load_systemverilog/load_verilog/load_vhdl when no compatible snapshot exists. The directory must match this najaeda version. intent=True also re-elaborates the warm intent layer from the flist saved in the snapshot (for get_intent).
intentdirectory必填Discard the active design and all in-memory session state. Use before starting an unrelated design; do not use merely to inspect status. This is destructive to the current session but does not delete source or snapshots. Repeating it is safe and returns `{"ok": true}`.
无需输入参数。
Resolve a known hierarchical object path to instance, term, or net descriptors with source references. The final segment accepts a glob and bit selects (for example `top.u_uart.tx_o[0]`). Use find when the path is unknown; use get_hierarchy to browse children. This read-only query requires a loaded design and returns did-you-mean suggestions on failure.
kindpath必填limitSearch case-sensitive object names across the loaded design with a glob. Use this when an exact path is unknown; use resolve once a path is known or get_hierarchy to browse structure. A dot in `pattern` switches matching to full hierarchical paths. Use '*state*', not the regex '.*state.*'. Parameters and package members are source intent: use get_intent. Returns typed descriptors in `matches` plus `count`, `has_more`, and an opaque `next_cursor` for pagination.
kindlimitcursorpattern必填Browse the instance tree below `path` (or the top instance). Use this for structural children; use find for design-wide name search or get_stats for aggregate model counts. Lists only non-assign children (real submodules + leaf primitives); `assign` glue is reported as `assign_count`, not enumerated. Each child carries a `leaf` flag (submodule vs leaf primitive). depth<=5; the non-assign set is paginated at the root via limit/cursor (next_cursor/has_more), deeper levels via children_truncated.
pathdepthlimitcursorList the immediate upstream endpoints that drive a term or net across hierarchy. Use this for direct sources; use get_loads for downstream readers or trace_cone for the transitive combinational fanin. Returns leaf drivers (FF/gate instances with pin, model, source ref) and top-level ports. Lowered assign glue is traversed rather than reported as an endpoint. Literal assign drivers include `constant` (0, 1, X, or Z); bus entries include the driven `bit`. Capped at limit (default 20, max 200) with a `truncated` flag; no cursor — raise limit to see more.
path必填limitList the immediate downstream endpoints that consume a term or net across hierarchy. Use this for direct readers; use get_drivers for upstream sources or trace_cone for the transitive combinational fanout. Returns leaf readers (instances with pin, model, source ref) and top-level ports. Lowered assign glue is traversed rather than reported as an endpoint. Capped at limit (default 20, max 200) with a `truncated` flag; no cursor — raise limit to see more.
path必填limitTrace the combinational fanin/fanout cone of a term/net via naja's LogicCone. Use this for transitive logic reachability; use get_drivers or get_loads for only immediate endpoints. direction: fanin|fanout. The cone crosses hierarchy and combinatorial arcs and always stops at flops, top ports, and opaque black-box cells. Returns node_count, counts_by_kind, counts_by_model, and a `frontier` of {flops, ports, blackboxes} with exact counts and lists capped at max_frontier (<=200) with a truncation marker. `cross_hierarchy` groups the flop frontier by top-level submodule and, under outside_root_subtree, names the frontier registers that live OUTSIDE the cone root's own subtree (the cross-hierarchy answer) — read it directly.
path必填direction必填max_frontierRead the bounded source excerpt that produced an object (for example, an SV FF instance maps to its `always_ff` block; a netlist cell maps to its instantiation line). Use when exact source text is needed; use get_intent for typedef/enum/parameter semantics. When the response lists `origins` (e.g. Yosys src attributes), call again with origin=N to read that RTL. Returns object, file, start/end range, text, and truncation status without modifying files; missing paths and source ranges return structured errors.
path必填origincontext_linesDeterministic module summary: ports, instance counts by model, sequential cell and register-bit counts, bounded RAM/ROM details (width, depth, ports, initialization preview), and source ref. Clock/reset candidates are name-based guesses; verify before relying on them. Use this for one model's interface; use get_stats for counts below an instance.
module必填Versioned SHA-256 of a model and its descendants, computed on demand. Compare elaborated content across snapshots using the same format_version. Names and IDs participate; source metadata and primitive definitions are excluded. Track naja_git_hash separately for engine changes. This is not functional equivalence. Large hierarchies can take time to hash.
moduleSummarize instance population by model below `path` or the top design. Use this for aggregate leaf/sequential/model counts, register bits, and RAM/ROM counts and capacity; use get_hierarchy for actual child instances or get_module_card for one model's ports. This read-only query requires a loaded design. Returns `root_model`, flat totals, `total_models`, and an empty `models` list by default. Pass limit or the returned next_cursor to retrieve model details with pagination. Register bits count modeled flip-flop/latch states, excluding memories; unknown sequential bit counts are reported separately.
pathlimitcursorRetrieve source-level intent that netlist lowering erases (warm-only). Use when the answer is in the SystemVerilog or VHDL *type/declaration*, not the flattened gates: enum/typedef state names + encodings (incl. PACKAGE typedefs whose members live in another file), and symbolic PARAMETER or generic expressions (the formula behind a baked-in width). ref: a hierarchical path ('cva6.csr_regfile_i.priv_lvl_q'), a package member ('riscv::PLEN'), a parameter path ('top.inst.PARAM'), an instance path for its parameters, or a bare package name to list its parameters. want: auto | type | fsm_states | parameters. If the intent layer is not loaded, returns a note and you should fall back to get_source.
ref必填wantMake the warm source-intent layer available for get_intent. Use after a SystemVerilog or VHDL load that did not retain intent; do not call for gate-level Verilog, and prefer `intent=True` on the initial load. This is a no-op when the link is already live; otherwise it replaces the active universe by re-elaborating from explicit or captured `flist`/`files`. Returns `intent_loaded`; missing inputs produce a structured error.
topfilesflist已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

bid.scope官方发布者
Scope AEC 分包商采购层的预览版 MCP 服务器,提供状态、服务类别、候补名单登记和项目改期功能。

bid.scope官方发布者
让助手把法律服务事务派发给有资质的专业人士(送达员、法庭记录员、记录调取、专家证人等),并跟踪相关事务。

bid.scope官方发布者
Scope 理赔侧专业采购的预览版 MCP 服务器:查看路线图状态、列出计划类别、加入等候名单,并改期已授予的项目。

由 GitHub 账号 FranprzDev 发布
把客户零散的需求整理成带版本的范围文档、工时估算与报价,可在 ChatGPT、Claude、Cursor 等 MCP 客户端中驱动。

由 GitHub 账号 ert1981 发布
NFT系列风险与质量分析,以及新系列发现(OpenSea + 链上)。AI 翻译
claude mcp add naja-scope -- uvx naja-scopepip install naja-scope # pulls najaeda and the MCP runtime from PyPInaja-scope-mcp # stdio MCP serverclaude mcp add naja-scope -- uvx naja-scope # with uv, no install stepclaude mcp add naja-scope -- naja-scope-mcp # after pip install naja-scope{ "mcpServers": { "naja-scope": { "command": "uvx", "args": ["naja-scope"] } }}naja-scope-mcp --transport streamable-http --host 127.0.0.1 --port 8000# example: a tunnel to your local server (ngrok, cloudflared, …)ngrok http 8000 # -> https://<something>.ngrok.app → add /mcpNAJA_SCOPE_ENABLE_PYTHON=1 naja-scope-mcp# from a checkoutpython3 -m venv .venv.venv/bin/pip install -e ..venv/bin/python -m pytest -qpip install "naja-scope[schematic]"