verilog-mcp-server: Instructions file for Codex

AGENTS.md

verilog-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from airry12/verilog-mcp-server. It costs 3,358 tokens per session, scanned A, original, MIT.

A set of project instructions for a server that analyzes Verilog and SystemVerilog, languages used to describe digital hardware circuits. It explains installation, commands, testing, and how to run the server through MCP, a tool-connection protocol for AI clients.

In plain words
What is it for?
Use it to install the server, build an index of hardware source files, inspect modules and signals, analyze hierarchy or clock domains, run tests, and build a standalone executable.
Why use it?
It gives agents the repository-specific commands and setup needed to build, run, test, and package the hardware-analysis server. It also documents the server's code-analysis functions and required dependencies.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is airry12/verilog-mcp-server's own configuration. It tells Codex and OpenCode how to work on verilog-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything verilog-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to airry12/verilog-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/airry12/verilog-mcp-server/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/airry12/verilog-mcp-server

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for verilog-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/airry12/verilog-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/airry12/verilog-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/airry12/verilog-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/airry12/verilog-mcp-server/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for verilog-mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/airry12/verilog-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/airry12/verilog-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,358 This file is loaded in full into every session.
When invoked 3,358 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03358 $0.03358
Opus 5.5 $0.01343 $0.01343
Sonnet 5.5 $0.00672 $0.00672
Haiku 4.5 $0.00336 $0.00336

Measured 6d ago against content hash 3b908b0740b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

verilog-mcp-server AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 320 lines

How it starts

The opening of the file, as written. The whole thing — 320 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Agent guidance for the Verilog MCP Server project.

Project Overview

Verilog/SystemVerilog RTL semantic analysis MCP server. Uses tree-sitter for syntax-level parsing of HDL source files and pyslang (slang compiler frontend) for semantic-level elaboration. Exposes tools via MCP protocol for module search, signal tracing, hierarchy tree construction, FSM detection, clock domain analysis, and visualization.

Build & Development Commands

# Install in editable mode
pip install -e .

# Run the MCP server (stdio transport, called by MCP clients)
verilog-mcp-server

# Start with index building
verilog-mcp-server --build -p /path/to/rtl/project

# Specify filelist + top module
verilog-mcp-server --build -f project.f --top soc

# Force full rebuild
verilog-mcp-server --rebuild -p /path/to/rtl/project

# Run all tests
pytest tests/ -v

# Run specific test file
pytest tests/test_module_extractor.py -v

# Build standalone executable (CentOS 8.4)
bash scripts/build-centos8.sh

CentOS 8 构建详细指南

前提条件

  1. 操作系统: CentOS 8.4 (glibc 2.28)
  2. Python 环境: miniconda3 Python 3.10+ (推荐 3.12)
  3. 依赖包: tree-sitter-language-pack, pyslang, mcp, pyyaml, pyinstaller
  4. yosys (可选): 如果需要 yosys 功能,确保 yosys 在 PATH 中

构建步骤

1. 环境准备
# 检查 Python 版本
python3 --version

# 检查 pip
python3 -m pip --version

# 如果使用 miniconda3,确保 Python 环境正常
conda install python=3.12 --force-reinstall
2. 运行构建脚本
# 进入项目目录
cd /wa/project/verilog_mcp_server

# 运行构建脚本
bash scripts/build-centos8.sh

# 如果需要 yosys,确保在 PATH 中
export PATH=$PATH:/path/to/yosys/bin
bash scripts/build-centos8.sh

# 跳过 yosys 构建
YOSYS_ENABLED=0 bash scripts/build-centos8.sh
3. 构建产物

构建完成后,产物位于:

dist/verilog-mcp-server-linux-x86_64.tar.gz

解压后得到单个可执行文件:

tar -xzf dist/verilog-mcp-server-linux-x86_64.tar.gz
./verilog-mcp-server --version

常见问题解决

1. Python 环境问题

问题: ImportError: undefined symbol: XML_SetReparseDeferralEnabled 解决:

# 重新安装 Python
conda install python=3.12 --force-reinstall

# 或者创建新的 conda 环境
conda create -n build python=3.10
conda activate build

Read the full file on GitHub · 320 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 320 lines · 3,358 tokens per session scan A 3b908b0740b9

Subscribe to this mod's changes

verilog-mcp-server AGENTS.md is an instructions file published in the GitHub repository airry12/verilog-mcp-server (4 stars, last pushed 7d ago), licensed MIT. It adds 3,358 tokens to every session, about $0.0134 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

verilog-mcp-server AGENTS.md compared with instructions from other repositories

verilog-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
verilog-mcp-server AGENTS.mdairry12/verilog-mcp-serverInstructions file47d agoMITA3,358Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot