# h30190/hjplus_taiwan_architect_kb architecture

> Architecture diagram of the GitHub repository h30190/hjplus_taiwan_architect_kb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/h30190/hjplus_taiwan_architect_kb
- Repository: https://github.com/h30190/hjplus_taiwan_architect_kb

## Overview

HJPLUS Taiwan AEC Knowledge Base is a Traditional-Chinese knowledge repository for architecture, engineering, and construction practitioners, exposed through a public site and an MCP interface. The main user workflow is to browse or search for a topic, then read its human-facing domain description or AI-oriented skill content. The repository also contains specialist guidance across regulations, permits, design, performance, construction, engineering, and tools. The MCP excerpts show its search and retrieval path; unsampled site and knowledge content are represented by their documented directories, without inferred runtime links.

Main entry points: [`mcp/src/server.js`](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/server.js) (Tool server), [`mcp/src/kb.js`](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/kb.js) (Index and text access), [`mcp/src/index.js`](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/index.js) (Local MCP entry), [`mcp/src/worker.js`](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/worker.js) (HTTP Worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_knowledge["AEC knowledge"]
  node_raw_root["Knowledge corpus"]
  node_regulations["Building regulations"]
  node_permits["Building permits"]
  node_performance["Building performance"]
  node_design["Design planning"]
  node_engineering["Technical engineering"]
  node_construction["Construction materials"]
  node_public_works["Public works"]
  node_project_management["Project management"]
  node_practice["Practice management"]
  node_design_tools["Design software tools"]
end

subgraph group_guidance["Professional guidance"]
  node_methodology["Consultation methodology"]
end

subgraph group_interfaces["User interfaces"]
  node_website["Knowledge website"]
end

subgraph group_mcp["MCP runtime"]
  node_stdio_entry["Local MCP entry<br/>[index.js]"]
  node_worker_entry["HTTP Worker<br/>[worker.js]"]
  node_mcp_server["Tool server<br/>[server.js]"]
  node_search_engine["Knowledge search<br/>[search.js]"]
  node_kb_access["Index and text access<br/>[kb.js]"]
end

node_practitioner(("AEC practitioner"))
node_mcp_client(("MCP client"))
node_published_index[("Published index")]
node_raw_content_host["Raw content host"]

node_practitioner -->|"browses"| node_website
node_practitioner -->|"uses knowledge"| node_raw_root
node_mcp_client -->|"connects locally"| node_stdio_entry
node_mcp_client -->|"sends requests"| node_worker_entry
node_stdio_entry -->|"creates server"| node_mcp_server
node_worker_entry -->|"creates server"| node_mcp_server
node_mcp_server -->|"loads entries"| node_kb_access
node_mcp_server -->|"ranks queries"| node_search_engine
node_mcp_server -->|"fetches entry text"| node_kb_access
node_kb_access -->|"fetches index"| node_published_index
node_kb_access -->|"fetches content"| node_raw_content_host

click node_raw_root "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw"
click node_regulations "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E6%B3%95%E8%A6%8F"
click node_permits "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E5%9F%B7%E7%85%A7"
click node_performance "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E6%80%A7%E8%83%BD"
click node_design "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E8%A8%AD%E8%A8%88%E8%88%87%E8%A6%8F%E5%8A%83"
click node_engineering "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%B0%88%E6%A5%AD%E8%A4%87%E5%A7%94%E8%A8%97"
click node_construction "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E6%96%BD%E5%B7%A5%E8%88%87%E6%9D%90%E6%96%99"
click node_public_works "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%85%AC%E5%85%B1%E5%B7%A5%E7%A8%8B"
click node_project_management "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%B0%88%E6%A1%88%E7%AE%A1%E7%90%86"
click node_practice "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E7%B6%93%E7%87%9F%E7%AE%A1%E7%90%86"
click node_design_tools "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E8%A8%AD%E8%A8%88%E8%BB%9F%E9%AB%94%E8%88%87%E5%B7%A5%E5%85%B7"
click node_methodology "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E9%A1%A7%E5%95%8F%E6%96%B9%E6%B3%95%E8%AB%96"
click node_website "https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/docs"
click node_stdio_entry "https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/index.js"
click node_worker_entry "https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/worker.js"
click node_mcp_server "https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/server.js"
click node_search_engine "https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/search.js"
click node_kb_access "https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/kb.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_raw_root,node_regulations,node_permits,node_performance,node_design,node_engineering,node_construction,node_public_works,node_project_management,node_practice,node_design_tools,node_mcp_client toneBlue
class node_methodology,node_published_index toneAmber
class node_website toneMint
class node_stdio_entry,node_worker_entry,node_mcp_server,node_search_engine,node_kb_access toneRose
class node_practitioner,node_raw_content_host toneIndigo
```

## Components

### AEC knowledge

- [Knowledge corpus](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw): `raw`
- [Building regulations](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E6%B3%95%E8%A6%8F): `raw/建築法規`
- [Building permits](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E5%9F%B7%E7%85%A7): `raw/建築執照`
- [Building performance](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E6%80%A7%E8%83%BD): `raw/建築性能`
- [Design planning](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E8%A8%AD%E8%A8%88%E8%88%87%E8%A6%8F%E5%8A%83): `raw/建築設計與規劃`
- [Technical engineering](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%B0%88%E6%A5%AD%E8%A4%87%E5%A7%94%E8%A8%97): `raw/專業複委託`
- [Construction materials](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E6%96%BD%E5%B7%A5%E8%88%87%E6%9D%90%E6%96%99): `raw/建築施工與材料`
- [Public works](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%85%AC%E5%85%B1%E5%B7%A5%E7%A8%8B): `raw/公共工程`
- [Project management](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%B0%88%E6%A1%88%E7%AE%A1%E7%90%86): `raw/專案管理`
- [Practice management](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E7%B6%93%E7%87%9F%E7%AE%A1%E7%90%86): `raw/經營管理`
- [Design software tools](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E8%A8%AD%E8%A8%88%E8%BB%9F%E9%AB%94%E8%88%87%E5%B7%A5%E5%85%B7): `raw/設計軟體與工具`

### Professional guidance

- [Consultation methodology](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/raw/%E5%BB%BA%E7%AF%89%E9%A1%A7%E5%95%8F%E6%96%B9%E6%B3%95%E8%AB%96): `raw/建築顧問方法論`

### User interfaces

- [Knowledge website](https://github.com/h30190/hjplus_taiwan_architect_kb/tree/main/docs): `docs`

### MCP runtime

- [Local MCP entry](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/index.js): `mcp/src/index.js`
- [HTTP Worker](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/worker.js): `mcp/src/worker.js`
- [Tool server](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/server.js): `mcp/src/server.js`
- [Knowledge search](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/search.js): `mcp/src/search.js`
- [Index and text access](https://github.com/h30190/hjplus_taiwan_architect_kb/blob/main/mcp/src/kb.js): `mcp/src/kb.js`

### Other components

- **AEC practitioner**
- **MCP client**
- **Published index**
- **Raw content host**

## Connections

- AEC practitioner → Knowledge website: browses (evidence: `README.md`)
- AEC practitioner → Knowledge corpus: uses knowledge (evidence: `README.md`)
- MCP client → Local MCP entry: connects locally (evidence: `mcp/src/index.js`)
- MCP client → HTTP Worker: sends requests (evidence: `mcp/src/worker.js`)
- Local MCP entry → Tool server: creates server (evidence: `mcp/src/index.js`)
- HTTP Worker → Tool server: creates server (evidence: `mcp/src/worker.js`)
- Tool server → Index and text access: loads entries (evidence: `mcp/src/server.js`)
- Tool server → Knowledge search: ranks queries (evidence: `mcp/src/server.js`)
- Tool server → Index and text access: fetches entry text (evidence: `mcp/src/server.js`)
- Index and text access → Published index: fetches index (evidence: `mcp/src/kb.js`)
- Index and text access → Raw content host: fetches content (evidence: `mcp/src/kb.js`)
