Add session digest: 2026-06-12 MCP setup, ComfyUI, Git, knowledge graph

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
krustophski 2026-06-12 05:02:26 +03:00
parent b9fcc7764e
commit e15d829978

View file

@ -0,0 +1,144 @@
# 2026-06-12 — Home AI Cluster: MCP Setup, Git, Knowledge Graph
## Session Summary
Long working session: ComfyUI model downloads, MCP infrastructure setup, Forgejo integration,
knowledge graph population, SSH MCP server deployment.
## What Was Done
### 1. ComfyUI Model Downloads
- `check_templates.py` fixed — removed dangerous `wrong_folder` auto-move feature
- Old behavior: detected 20 "misplaced" files, tried to auto-move them → caused `umt5_xxl_fp8_e4m3fn_scaled.safetensors` to move from `text_encoders/` to `vae/` (wrong)
- New behavior: if file exists ANYWHERE in models tree → skip (don't download, don't move)
- Result: 192 models found, 65 downloading via aria2c in tmux session `check_dl` on qore
- Script deployed to `/opt/comfyui/check_templates.py`, runs on every ComfyUI startup
### 2. Git Repository
- Initialized `/Users/post/VScode/network` as git repo
- Created private repo `post/network` on Forgejo: `https://git.4min.pro/post/network`
- Pushed 108 files (qore-admin, comfyui, keenetic scripts, nvr, vpn-ui, etc.)
- `.gitignore` excludes: secrets, model files (*.safetensors etc.), logs, mcp-ssh/hosts.json
- Remote: `http://192.168.170.41:3000/post/network.git`
### 3. Knowledge Graph (Memory MCP)
Populated via `mcp__memory__create_entities` with full cluster topology:
**Entities:** qore, wuu, keenetic, npm, ComfyUI, qore-admin, Ollama, OpenWebUI, Frigate, n8n,
Gitea (now Forgejo), qwen2.5:32b, llama3.3:70b, nomic-embed-text, deepseek-r1:671b-iq2m,
CT100_forgejo (.41), CT102_mcp (.43), CT200_vpn (.254), proxmox (.40),
docker_host (.30), truenas (.22), nextcloud_vm (.50), NPM_service
**Key relations:** qore→RUNS→ComfyUI/Ollama/qore-admin, proxmox→HOSTS_LXC→CT100/CT102/CT200,
docker_host→RUNS→NPM/Frigate/OpenWebUI/n8n, etc.
### 4. Taskmaster Setup
- `.taskmaster/tasks/tasks.json` created manually (parse_prd failed — Perplexity API not set)
- Fixed `.taskmaster/config.json`: research model switched from perplexity to anthropic
- 10 tasks created:
1. GPU models (in-progress: llama3.3:70b downloading)
2. DeepSeek R1 671B CPU model
3. Open WebUI → connect to qore Ollama
4. NPM proxy rules (comfy.4min.pro, qore.4min.pro)
5. Git → push network project to Forgejo ✅ done
6. MCP SSH server (done)
7. MCP Ollama server (done)
8. ComfyUI models completion (in-progress)
9. n8n → ComfyUI workflow
10. qore-admin enhancements
### 5. SSH MCP Server
- Created `mcp-ssh/server.py` — Python MCP server with tools:
- `ssh_exec(node, command)` — execute command on cluster node
- `ssh_upload(local_path, node, remote_path)` — SCP upload
- `ssh_download(node, remote_path, local_path)` — SCP download
- `ssh_list_nodes()` — list available nodes
- Credentials in `mcp-ssh/hosts.json` (gitignored)
- Nodes configured: qore, docker, proxmox, truenas, forgejo, mcp, nextcloud
- Added to Mac `~/.claude.json` mcpServers
- Deployed to CT102 at `/opt/mcp/mcp_ssh_server.py`
- Added to CT102 `/opt/mcp/claude_mcp_config.json`
### 6. Ollama MCP
- Added to Mac `~/.claude.json`:
```json
"ollama": {
"command": "uvx",
"args": ["mcp-ollama"],
"env": {"OLLAMA_HOST": "http://192.168.170.70:11434"}
}
```
- **Note:** needs `uvx mcp-ollama` to be available — verify on next session startup
### 7. AGENTS.md Updated
- Fixed AI Server IP: `.10 "Не настроен"` → `.70 (qore)`
- Added full qore machine section (hardware, services, commands)
- Added Forgejo repos table
### 8. agent-knowledge-base Updated (this repo)
- `locations/qore-ai-server.md` — new file for Ubuntu AI server at .70
(old `qore.md` preserved as Windows machine history)
- `projects/home-ai-cluster/status.md` — full rewrite with 2026-06-12 state
## Key Technical Facts Learned
### Forgejo
- Running as LXC CT100 on Proxmox at 192.168.170.41:3000
- Login: email `herschel.krustophski@gmail.com` / username `post` / password in password manager
- git.4min.pro shows maintenance page (NPM proxy may be misconfigured) but direct API works
- Forgejo v10.0.3 (confirmed from AGENTS.md)
- **Bug note from AGENTS.md:** Creating repo via API without `auto_init:true` → SSH push fails with "Internal Server Error"
- HTTPS on macOS system git doesn't work → use SSH: `git@192.168.170.41:post/network.git`
### MCP Servers — Current State (Mac ~/.claude.json)
- memory, filesystem, sequential-thinking, everything — baseline npm servers
- fetch, git, time — uvx servers
- taskmaster — npx task-master-ai (Node 22 required)
- blender, mcp-unity, maya — 3D apps (need app running)
- **ssh** — new: `python3 /Users/post/VScode/network/mcp-ssh/server.py`
- **ollama** — new: `uvx mcp-ollama` with OLLAMA_HOST=http://192.168.170.70:11434
### CT102 MCP Hub (192.168.170.43)
- Config: `/opt/mcp/claude_mcp_config.json`
- 9 existing servers + newly added ssh server
- Has puppeteer (Chromium) which Mac config doesn't have
### Taskmaster Config Issue
- Default config has research model = perplexity → requires PERPLEXITY_API_KEY
- Fixed to use anthropic for research model
- Still no ANTHROPIC_API_KEY in MCP subprocess env → parse_prd may fail
- Workaround: edit tasks.json directly
## How AI Agents Should Use This System
### For memory between sessions:
1. Read `projects/home-ai-cluster/status.md` (this project)
2. Read `locations/qore-ai-server.md` (AI server details)
3. Read `mcp-servers/index.md` (which MCP to install)
4. Use memory MCP knowledge graph for runtime facts
### For tasks:
- Taskmaster: `.taskmaster/tasks/tasks.json` in `post/network` repo
- Use `get_tasks`, `set_task_status`, `next_task` via MCP
- For task mgmt CLI: `npx task-master-ai` in `/Users/post/VScode/network/`
### For cross-agent communication:
- agent-bus in this repo: write commands to `agent-bus/commands/<machine>/`
- Other agents poll and execute, write results to `agent-bus/results/<machine>/`
## Next Steps
1. Restart Claude Code to load ssh + ollama MCP servers
2. Verify ollama MCP: `uvx mcp-ollama --help`
3. Test SSH MCP: `ssh_exec("qore", "nvidia-smi")`
4. Connect Open WebUI to qore Ollama
5. Add NPM proxy rules for comfy.4min.pro and qore.4min.pro
6. Monitor ComfyUI model downloads (`tail -f /opt/comfyui/check_templates.log`)