factory-graph-mcp 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- factory_graph_mcp-0.1.0/.github/workflows/release.yml +62 -0
- factory_graph_mcp-0.1.0/.github/workflows/test.yml +16 -0
- factory_graph_mcp-0.1.0/.gitignore +9 -0
- factory_graph_mcp-0.1.0/LICENSE +21 -0
- factory_graph_mcp-0.1.0/PKG-INFO +211 -0
- factory_graph_mcp-0.1.0/README.md +192 -0
- factory_graph_mcp-0.1.0/docs/images/condenser.jpg +0 -0
- factory_graph_mcp-0.1.0/docs/images/hero.png +0 -0
- factory_graph_mcp-0.1.0/docs/images/render.sh +15 -0
- factory_graph_mcp-0.1.0/docs/images/src/chiller.jpg +0 -0
- factory_graph_mcp-0.1.0/docs/images/src/compressor.jpg +0 -0
- factory_graph_mcp-0.1.0/docs/images/src/condenser.svg +7 -0
- factory_graph_mcp-0.1.0/docs/images/src/condenser_clean.jpg +0 -0
- factory_graph_mcp-0.1.0/docs/images/src/condenser_clogged.jpg +0 -0
- factory_graph_mcp-0.1.0/docs/images/src/hero.svg +78 -0
- factory_graph_mcp-0.1.0/docs/images/src/panel.jpg +0 -0
- factory_graph_mcp-0.1.0/docs/images/src/pump.jpg +0 -0
- factory_graph_mcp-0.1.0/docs/images/src/tower.jpg +0 -0
- factory_graph_mcp-0.1.0/docs/images/src/upstream-equipment.svg +15 -0
- factory_graph_mcp-0.1.0/docs/images/upstream-equipment.jpg +0 -0
- factory_graph_mcp-0.1.0/pyproject.toml +36 -0
- factory_graph_mcp-0.1.0/server.json +29 -0
- factory_graph_mcp-0.1.0/src/factory_graph_mcp/__init__.py +3 -0
- factory_graph_mcp-0.1.0/src/factory_graph_mcp/__main__.py +3 -0
- factory_graph_mcp-0.1.0/src/factory_graph_mcp/graph.py +233 -0
- factory_graph_mcp-0.1.0/src/factory_graph_mcp/sample/connections.csv +25 -0
- factory_graph_mcp-0.1.0/src/factory_graph_mcp/sample/equipment.csv +14 -0
- factory_graph_mcp-0.1.0/src/factory_graph_mcp/server.py +123 -0
- factory_graph_mcp-0.1.0/tests/test_graph.py +151 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# 버전 태그(v0.1.0 같은)를 push하면 PyPI에 올리고 공식 MCP Registry에 등록한다.
|
|
2
|
+
# 토큰을 저장하지 않는다: PyPI는 Trusted Publishing, Registry는 GitHub OIDC로 로그인한다.
|
|
3
|
+
name: release
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: astral-sh/setup-uv@v5
|
|
14
|
+
- name: 태그·pyproject·server.json 버전이 같은지 확인
|
|
15
|
+
run: |
|
|
16
|
+
TAG="${GITHUB_REF_NAME#v}"
|
|
17
|
+
PY=$(grep -m1 '^version' pyproject.toml | cut -d'"' -f2)
|
|
18
|
+
SJ=$(python3 -c "import json;d=json.load(open('server.json'));print(d['version'])")
|
|
19
|
+
PK=$(python3 -c "import json;d=json.load(open('server.json'));print(d['packages'][0]['version'])")
|
|
20
|
+
echo "tag=$TAG pyproject=$PY server.json=$SJ package=$PK"
|
|
21
|
+
test "$TAG" = "$PY" && test "$TAG" = "$SJ" && test "$TAG" = "$PK"
|
|
22
|
+
- run: uv venv && uv pip install -e ".[dev]" && .venv/bin/python -m pytest -q
|
|
23
|
+
- run: uv build
|
|
24
|
+
- uses: actions/upload-artifact@v4
|
|
25
|
+
with:
|
|
26
|
+
name: dist
|
|
27
|
+
path: dist/
|
|
28
|
+
|
|
29
|
+
pypi:
|
|
30
|
+
needs: build
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
environment: pypi
|
|
33
|
+
permissions:
|
|
34
|
+
id-token: write
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/download-artifact@v4
|
|
37
|
+
with:
|
|
38
|
+
name: dist
|
|
39
|
+
path: dist/
|
|
40
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
41
|
+
|
|
42
|
+
mcp-registry:
|
|
43
|
+
needs: pypi
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
permissions:
|
|
46
|
+
id-token: write
|
|
47
|
+
contents: read
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@v4
|
|
50
|
+
- name: mcp-publisher 설치
|
|
51
|
+
run: |
|
|
52
|
+
curl -sL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
|
|
53
|
+
- name: PyPI에 새 버전이 보일 때까지 기다리기
|
|
54
|
+
run: |
|
|
55
|
+
V="${GITHUB_REF_NAME#v}"
|
|
56
|
+
for i in $(seq 1 30); do
|
|
57
|
+
curl -sf "https://pypi.org/pypi/factory-graph-mcp/$V/json" >/dev/null && exit 0
|
|
58
|
+
sleep 10
|
|
59
|
+
done
|
|
60
|
+
echo "PyPI에 $V 가 아직 없다"; exit 1
|
|
61
|
+
- run: ./mcp-publisher login github-oidc
|
|
62
|
+
- run: ./mcp-publisher publish
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
pull_request:
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
python: ["3.10", "3.12"]
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: astral-sh/setup-uv@v5
|
|
14
|
+
- run: uv venv -p ${{ matrix.python }} && uv pip install -e ".[dev]"
|
|
15
|
+
- run: .venv/bin/python -m pytest -q
|
|
16
|
+
- run: .venv/bin/factory-graph-mcp --check
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 prag-ai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: factory-graph-mcp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: MCP server that traces upstream equipment in a factory — find where to look first when a machine alarms.
|
|
5
|
+
Project-URL: Homepage, https://github.com/prag-ai/factory-graph-mcp
|
|
6
|
+
Project-URL: Blog, https://prag-ai.com
|
|
7
|
+
Author: prag-ai
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: factory,maintenance,manufacturing,mcp,root-cause,smart-factory
|
|
11
|
+
Classifier: Intended Audience :: Manufacturing
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering
|
|
14
|
+
Requires-Python: >=3.10
|
|
15
|
+
Requires-Dist: mcp<3,>=2.3
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# factory-graph-mcp
|
|
21
|
+
|
|
22
|
+
**설비에 알람이 떴을 때, 어디부터 봐야 하는지 짚어 주는 MCP 서버입니다.**
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
공장 설비는 혼자 돌지 않습니다. 가공기는 칠러에서 절삭유 냉각수를, 압축기에서 압축공기를, 분전반에서 전기를 받습니다. 그래서 알람이 뜬 설비가 원인이 아닐 때가 많습니다. 원인은 그 설비에 무언가를 공급하는 **상류** 설비에 있고, 상류 설비는 아직 자기 기준에 닿지 않아 **알람이 없을 수도** 있습니다.
|
|
27
|
+
|
|
28
|
+
`factory-graph-mcp`는 설비 대장과 연결 테이블(CSV 두 개)을 읽어, AI가 이 연결을 따라 올라갈 수 있게 도구로 줍니다. Claude, Codex, Cursor처럼 MCP를 지원하는 AI 앱에 붙이면 이렇게 물어볼 수 있습니다.
|
|
29
|
+
|
|
30
|
+
> 1호기랑 2호기에 동시에 스핀들 온도 알람이 떴어. 어디부터 봐야 해?
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
common_upstream(["1호기", "2호기"], kinds=["절삭유 냉각수", "냉각수", "순환수"])
|
|
34
|
+
|
|
35
|
+
CLT-01 절삭유 칠러 1호 두 대 모두 공급 1단계 위
|
|
36
|
+
CT-01 냉각탑 두 대 모두 공급 2단계 위
|
|
37
|
+
P-01 냉각탑 순환 펌프 두 대 모두 공급 3단계 위
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
두 대가 함께 쓰는 냉각 계통은 칠러 1호, 냉각탑, 순환 펌프입니다. 3·4호기가 멀쩡하다면 3·4호기와 함께 쓰는 냉각탑보다 **1·2호기만 쓰는 칠러 1호**를 먼저 보는 것이 맞습니다. 이런 판단은 AI가 이 결과와 현장 상황을 보고 합니다. 이 서버는 연결을 빠짐없이, 틀리지 않게 따라가는 일만 맡습니다.
|
|
41
|
+
|
|
42
|
+
### 알람이 없는 상류
|
|
43
|
+
|
|
44
|
+
상류 설비는 고장 나기 전에 먼저 약해집니다. 칠러의 응축기에 먼지가 끼면 열을 덜 내보내서 냉각수 온도가 천천히 오르지만, 칠러 자기 알람 기준에 닿기 전까지는 조용합니다. 그사이 기준이 더 촘촘한 가공기가 먼저 알람을 띄웁니다. 알람 목록만 보면 칠러는 보이지 않습니다.
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
그래서 알람이 뜬 설비만이 아니라, 그 설비에 무언가를 보내는 설비를 함께 봐야 합니다. 대개 아래 같은 공용 설비입니다.
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
## 도구
|
|
53
|
+
|
|
54
|
+
모든 도구는 읽기 전용입니다. 데이터 파일을 바꾸지 않습니다.
|
|
55
|
+
|
|
56
|
+
| 도구 | 하는 일 |
|
|
57
|
+
|---|---|
|
|
58
|
+
| `find_equipment` | "1호기", "칠러1"처럼 현장에서 부르는 이름으로 설비 번호를 찾는다 |
|
|
59
|
+
| `get_equipment` | 설비 한 대의 정보와 바로 붙은 연결(받는 것, 주는 것) |
|
|
60
|
+
| `trace_upstream` | 한 설비에서 상류를 가까운 순서로 따라간다. 무엇이 어떤 길로 흘러오는지(`path`)까지 |
|
|
61
|
+
| `common_upstream` | 여러 설비에 동시에 이상이 있을 때 함께 쓰는 상류를 묶는다 |
|
|
62
|
+
| `describe_plant` | 불러온 공장의 규모(설비 수, 연결 종류) |
|
|
63
|
+
|
|
64
|
+
서로 주고받는 연결(예: 기계가 온도 조절기에 전원을 주고, 조절기가 기계에 온수를 주는 경우)이 있어도 끝없이 돌지 않습니다. 한 번 본 설비는 다시 따라가지 않고 `cycles_skipped`에 적어 둡니다.
|
|
65
|
+
|
|
66
|
+
### 한국어로 만든 첫 제조 설비 MCP 서버
|
|
67
|
+
|
|
68
|
+
**2026년 11월 24일 기준, 한국어로 만든 첫 제조 설비 MCP 서버입니다.** 해외에는 설비 값을 읽는 OPC UA 서버나 MES 연동 서버가 있지만, 한국어로 된 것은 없었습니다.
|
|
69
|
+
|
|
70
|
+
현장에서는 설비 번호 대신 "1호기", "칠러2", "콤프"라고 부릅니다. 설비 대장의 `aliases` 열에 이런 이름을 적어 두면 AI가 그 말로 설비를 찾습니다. 설비 이름, 연결 종류(전원, 냉각수, 압축공기 …), 도구 안내문까지 한국어로 만들었습니다. 다른 언어로 적은 데이터도 그대로 읽습니다.
|
|
71
|
+
|
|
72
|
+
설비끼리 무엇을 주고받는지, 현장에서 설비를 뭐라고 부르는지까지 담은 한국어 공장 데이터는 공개된 것을 찾기 어렵습니다. **그래서 바로 돌려 볼 수 있는 한국어 예제 공장 데이터를 함께 공개합니다.** MIT 라이선스이니 자기 공장 데이터를 만들 때 틀로 가져다 쓰셔도 됩니다.
|
|
73
|
+
|
|
74
|
+
## 설치와 실행
|
|
75
|
+
|
|
76
|
+
[uv](https://docs.astral.sh/uv/)가 있으면 설치 없이 바로 실행됩니다.
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
uvx --from git+https://github.com/prag-ai/factory-graph-mcp factory-graph-mcp --check
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`--check`는 데이터를 읽어 요약만 찍고 끝냅니다. 처음에는 들어 있는 예제 공장(CNC 가공 공장, 설비 13대)을 읽습니다.
|
|
83
|
+
|
|
84
|
+
### Claude Desktop
|
|
85
|
+
|
|
86
|
+
`claude_desktop_config.json`에 넣습니다.
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"mcpServers": {
|
|
91
|
+
"factory-graph": {
|
|
92
|
+
"command": "uvx",
|
|
93
|
+
"args": ["--from", "git+https://github.com/prag-ai/factory-graph-mcp", "factory-graph-mcp"]
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
내 공장 데이터를 쓰려면 `args` 끝에 `"--data", "/내/공장/폴더"`를 붙입니다.
|
|
100
|
+
|
|
101
|
+
### Claude Code
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
claude mcp add factory-graph -- uvx --from git+https://github.com/prag-ai/factory-graph-mcp factory-graph-mcp
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Codex (OpenAI)
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
codex mcp add factory-graph -- uvx --from git+https://github.com/prag-ai/factory-graph-mcp factory-graph-mcp
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
명령 대신 `~/.codex/config.toml`에 직접 적어도 됩니다.
|
|
114
|
+
|
|
115
|
+
```toml
|
|
116
|
+
[mcp_servers.factory-graph]
|
|
117
|
+
command = "uvx"
|
|
118
|
+
args = ["--from", "git+https://github.com/prag-ai/factory-graph-mcp", "factory-graph-mcp"]
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Cursor
|
|
122
|
+
|
|
123
|
+
`.cursor/mcp.json`(프로젝트) 또는 `~/.cursor/mcp.json`(전체)에 Claude Desktop과 같은 형식으로 넣습니다.
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"mcpServers": {
|
|
128
|
+
"factory-graph": {
|
|
129
|
+
"command": "uvx",
|
|
130
|
+
"args": ["--from", "git+https://github.com/prag-ai/factory-graph-mcp", "factory-graph-mcp"]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### 원격(HTTP)으로 띄우기
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
factory-graph-mcp --http --host 0.0.0.0 --port 8000 # 주소: http://<서버>:8000/mcp
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## 내 공장 데이터로 쓰기
|
|
143
|
+
|
|
144
|
+
CSV 두 개가 든 폴더를 `--data`로 주거나 환경 변수 `FACTORY_GRAPH_DATA`에 적습니다. 엑셀에서 「CSV UTF-8」로 저장하면 됩니다.
|
|
145
|
+
|
|
146
|
+
**equipment.csv** — 설비 대장. 한 대에 한 행.
|
|
147
|
+
|
|
148
|
+
| 열 | 필수 | 뜻 | 예 |
|
|
149
|
+
|---|---|---|---|
|
|
150
|
+
| `equipment_id` | ● | 설비 번호 | `CNC-01` |
|
|
151
|
+
| `name` | ● | 이름 | 머시닝 센터 1호기 |
|
|
152
|
+
| `type` | ● | 설비 종류 | 머시닝 센터 |
|
|
153
|
+
| `aliases` | | 현장에서 부르는 이름. `\|`로 여러 개 | `1호기\|머시닝1` |
|
|
154
|
+
| `location` | | 위치 | 가공동 A열 |
|
|
155
|
+
| `note` | | 메모 | |
|
|
156
|
+
|
|
157
|
+
**connections.csv** — 연결 테이블. 한 행이 화살표 하나입니다.
|
|
158
|
+
|
|
159
|
+
| 열 | 필수 | 뜻 | 예 |
|
|
160
|
+
|---|---|---|---|
|
|
161
|
+
| `from_id` | ● | 공급하는 설비 | `CLT-01` |
|
|
162
|
+
| `to_id` | ● | 공급받는 설비 | `CNC-01` |
|
|
163
|
+
| `kind` | ● | 무엇을 공급하는가 | 절삭유 냉각수 |
|
|
164
|
+
| `note` | | 메모 | |
|
|
165
|
+
|
|
166
|
+
`kind`는 자유롭게 적어도 됩니다(전원, 냉각수, 압축공기, 원료, 스팀 …). 같은 것은 같은 말로 적어야 `kinds`로 좁힐 때 걸립니다. 연결이 설비 대장에 없는 번호를 가리키면 서버가 어느 번호인지 알려 주고 시작하지 않습니다.
|
|
167
|
+
|
|
168
|
+
예제 데이터: [`src/factory_graph_mcp/sample/`](src/factory_graph_mcp/sample/)
|
|
169
|
+
|
|
170
|
+
## 이 서버가 하지 않는 일
|
|
171
|
+
|
|
172
|
+
- **원인을 정하지 않습니다.** 어디를 봐야 하는지만 알려 줍니다. 원인 판단과 조치 결정은 현장 확인을 거쳐 사람이 합니다.
|
|
173
|
+
- **설비를 조작하지 않습니다.** 설비나 PLC에 연결하지 않고 CSV만 읽습니다.
|
|
174
|
+
- **센서 값과 알람 이력은 읽지 않습니다.** 연결 구조만 다룹니다. 실시간 값을 읽는 일은 OPC UA 같은 다른 MCP 서버와 함께 쓰면 됩니다.
|
|
175
|
+
|
|
176
|
+
## 개발
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
uv venv && uv pip install -e ".[dev]"
|
|
180
|
+
.venv/bin/python -m pytest
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## 만든 곳
|
|
184
|
+
|
|
185
|
+
[prag-ai](https://prag-ai.com) — 제조 현장의 설비 장애 진단을 AI 에이전트로 만드는 일을 합니다.
|
|
186
|
+
|
|
187
|
+
이 저장소는 그 작업의 한 조각입니다. 전체 진단 시스템은 여러 에이전트가 나눠 맡아, 장애 신고 한 건을 받아 원인 후보와 조치안을 내고 재가동 승인 요청까지 갑니다. 이 시스템은 처음부터 한국어 데이터로 만들고 검증했습니다. 센서와 알람 기록, 정비 기록, 설비 매뉴얼, 사내 메일과 메신저, 현장 사진, 전기·배관 도면이 모두 한국어입니다.
|
|
188
|
+
|
|
189
|
+
진단 시스템과 우리 공장 데이터 적용은 [prag-ai.com](https://prag-ai.com)으로, 사내교육은 macro@prag-ai.com 으로 문의해 주세요.
|
|
190
|
+
|
|
191
|
+
## License
|
|
192
|
+
|
|
193
|
+
MIT
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## English
|
|
198
|
+
|
|
199
|
+
**An MCP server that tells an AI where to look first when a machine alarms.**
|
|
200
|
+
|
|
201
|
+
Machines in a plant depend on each other: a machining center gets coolant from a chiller, compressed air from a compressor, and power from a panel. The machine that raises the alarm is often not the cause. The cause sits **upstream**, and the upstream machine may not have alarmed yet.
|
|
202
|
+
|
|
203
|
+
`factory-graph-mcp` reads two CSV files (an equipment list and a connection table) and gives an AI read-only tools to walk those connections: `find_equipment`, `get_equipment`, `trace_upstream`, `common_upstream`, `describe_plant`. Cycles are handled. A sample CNC machining plant (13 machines) is bundled.
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
uvx --from git+https://github.com/prag-ai/factory-graph-mcp factory-graph-mcp --check
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Korean-first — as of November 24, 2026, the first Korean-language manufacturing MCP server. Equipment names, shop-floor aliases ("1호기", "콤프"), tool descriptions, and the sample plant are in Korean; data in any other language works too. Use your own data with `--data <folder>` (columns are described above). It does not diagnose, control equipment, or read live sensor data — it narrows down where to look.
|
|
210
|
+
|
|
211
|
+
<!-- mcp-name: io.github.prag-ai/factory-graph-mcp -->
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# factory-graph-mcp
|
|
2
|
+
|
|
3
|
+
**설비에 알람이 떴을 때, 어디부터 봐야 하는지 짚어 주는 MCP 서버입니다.**
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
공장 설비는 혼자 돌지 않습니다. 가공기는 칠러에서 절삭유 냉각수를, 압축기에서 압축공기를, 분전반에서 전기를 받습니다. 그래서 알람이 뜬 설비가 원인이 아닐 때가 많습니다. 원인은 그 설비에 무언가를 공급하는 **상류** 설비에 있고, 상류 설비는 아직 자기 기준에 닿지 않아 **알람이 없을 수도** 있습니다.
|
|
8
|
+
|
|
9
|
+
`factory-graph-mcp`는 설비 대장과 연결 테이블(CSV 두 개)을 읽어, AI가 이 연결을 따라 올라갈 수 있게 도구로 줍니다. Claude, Codex, Cursor처럼 MCP를 지원하는 AI 앱에 붙이면 이렇게 물어볼 수 있습니다.
|
|
10
|
+
|
|
11
|
+
> 1호기랑 2호기에 동시에 스핀들 온도 알람이 떴어. 어디부터 봐야 해?
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
common_upstream(["1호기", "2호기"], kinds=["절삭유 냉각수", "냉각수", "순환수"])
|
|
15
|
+
|
|
16
|
+
CLT-01 절삭유 칠러 1호 두 대 모두 공급 1단계 위
|
|
17
|
+
CT-01 냉각탑 두 대 모두 공급 2단계 위
|
|
18
|
+
P-01 냉각탑 순환 펌프 두 대 모두 공급 3단계 위
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
두 대가 함께 쓰는 냉각 계통은 칠러 1호, 냉각탑, 순환 펌프입니다. 3·4호기가 멀쩡하다면 3·4호기와 함께 쓰는 냉각탑보다 **1·2호기만 쓰는 칠러 1호**를 먼저 보는 것이 맞습니다. 이런 판단은 AI가 이 결과와 현장 상황을 보고 합니다. 이 서버는 연결을 빠짐없이, 틀리지 않게 따라가는 일만 맡습니다.
|
|
22
|
+
|
|
23
|
+
### 알람이 없는 상류
|
|
24
|
+
|
|
25
|
+
상류 설비는 고장 나기 전에 먼저 약해집니다. 칠러의 응축기에 먼지가 끼면 열을 덜 내보내서 냉각수 온도가 천천히 오르지만, 칠러 자기 알람 기준에 닿기 전까지는 조용합니다. 그사이 기준이 더 촘촘한 가공기가 먼저 알람을 띄웁니다. 알람 목록만 보면 칠러는 보이지 않습니다.
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
그래서 알람이 뜬 설비만이 아니라, 그 설비에 무언가를 보내는 설비를 함께 봐야 합니다. 대개 아래 같은 공용 설비입니다.
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
## 도구
|
|
34
|
+
|
|
35
|
+
모든 도구는 읽기 전용입니다. 데이터 파일을 바꾸지 않습니다.
|
|
36
|
+
|
|
37
|
+
| 도구 | 하는 일 |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `find_equipment` | "1호기", "칠러1"처럼 현장에서 부르는 이름으로 설비 번호를 찾는다 |
|
|
40
|
+
| `get_equipment` | 설비 한 대의 정보와 바로 붙은 연결(받는 것, 주는 것) |
|
|
41
|
+
| `trace_upstream` | 한 설비에서 상류를 가까운 순서로 따라간다. 무엇이 어떤 길로 흘러오는지(`path`)까지 |
|
|
42
|
+
| `common_upstream` | 여러 설비에 동시에 이상이 있을 때 함께 쓰는 상류를 묶는다 |
|
|
43
|
+
| `describe_plant` | 불러온 공장의 규모(설비 수, 연결 종류) |
|
|
44
|
+
|
|
45
|
+
서로 주고받는 연결(예: 기계가 온도 조절기에 전원을 주고, 조절기가 기계에 온수를 주는 경우)이 있어도 끝없이 돌지 않습니다. 한 번 본 설비는 다시 따라가지 않고 `cycles_skipped`에 적어 둡니다.
|
|
46
|
+
|
|
47
|
+
### 한국어로 만든 첫 제조 설비 MCP 서버
|
|
48
|
+
|
|
49
|
+
**2026년 11월 24일 기준, 한국어로 만든 첫 제조 설비 MCP 서버입니다.** 해외에는 설비 값을 읽는 OPC UA 서버나 MES 연동 서버가 있지만, 한국어로 된 것은 없었습니다.
|
|
50
|
+
|
|
51
|
+
현장에서는 설비 번호 대신 "1호기", "칠러2", "콤프"라고 부릅니다. 설비 대장의 `aliases` 열에 이런 이름을 적어 두면 AI가 그 말로 설비를 찾습니다. 설비 이름, 연결 종류(전원, 냉각수, 압축공기 …), 도구 안내문까지 한국어로 만들었습니다. 다른 언어로 적은 데이터도 그대로 읽습니다.
|
|
52
|
+
|
|
53
|
+
설비끼리 무엇을 주고받는지, 현장에서 설비를 뭐라고 부르는지까지 담은 한국어 공장 데이터는 공개된 것을 찾기 어렵습니다. **그래서 바로 돌려 볼 수 있는 한국어 예제 공장 데이터를 함께 공개합니다.** MIT 라이선스이니 자기 공장 데이터를 만들 때 틀로 가져다 쓰셔도 됩니다.
|
|
54
|
+
|
|
55
|
+
## 설치와 실행
|
|
56
|
+
|
|
57
|
+
[uv](https://docs.astral.sh/uv/)가 있으면 설치 없이 바로 실행됩니다.
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
uvx --from git+https://github.com/prag-ai/factory-graph-mcp factory-graph-mcp --check
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
`--check`는 데이터를 읽어 요약만 찍고 끝냅니다. 처음에는 들어 있는 예제 공장(CNC 가공 공장, 설비 13대)을 읽습니다.
|
|
64
|
+
|
|
65
|
+
### Claude Desktop
|
|
66
|
+
|
|
67
|
+
`claude_desktop_config.json`에 넣습니다.
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"mcpServers": {
|
|
72
|
+
"factory-graph": {
|
|
73
|
+
"command": "uvx",
|
|
74
|
+
"args": ["--from", "git+https://github.com/prag-ai/factory-graph-mcp", "factory-graph-mcp"]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
내 공장 데이터를 쓰려면 `args` 끝에 `"--data", "/내/공장/폴더"`를 붙입니다.
|
|
81
|
+
|
|
82
|
+
### Claude Code
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
claude mcp add factory-graph -- uvx --from git+https://github.com/prag-ai/factory-graph-mcp factory-graph-mcp
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Codex (OpenAI)
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
codex mcp add factory-graph -- uvx --from git+https://github.com/prag-ai/factory-graph-mcp factory-graph-mcp
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
명령 대신 `~/.codex/config.toml`에 직접 적어도 됩니다.
|
|
95
|
+
|
|
96
|
+
```toml
|
|
97
|
+
[mcp_servers.factory-graph]
|
|
98
|
+
command = "uvx"
|
|
99
|
+
args = ["--from", "git+https://github.com/prag-ai/factory-graph-mcp", "factory-graph-mcp"]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Cursor
|
|
103
|
+
|
|
104
|
+
`.cursor/mcp.json`(프로젝트) 또는 `~/.cursor/mcp.json`(전체)에 Claude Desktop과 같은 형식으로 넣습니다.
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"mcpServers": {
|
|
109
|
+
"factory-graph": {
|
|
110
|
+
"command": "uvx",
|
|
111
|
+
"args": ["--from", "git+https://github.com/prag-ai/factory-graph-mcp", "factory-graph-mcp"]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### 원격(HTTP)으로 띄우기
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
factory-graph-mcp --http --host 0.0.0.0 --port 8000 # 주소: http://<서버>:8000/mcp
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## 내 공장 데이터로 쓰기
|
|
124
|
+
|
|
125
|
+
CSV 두 개가 든 폴더를 `--data`로 주거나 환경 변수 `FACTORY_GRAPH_DATA`에 적습니다. 엑셀에서 「CSV UTF-8」로 저장하면 됩니다.
|
|
126
|
+
|
|
127
|
+
**equipment.csv** — 설비 대장. 한 대에 한 행.
|
|
128
|
+
|
|
129
|
+
| 열 | 필수 | 뜻 | 예 |
|
|
130
|
+
|---|---|---|---|
|
|
131
|
+
| `equipment_id` | ● | 설비 번호 | `CNC-01` |
|
|
132
|
+
| `name` | ● | 이름 | 머시닝 센터 1호기 |
|
|
133
|
+
| `type` | ● | 설비 종류 | 머시닝 센터 |
|
|
134
|
+
| `aliases` | | 현장에서 부르는 이름. `\|`로 여러 개 | `1호기\|머시닝1` |
|
|
135
|
+
| `location` | | 위치 | 가공동 A열 |
|
|
136
|
+
| `note` | | 메모 | |
|
|
137
|
+
|
|
138
|
+
**connections.csv** — 연결 테이블. 한 행이 화살표 하나입니다.
|
|
139
|
+
|
|
140
|
+
| 열 | 필수 | 뜻 | 예 |
|
|
141
|
+
|---|---|---|---|
|
|
142
|
+
| `from_id` | ● | 공급하는 설비 | `CLT-01` |
|
|
143
|
+
| `to_id` | ● | 공급받는 설비 | `CNC-01` |
|
|
144
|
+
| `kind` | ● | 무엇을 공급하는가 | 절삭유 냉각수 |
|
|
145
|
+
| `note` | | 메모 | |
|
|
146
|
+
|
|
147
|
+
`kind`는 자유롭게 적어도 됩니다(전원, 냉각수, 압축공기, 원료, 스팀 …). 같은 것은 같은 말로 적어야 `kinds`로 좁힐 때 걸립니다. 연결이 설비 대장에 없는 번호를 가리키면 서버가 어느 번호인지 알려 주고 시작하지 않습니다.
|
|
148
|
+
|
|
149
|
+
예제 데이터: [`src/factory_graph_mcp/sample/`](src/factory_graph_mcp/sample/)
|
|
150
|
+
|
|
151
|
+
## 이 서버가 하지 않는 일
|
|
152
|
+
|
|
153
|
+
- **원인을 정하지 않습니다.** 어디를 봐야 하는지만 알려 줍니다. 원인 판단과 조치 결정은 현장 확인을 거쳐 사람이 합니다.
|
|
154
|
+
- **설비를 조작하지 않습니다.** 설비나 PLC에 연결하지 않고 CSV만 읽습니다.
|
|
155
|
+
- **센서 값과 알람 이력은 읽지 않습니다.** 연결 구조만 다룹니다. 실시간 값을 읽는 일은 OPC UA 같은 다른 MCP 서버와 함께 쓰면 됩니다.
|
|
156
|
+
|
|
157
|
+
## 개발
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
uv venv && uv pip install -e ".[dev]"
|
|
161
|
+
.venv/bin/python -m pytest
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## 만든 곳
|
|
165
|
+
|
|
166
|
+
[prag-ai](https://prag-ai.com) — 제조 현장의 설비 장애 진단을 AI 에이전트로 만드는 일을 합니다.
|
|
167
|
+
|
|
168
|
+
이 저장소는 그 작업의 한 조각입니다. 전체 진단 시스템은 여러 에이전트가 나눠 맡아, 장애 신고 한 건을 받아 원인 후보와 조치안을 내고 재가동 승인 요청까지 갑니다. 이 시스템은 처음부터 한국어 데이터로 만들고 검증했습니다. 센서와 알람 기록, 정비 기록, 설비 매뉴얼, 사내 메일과 메신저, 현장 사진, 전기·배관 도면이 모두 한국어입니다.
|
|
169
|
+
|
|
170
|
+
진단 시스템과 우리 공장 데이터 적용은 [prag-ai.com](https://prag-ai.com)으로, 사내교육은 macro@prag-ai.com 으로 문의해 주세요.
|
|
171
|
+
|
|
172
|
+
## License
|
|
173
|
+
|
|
174
|
+
MIT
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## English
|
|
179
|
+
|
|
180
|
+
**An MCP server that tells an AI where to look first when a machine alarms.**
|
|
181
|
+
|
|
182
|
+
Machines in a plant depend on each other: a machining center gets coolant from a chiller, compressed air from a compressor, and power from a panel. The machine that raises the alarm is often not the cause. The cause sits **upstream**, and the upstream machine may not have alarmed yet.
|
|
183
|
+
|
|
184
|
+
`factory-graph-mcp` reads two CSV files (an equipment list and a connection table) and gives an AI read-only tools to walk those connections: `find_equipment`, `get_equipment`, `trace_upstream`, `common_upstream`, `describe_plant`. Cycles are handled. A sample CNC machining plant (13 machines) is bundled.
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
uvx --from git+https://github.com/prag-ai/factory-graph-mcp factory-graph-mcp --check
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Korean-first — as of November 24, 2026, the first Korean-language manufacturing MCP server. Equipment names, shop-floor aliases ("1호기", "콤프"), tool descriptions, and the sample plant are in Korean; data in any other language works too. Use your own data with `--data <folder>` (columns are described above). It does not diagnose, control equipment, or read live sensor data — it narrows down where to look.
|
|
191
|
+
|
|
192
|
+
<!-- mcp-name: io.github.prag-ai/factory-graph-mcp -->
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/bin/zsh
|
|
2
|
+
# README 그림 만들기: docs/images/src/*.svg → docs/images/*.png|jpg
|
|
3
|
+
# 필요한 것: resvg, Pretendard·D2Coding TTF 가 든 폴더 (FONTS 환경 변수)
|
|
4
|
+
set -e
|
|
5
|
+
HERE=${0:A:h}
|
|
6
|
+
FONTS=${FONTS:?Pretendard·D2Coding TTF 폴더를 FONTS 에 지정하세요}
|
|
7
|
+
cd $HERE/src
|
|
8
|
+
for svg in *.svg; do
|
|
9
|
+
name=${svg%.svg}
|
|
10
|
+
resvg --skip-system-fonts --use-fonts-dir $FONTS --font-family Pretendard --background white -w 1600 $svg $HERE/$name.png
|
|
11
|
+
if [[ $name != hero ]]; then # 사진이 든 그림은 JPG로
|
|
12
|
+
sips -s format jpeg -s formatOptions 85 $HERE/$name.png --out $HERE/$name.jpg >/dev/null && rm $HERE/$name.png
|
|
13
|
+
fi
|
|
14
|
+
echo "$svg → $(ls $HERE/$name.*)"
|
|
15
|
+
done
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 960 362" font-family="Pretendard">
|
|
2
|
+
<rect width="960" height="362" fill="#ffffff"/>
|
|
3
|
+
<image x="0" y="0" width="474" height="316" preserveAspectRatio="xMidYMid slice" xlink:href="condenser_clean.jpg"/>
|
|
4
|
+
<image x="486" y="0" width="474" height="316" preserveAspectRatio="xMidYMid slice" xlink:href="condenser_clogged.jpg"/>
|
|
5
|
+
<text x="237" y="346" text-anchor="middle" font-size="18" font-weight="600" fill="#1c1c1e">깨끗한 칠러 응축기</text>
|
|
6
|
+
<text x="723" y="346" text-anchor="middle" font-size="18" font-weight="600" fill="#c62828">먼지로 막힌 응축기 — 칠러 알람은 아직 없다</text>
|
|
7
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 500" font-family="Pretendard">
|
|
2
|
+
<defs>
|
|
3
|
+
<marker id="ar" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
|
4
|
+
<path d="M0,0 L10,5 L0,10 z" fill="#3d4b5c"/>
|
|
5
|
+
</marker>
|
|
6
|
+
<marker id="arA" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
|
7
|
+
<path d="M0,0 L10,5 L0,10 z" fill="#b45309"/>
|
|
8
|
+
</marker>
|
|
9
|
+
</defs>
|
|
10
|
+
<rect width="960" height="500" fill="#ffffff"/>
|
|
11
|
+
|
|
12
|
+
<!-- 화살표: 공급 방향(위 → 아래) -->
|
|
13
|
+
<line x1="300" y1="82" x2="300" y2="124" stroke="#3d4b5c" stroke-width="2" marker-end="url(#ar)"/>
|
|
14
|
+
<text x="312" y="108" font-size="14" fill="#5b6b7b">순환수</text>
|
|
15
|
+
<path d="M300,182 L300,206 L160,206 L160,242" fill="none" stroke="#b45309" stroke-width="3" marker-end="url(#arA)"/>
|
|
16
|
+
<path d="M300,206 L440,206 L440,242" fill="none" stroke="#3d4b5c" stroke-width="2" marker-end="url(#ar)"/>
|
|
17
|
+
<text x="312" y="200" font-size="14" fill="#5b6b7b">냉각수</text>
|
|
18
|
+
<path d="M160,316 L160,336 L80,336 L80,372" fill="none" stroke="#b45309" stroke-width="3" marker-end="url(#arA)"/>
|
|
19
|
+
<path d="M160,336 L230,336 L230,372" fill="none" stroke="#b45309" stroke-width="3" marker-end="url(#arA)"/>
|
|
20
|
+
<path d="M440,316 L440,336 L370,336 L370,372" fill="none" stroke="#3d4b5c" stroke-width="2" marker-end="url(#ar)"/>
|
|
21
|
+
<path d="M440,336 L520,336 L520,372" fill="none" stroke="#3d4b5c" stroke-width="2" marker-end="url(#ar)"/>
|
|
22
|
+
<text x="242" y="358" font-size="14" fill="#5b6b7b">절삭유 냉각수</text>
|
|
23
|
+
|
|
24
|
+
<!-- 순환 펌프 -->
|
|
25
|
+
<rect x="210" y="24" width="180" height="58" rx="10" fill="#f3f5f8" stroke="#c9d1db" stroke-width="1.5"/>
|
|
26
|
+
<text x="300" y="49" text-anchor="middle" font-size="15" font-weight="700" fill="#1c1c1e">P-01</text>
|
|
27
|
+
<text x="300" y="71" text-anchor="middle" font-size="14" fill="#5b6b7b">냉각탑 순환 펌프</text>
|
|
28
|
+
<!-- 냉각탑 -->
|
|
29
|
+
<rect x="210" y="124" width="180" height="58" rx="10" fill="#f3f5f8" stroke="#c9d1db" stroke-width="1.5"/>
|
|
30
|
+
<text x="300" y="149" text-anchor="middle" font-size="15" font-weight="700" fill="#1c1c1e">CT-01</text>
|
|
31
|
+
<text x="300" y="171" text-anchor="middle" font-size="14" fill="#5b6b7b">냉각탑 · 1~4호기 공용</text>
|
|
32
|
+
|
|
33
|
+
<!-- 칠러 1호: 먼저 볼 곳 -->
|
|
34
|
+
<rect x="60" y="242" width="200" height="74" rx="10" fill="#fdf1e3" stroke="#b45309" stroke-width="2.5"/>
|
|
35
|
+
<text x="160" y="268" text-anchor="middle" font-size="15" font-weight="700" fill="#b45309">CLT-01 절삭유 칠러 1호</text>
|
|
36
|
+
<text x="160" y="290" text-anchor="middle" font-size="14" fill="#1c1c1e">1·2호기만 공급</text>
|
|
37
|
+
<text x="160" y="308" text-anchor="middle" font-size="14" fill="#1c1c1e">알람 없음</text>
|
|
38
|
+
<!-- 칠러 2호 -->
|
|
39
|
+
<rect x="350" y="242" width="180" height="74" rx="10" fill="#f3f5f8" stroke="#c9d1db" stroke-width="1.5"/>
|
|
40
|
+
<text x="440" y="268" text-anchor="middle" font-size="15" font-weight="700" fill="#1c1c1e">CLT-02 칠러 2호</text>
|
|
41
|
+
<text x="440" y="290" text-anchor="middle" font-size="14" fill="#5b6b7b">3·4호기 공급</text>
|
|
42
|
+
|
|
43
|
+
<!-- 가공기 -->
|
|
44
|
+
<rect x="20" y="372" width="120" height="64" rx="10" fill="#fdecea" stroke="#c62828" stroke-width="2"/>
|
|
45
|
+
<text x="80" y="398" text-anchor="middle" font-size="15" font-weight="700" fill="#c62828">1호기</text>
|
|
46
|
+
<text x="80" y="420" text-anchor="middle" font-size="14" fill="#1c1c1e">스핀들 온도 알람</text>
|
|
47
|
+
<rect x="170" y="372" width="120" height="64" rx="10" fill="#fdecea" stroke="#c62828" stroke-width="2"/>
|
|
48
|
+
<text x="230" y="398" text-anchor="middle" font-size="15" font-weight="700" fill="#c62828">2호기</text>
|
|
49
|
+
<text x="230" y="420" text-anchor="middle" font-size="14" fill="#1c1c1e">스핀들 온도 알람</text>
|
|
50
|
+
<rect x="310" y="372" width="120" height="64" rx="10" fill="#ffffff" stroke="#c9d1db" stroke-width="1.5"/>
|
|
51
|
+
<text x="370" y="398" text-anchor="middle" font-size="15" font-weight="700" fill="#5b6b7b">3호기</text>
|
|
52
|
+
<text x="370" y="420" text-anchor="middle" font-size="14" fill="#5b6b7b">정상</text>
|
|
53
|
+
<rect x="460" y="372" width="120" height="64" rx="10" fill="#ffffff" stroke="#c9d1db" stroke-width="1.5"/>
|
|
54
|
+
<text x="520" y="398" text-anchor="middle" font-size="15" font-weight="700" fill="#5b6b7b">4호기</text>
|
|
55
|
+
<text x="520" y="420" text-anchor="middle" font-size="14" fill="#5b6b7b">정상</text>
|
|
56
|
+
|
|
57
|
+
<!-- 오른쪽: 도구 결과 -->
|
|
58
|
+
<rect x="620" y="24" width="320" height="300" rx="10" fill="#f3f5f8" stroke="#c9d1db" stroke-width="1.5"/>
|
|
59
|
+
<text x="640" y="56" font-size="15" font-weight="700" fill="#1c1c1e">AI가 부른 도구</text>
|
|
60
|
+
<text x="640" y="88" font-family="D2Coding" font-size="15" fill="#0f766e">common_upstream(</text>
|
|
61
|
+
<text x="656" y="110" font-family="D2Coding" font-size="15" fill="#0f766e">["1호기", "2호기"])</text>
|
|
62
|
+
<line x1="640" y1="128" x2="920" y2="128" stroke="#c9d1db" stroke-width="1"/>
|
|
63
|
+
<text x="640" y="156" font-size="14" fill="#5b6b7b">두 대가 함께 쓰는 냉각 계통</text>
|
|
64
|
+
<g font-size="15" font-weight="700" fill="#b45309"><text x="640" y="186" font-family="D2Coding">CLT-01</text><text x="716" y="186">칠러 1호</text><text x="840" y="186">1단계 위</text></g>
|
|
65
|
+
<g font-size="15" font-weight="400" fill="#1c1c1e"><text x="640" y="212" font-family="D2Coding">CT-01</text><text x="716" y="212">냉각탑</text><text x="840" y="212">2단계 위</text></g>
|
|
66
|
+
<g font-size="15" font-weight="400" fill="#1c1c1e"><text x="640" y="238" font-family="D2Coding">P-01</text><text x="716" y="238">순환 펌프</text><text x="840" y="238">3단계 위</text></g>
|
|
67
|
+
<line x1="640" y1="258" x2="920" y2="258" stroke="#c9d1db" stroke-width="1"/>
|
|
68
|
+
<text x="640" y="284" font-size="14" fill="#1c1c1e">냉각탑은 정상인 3·4호기도 쓴다</text>
|
|
69
|
+
<text x="640" y="306" font-size="14" font-weight="700" fill="#b45309">→ 칠러 1호부터 본다</text>
|
|
70
|
+
|
|
71
|
+
<!-- 범례 -->
|
|
72
|
+
<rect x="620" y="384" width="18" height="18" rx="4" fill="#fdecea" stroke="#c62828" stroke-width="1.5"/>
|
|
73
|
+
<text x="646" y="399" font-size="14" fill="#5b6b7b">알람이 뜬 설비</text>
|
|
74
|
+
<rect x="770" y="384" width="18" height="18" rx="4" fill="#fdf1e3" stroke="#b45309" stroke-width="1.5"/>
|
|
75
|
+
<text x="796" y="399" font-size="14" fill="#5b6b7b">먼저 볼 상류</text>
|
|
76
|
+
<rect x="620" y="414" width="18" height="18" rx="4" fill="#f3f5f8" stroke="#c9d1db" stroke-width="1.5"/>
|
|
77
|
+
<text x="646" y="429" font-size="14" fill="#5b6b7b">상류 설비 (화살표는 공급 방향)</text>
|
|
78
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|