hubdocs
Indexes and validates architecture documentation hubs, enabling agents to query IDs, dependencies, orphans, and broken links without loading the full doc tree.
README
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.
- GitHub: raintr91/hubdocs
- Init (agents): docs/INIT.md
- Package bootstrap: docs/INSTALL.md
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/ |
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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。