ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

SpecMgr

โดย dfchรุ่น 0.38.0i★ –iรันบนเครื่อง
ชื่อใน registryio.github.dfch/biz-dfch-specmgr

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

An artifact manager for system specifications.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: SPECMGR_MCP_TRANSPORT, SPECMGR_MCP_HOST, SPECMGR_MCP_PORT, SPECMGR_ADR_DIR, SPECMGR_DOCS_DIR, SPECMGR_FEAT_DIR, SPECMGR_SIMILARITY_DISABLED, SPECMGR_FEAT_WARMUP_DISABLED, SPECMGR_PLANTUML_JAR, SPECMGR_PLANTUML_BIN, SPECMGR_PLANTUML_URL, SPECMGR_DIAGRAM_MAX_TITLE, SPECMGR_TESTS_NO_DOTENV, FASTEMBED_CACHE_PATH

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "biz-dfch-specmgr": {
      "command": "uvx",
      "args": [
        "biz-dfch-specmgr",
        "-m",
        "biz.dfch.specmgr",
        "mcp"
      ],
      "env": {
        "SPECMGR_MCP_TRANSPORT": "ใส่ค่าของคุณ",
        "SPECMGR_MCP_HOST": "ใส่ค่าของคุณ",
        "SPECMGR_MCP_PORT": "ใส่ค่าของคุณ",
        "SPECMGR_ADR_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_DOCS_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_FEAT_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_SIMILARITY_DISABLED": "ใส่ค่าของคุณ",
        "SPECMGR_FEAT_WARMUP_DISABLED": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_JAR": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_BIN": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_URL": "ใส่ค่าของคุณ",
        "SPECMGR_DIAGRAM_MAX_TITLE": "ใส่ค่าของคุณ",
        "SPECMGR_TESTS_NO_DOTENV": "ใส่ค่าของคุณ",
        "FASTEMBED_CACHE_PATH": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add biz-dfch-specmgr --env SPECMGR_MCP_TRANSPORT='ใส่ค่าของคุณ' --env SPECMGR_MCP_HOST='ใส่ค่าของคุณ' --env SPECMGR_MCP_PORT='ใส่ค่าของคุณ' --env SPECMGR_ADR_DIR='ใส่ค่าของคุณ' --env SPECMGR_DOCS_DIR='ใส่ค่าของคุณ' --env SPECMGR_FEAT_DIR='ใส่ค่าของคุณ' --env SPECMGR_SIMILARITY_DISABLED='ใส่ค่าของคุณ' --env SPECMGR_FEAT_WARMUP_DISABLED='ใส่ค่าของคุณ' --env SPECMGR_PLANTUML_JAR='ใส่ค่าของคุณ' --env SPECMGR_PLANTUML_BIN='ใส่ค่าของคุณ' --env SPECMGR_PLANTUML_URL='ใส่ค่าของคุณ' --env SPECMGR_DIAGRAM_MAX_TITLE='ใส่ค่าของคุณ' --env SPECMGR_TESTS_NO_DOTENV='ใส่ค่าของคุณ' --env FASTEMBED_CACHE_PATH='ใส่ค่าของคุณ' -- uvx biz-dfch-specmgr -m biz.dfch.specmgr mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "biz-dfch-specmgr": {
      "command": "uvx",
      "args": [
        "biz-dfch-specmgr",
        "-m",
        "biz.dfch.specmgr",
        "mcp"
      ],
      "env": {
        "SPECMGR_MCP_TRANSPORT": "ใส่ค่าของคุณ",
        "SPECMGR_MCP_HOST": "ใส่ค่าของคุณ",
        "SPECMGR_MCP_PORT": "ใส่ค่าของคุณ",
        "SPECMGR_ADR_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_DOCS_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_FEAT_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_SIMILARITY_DISABLED": "ใส่ค่าของคุณ",
        "SPECMGR_FEAT_WARMUP_DISABLED": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_JAR": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_BIN": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_URL": "ใส่ค่าของคุณ",
        "SPECMGR_DIAGRAM_MAX_TITLE": "ใส่ค่าของคุณ",
        "SPECMGR_TESTS_NO_DOTENV": "ใส่ค่าของคุณ",
        "FASTEMBED_CACHE_PATH": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "biz-dfch-specmgr": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "biz-dfch-specmgr",
        "-m",
        "biz.dfch.specmgr",
        "mcp"
      ],
      "env": {
        "SPECMGR_MCP_TRANSPORT": "ใส่ค่าของคุณ",
        "SPECMGR_MCP_HOST": "ใส่ค่าของคุณ",
        "SPECMGR_MCP_PORT": "ใส่ค่าของคุณ",
        "SPECMGR_ADR_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_DOCS_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_FEAT_DIR": "ใส่ค่าของคุณ",
        "SPECMGR_SIMILARITY_DISABLED": "ใส่ค่าของคุณ",
        "SPECMGR_FEAT_WARMUP_DISABLED": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_JAR": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_BIN": "ใส่ค่าของคุณ",
        "SPECMGR_PLANTUML_URL": "ใส่ค่าของคุณ",
        "SPECMGR_DIAGRAM_MAX_TITLE": "ใส่ค่าของคุณ",
        "SPECMGR_TESTS_NO_DOTENV": "ใส่ค่าของคุณ",
        "FASTEMBED_CACHE_PATH": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • SPECMGR_MCP_TRANSPORT env
    Transport mode for the MCP server.
  • SPECMGR_MCP_HOST env
    Bind address, SSE/streamable-http mode only.
  • SPECMGR_MCP_PORT env
    TCP port, SSE/streamable-http mode only.
  • SPECMGR_ADR_DIR env
    Base directory scanned for Architecture Decision Record (.md) files.
  • SPECMGR_DOCS_DIR env
    Shared base directory root for the document-type domains that do not have their own dedicated directory environment variable (req, uc, tsk, qa, prb, gol, rsk, dec, sop, vcr, sysrs, txt). Each domain'…
  • SPECMGR_FEAT_DIR env
    Base directory scanned for Feature folders ( / /README.md).
  • SPECMGR_SIMILARITY_DISABLED env
    Presence-based opt-out for the semantic-similarity search feature (the find_related and find_similar_text tools): set to any value to disable the feature, so that every call returns a structured unav…
  • SPECMGR_FEAT_WARMUP_DISABLED env
    Presence-based opt-out for the feat domain's two background cache-warming phases (frontmatter and full-parse) of the unified server-startup warmup thread: set to any value to skip both phases; when s…
  • SPECMGR_PLANTUML_JAR env
    Path to a plantuml.jar, one of exactly three PlantUML validation-source selectors (the first one set, in JAR then BIN then URL order, is the only source used; no fall-through, no PATH discovery, no p…
  • SPECMGR_PLANTUML_BIN env
    Path to an executable speaking the PlantUML CLI contract, one of exactly three PlantUML validation-source selectors (the first one set, in JAR then BIN then URL order, is the only source used; no fal…
  • SPECMGR_PLANTUML_URL env
    PlantUML server base URL, one of exactly three PlantUML validation-source selectors (the first one set, in JAR then BIN then URL order, is the only source used; no fall-through, no PATH discovery, no…
  • SPECMGR_DIAGRAM_MAX_TITLE env
    Maximum length (in characters) of a resolved node's title label in the reference-graph diagrams (the get_reference_diagram / get_reference_diagram_all MCP tools and the specmgr diagram refs CLI): lab…
  • SPECMGR_TESTS_NO_DOTENV env
    Presence-based test/CI sentinel: set to any value to skip the CLI's module-level default .env load entirely, so the process runs under the CI (source-less) condition whatever the local (gitignored) .…
  • FASTEMBED_CACHE_PATH env
    Cache directory for the semantic-similarity feature's embedding model (the third-party fastembed backend's own variable, not a SPECMGR_* one): set to a directory to cache the model there; an unset or…

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub dfch ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 18444 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 84% ของอีก 18444 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 18444 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

SpecMgr ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.38.0) เข้า registry 7 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Egovframe Scaffold MCP

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

โดย formulahendryเริ่มต้น↓ 66/สัปดาห์★ 440อัปเดต 14 เดือนที่ผ่านมา

รันบนเครื่อง

Remote Desktop Commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

โดย desktop-commanderกำลังโต★ 211อัปเดต 3 วันที่ผ่านมา

รันบนคลาวด์✓ desktopcommander.app

Egovframe Scaffold MCP

eGovFrame (전자정부 표준프레임워크) projects: templates, components, CRUD, build, 5.x migration, dependencies

โดย EricSeokgonเริ่มต้น↓ 1.4K/สัปดาห์อัปเดต วันนี้

รันบนเครื่อง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

biz.dfch.SpecMgr

An artifact manager for system specifications.

This project is an MCP server that you can use to manage different specification artifacts — see Concepts for the full list of artifact types and how they relate, and MCP Server / docs/MCP.md for the tool/resource/prompt reference.

The MCP server (and the management CLI) are optional. You install them as "extras" (see Installation).

Table of Contents

  • Concepts
  • Installation
  • CLI Usage
  • UC → PlantUML Diagrams
  • Reference Graph Diagrams
  • MCP Server
  • Installing the specmgr Harness Files
  • Usage
  • Referencing Artifacts
  • Multi-Language Artifacts
  • Development
  • Testing
  • Make a Release
  • License

Concepts

Every artifact is a plain markdown file with a YAML frontmatter block on disk — git-friendly, diffable, and readable/editable by hand. The filesystem is always the source of truth; the MCP server wraps it with structured, validated read/write/list/status tools (see Usage).

TypePurpose
QA — Question and AnswerStructured elicitation interview (organized by ISO/IEC 25010 characteristic) capturing stakeholder Q&A; usually where a new spec effort *starts*
GOL — GoalHigh-level business goal — what the organization wants to achieve, above individual requirements
PRB — Problem StatementSix-Sigma-style problem statement describing the problem a goal/requirement addresses
REQ — RequirementA single system requirement (EARS-style phrasing), classified by ISO/IEC 25010 characteristic
UC — Use CaseActor/system interaction describing a specific usage scenario
RSK — RiskRisk-register entry: cause/trigger/consequence, 5x5 probability/impact assessment (initial + residual), TARA response strategy
DEC — DecisionGeneral-purpose decision record (MADR-style), not limited to architecture
ADR — Architecture Decision RecordArchitecture-specific decision record; deprecated, use DEC instead
TSK — Task ListChecklist of implementation tasks, e.g. for a requirement or feature
VCR — Verification Case RecordVerifies exactly one REQ or UC; holds a collection of AC-NNN acceptance criteria (each with a DTAIS verification method) plus one overall coverage outcome (full/partial/none)
SOP — Standard Operating ProcedureStep-by-step operational procedure with RASCI responsibility assignment and approval lifecycle
FEAT — FeatureDevelopment work-unit plan/progress tracking (.specmgr/feat/ /README.md)
SYSRS — System Requirements SpecAggregates GOL/PRB/QA/UC/REQ/RSK/DEC-ADR/VCR via cross-reference lists into one navigable spec; its structure follows ISO/IEC/IEEE 29148:2018 (Systems and software engineering — Life cycle processes — Requirements engineering), with a few specmgr-only additions (e.g. ## Decisions, ## Risks)
TXT — Free-Form TextGeneric, minimally structured catch-all for unstructured markdown that does not warrant a dedicated domain (ad hoc notes, meeting minutes, review/audit write-ups, scratch analysis); free body (any markdown, incl. H2..H6) plus a mandatory newest-first ## Updates log

A typical spec effort starts with a QA elicitation interview, which surfaces GOLs (goals) and PRBs (problems). Those inform REQs and UCs, which get risk-assessed (RSK) and backed by DECisions, verified via one VCR per REQ/UC (each collecting its acceptance criteria), and tracked via TSK task lists. A SYSRS ties all of it together into one ISO/IEC/IEEE 29148-structured specification. SOP and FEAT support the process itself rather than sitting in this chain, and TXT is the free-form catch-all that likewise sits outside it (any markdown that does not warrant a dedicated artifact type).

QA -> GOL / PRB -> REQ / UC -> RSK / DEC -> TSK, VCR -> SYSRS (aggregates all)

Installation

As a library only (no CLI, no MCP server):

pip install biz-dfch-specmgr

With the CLI:

pip install "biz-dfch-specmgr[cli]"

With the MCP server:

pip install "biz-dfch-specmgr[mcp]"

With semantic-similarity search (find_related/find_similar_text, see Semantic Similarity Search below), add the similarity extra on top of mcp:

pip install "biz-dfch-specmgr[mcp,similarity]"

Or with uv:

uv add "biz-dfch-specmgr[cli,mcp,similarity]"

CLI Usage

With the CLI you can generate schema and documentation. We use these commands in pre-commit hooks and ci.yml.

_No domain document-management commands (create/update/status/etc.) exist in the CLI yet — those are currently MCP-only, see MCP Server. The CLI covers version, mcp (below), a handful of cross-cutting/doc-generation commands, and the diagram commands — UC → PlantUML (see UC → PlantUML Diagrams) and reference-graph (see Reference Graph Diagrams) (specmgr --help for the full list)._

specmgr version

specmgr lint [paths]... [--type T [--dir D]] [--all] [--skip-unrecognized] # in-tree spec artifact parseability gate: full model-level parse of the paths (type inferred from the layout, --type overrides) or a --type/--all sweep (exit 0 parsed / 1 parse failure or missing mcp extra / 2 usage-or-resolution)

specmgr lint requires the mcp extra, like specmgr diagram (the decoupling is tracked as issue #238).

UC → PlantUML Diagrams

Specmgr can turn UC artifacts into PlantUML diagrams — deterministic use-case and package diagrams, plus sequence diagrams attributed by the agent flow.

Sequence diagrams (agent path). The generate_uc_sequence_diagram MCP prompt (in OpenCode: the self-triggering uc-diagram skill or the /uc-diagram command) runs the frozen rulebook flow: the agent attributes every UNATTRIBUTED message (asking via the question tool when not confident), validates with validate_plantuml, and writes diagrams/uc/ .sequence.puml host-natively — no specmgr tool writes .puml files.

**Deterministic diagrams + tooling (CLI, deterministic-only — the CLI never creates, overwrites, or diffs the agent-owned *.sequence.puml files):**

specmgr diagram uc <id>|all --out <dir> [--check]  # per-UC <id>.usecase.puml + package.puml; --check byte-diffs without writing (exit 0 ok / 1 diff / 2 usage-or-render error)

specmgr plantuml-check # validates any .puml through the chain (exit 0 valid / 1 invalid / 2 source misconfigured-or-unavailable / 3 inconclusive) specmgr plantuml-encode # offline classic SoWkI… encoding

Validation source. Exactly three env vars, the first one set is the only source used (no fall-through, no PATH discovery, no public default): SPECMGR_PLANTUML_JAR (a plantuml.jar path), SPECMGR_PLANTUML_BIN (an executable speaking the PlantUML CLI contract), SPECMGR_PLANTUML_URL (a PlantUML server base URL). All unset ⇒ offline structure-only validation. Diagram content is never sent to plantuml.com unless you set that URL.

The normative rulebook ships as the specmgr://uc/plantuml resource; the full MCP surface is in docs/MCP.md.

Reference Graph Diagrams

Specmgr can render the deterministic cross-reference network between its artifacts (the tag vocabulary behind the list_references tool) as a PlantUML component diagram — one node per artifact (label = the document title, truncated to the SPECMGR_DIAGRAM_MAX_TITLE limit, default 40), a stereotype + colour per artifact type (a frozen 15-entry palette), nodes grouped into per-domain curly component "TYPE" { … } domain groups, one label-free edge per unique reference ({src} --> {dst}), every edge that lies on a cycle (self-loops and same-SCC ≥ 2) drawn with a red label-free -[#red]-> arrow, and every reference whose target cannot be resolved on disk drawn as a top-level < > node. Fully deterministic: the same registry and the same arguments always emit byte-identical source.

MCP tools. get_reference_diagram(type, id, depth=1, reverse=False, include_feat=True, title=None) renders one source document's reference neighbourhood (the forward walk to depth, 1..5; reverse=True adds the direct incoming references, additive and direct-only); get_reference_diagram_all(include_feat=True, title=None) renders the registry-wide graph. Both return the PlantUML source directly (no file writes); the scoped tool accepts all 14 domains (adr included) and returns the non-raising ParseFailureResult for an existing-but-broken source; the registry-wide tool never raises for content.

CLI (writes the artifact, deterministic-only):

specmgr diagram refs <type> <id> [--depth N] [--reverse] [--no-feat] [--title T] [--out diagrams/refs] [--check]  # scoped → <id>.refs.puml

specmgr diagram refs all [--no-feat] [--title T] [--out diagrams/refs] [--check] # registry-wide → reference-graph.puml

--no-feat drops every FEAT node except the explicitly requested source (then every edge touching a dropped node). Exit codes: 0 written / no diff, 1 a --check diff (a missing file counts as differing) or the missing mcp extra, 2 a usage-or-resolution error (wrong-format type/id/depth — a bare feat-NNN is rejected, use list_feat to discover the exact id — a missing source, an existing-but-broken source, all combined with a source). Written artifacts carry no structure-only header (checker-clean by construction).

Validation. specmgr plantuml-check (or the validate_plantuml MCP tool over the source) validates the diagram through the same strict chain as the UC diagrams (the three SPECMGR_PLANTUML_* source env vars, see UC → PlantUML Diagrams; all unset is the offline structure-only floor).

Label limit. SPECMGR_DIAGRAM_MAX_TITLE (an int, default 40) bounds the resolved-node H1 labels (word-boundary cut + …; a set-but-invalid value falls back to 40); the @startuml diagram title is sanitized but never truncated. Its set/valid/default/resolved status is reported by the diagram section of the specmgr://config resource (the raw value is never disclosed).

The normative rulebook ships as the specmgr://reference-graph resource; the full MCP surface is in [docs/MCP.md](doc

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx