Skip to main content
Glama

hubdocs

Local MCP for arc42 × C4 docs hubs: index architecture/product IDs, deps, orphans, broken links, and chapter routing — so agents query the hub without dumping whole trees.

Indexes and validates Markdown only — does not replace Structurizr or diagram renderers.


What it does

Công dụng

Chi tiết

ID index

Liệt kê LND / CTX / CTR / CMP / FLOW / DEP / ADR / W / API / UI từ MD

Slice theo ID

Mở file + excerpt cho một phần tử — không load cả cây docs

Deps / dependents

Ai tham chiếu ID này / ID này tham chiếu ai

Catalog health

Orphans (thiếu FLOW/ADR/CMP), broken MD links

Routing

Topic → chương arc42 + skill gợi ý

Journeys

Liệt kê FLOW-* dưới 06-runtime/journeys/


Related MCP server: Documentation MCP Server

Quick start

Linux / WSL

curl -fsSL https://raw.githubusercontent.com/raintr91/hubdocs/main/install.sh | bash
hubdocs version
cd /path/to/your/docs-hub    # thư mục có architecture/
hubdocs init --yes           # ↑↓ · Space nếu bỏ --yes

Windows

irm https://raw.githubusercontent.com/raintr91/hubdocs/main/install.ps1 | iex

Requires Node ≥ 22.

init tự lấy cwd làm HUBDOCS_ROOT. Chỉ cần --docs-root=… khi chạy từ chỗ khác.

Sau init: restart agent → thử tool hubdocs_list_ids.


Update

Cùng lệnh cài — ghi đè ~/.hubdocs + symlink CLI:

curl -fsSL https://raw.githubusercontent.com/raintr91/hubdocs/main/install.sh | bash
hubdocs version

Pin bản cụ thể:

HUBDOCS_REF=v0.1.0 curl -fsSL https://raw.githubusercontent.com/raintr91/hubdocs/v0.1.0/install.sh | bash

Windows: chạy lại irm …/install.ps1 | iex.

Sau update: nếu đổi wire MCP thì cd docs hub → hubdocs init --yes rồi restart agent.

Uninstall: curl -fsSL …/install.sh | bash -s -- --uninstall


Commands

Step

CLI

Install / update package

curl …/install.sh | bash

Wire agents (global/local)

hubdocs init

Print MCP snippet

hubdocs init --print-config cursor

Version / paths

hubdocs version

install = deprecated alias của init.

Agents hỗ trợ: Claude · Cursor · Codex · opencode · Hermes · Gemini · Antigravity · Kiro · Kilo.


MCP tools

Tool

Purpose

hubdocs_list_ids

List LND/CTX/CTR/CMP/FLOW/DEP/ADR/W/API

hubdocs_get_element

Files + excerpt for one ID

hubdocs_deps_of

IDs referenced from that element’s files

hubdocs_dependents_of

IDs that mention this ID

hubdocs_orphans

Missing canonical FLOW/ADR/CMP paths; catalog draft/TBD

hubdocs_validate_links

Broken MD links under architecture (+ product)

hubdocs_route

Topic → arc42 chapter + skill

hubdocs_journeys

List FLOW-* under 06-runtime/journeys/

hubdocs_layout

Canonical paths per ID kind + ignored redirect stubs

Manual Cursor snippet: mcp.cursor.example.json. Ưu tiên hubdocs init sau install.sh.

Docs root: HUBDOCS_ROOT hoặc --docs-root (hub phải có architecture/).

Redirect stubs (old flat C4) bị bỏ qua khi index. DYN-* không còn được index — dùng FLOW-*.


License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/raintr91/hubdocs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server