diff --git a/10-systems/hosts/gntasks.md b/10-systems/hosts/gntasks.md index cc4202f..f68bed1 100644 --- a/10-systems/hosts/gntasks.md +++ b/10-systems/hosts/gntasks.md @@ -45,9 +45,9 @@ - **Embeddings:** EMBEDDING_OLLAMA_HOST=http://192.168.1.168:11434 — embed.ok=true in /health (better than other instances, which show embed.ok=false) - **Webclient/auth:** NAVI_WEBCLIENT_ENABLED=false, NAVI_AUTH_ENABLED=false (default deploy shape) -## gntodo / GNexus Tasks (deployed 2026-09-21, updated 2026-09-21 to ac8aefb) +## gntodo / GNexus Tasks (deployed 2026-09-21, updated 2026-09-22 to dcb6976) -- **Repo:** /srv/gntodo (https://git.gnexus.space/git/root/gnexus-tasks.git), HEAD ac8aefb +- **Repo:** /srv/gntodo (https://git.gnexus.space/git/root/gnexus-tasks.git), branch `master`, HEAD dcb6976 - **Stack:** docker compose — `db` (postgres:17-alpine, healthy), `api` (FastAPI, healthy, migrations run at container start), `web` (nginx, SPA + proxy /api/, /auth/, /mcp/ → api) - **Public URL:** https://tasks.gnexus.space (TLS terminates on internal-proxy-vps .226, separate LE cert valid until 2026-12-20; upstream http://192.168.1.179:8135) - **WEB_PORT:** 8135 (container web 0.0.0.0:8135→80) @@ -57,6 +57,7 @@ - **MCP (per-user tokens since ac8aefb, ТЗ 3.10):** https://tasks.gnexus.space/mcp/ (streamable HTTP, JSON-RPC over SSE). Tokens are generated per user in Settings → Токены MCP (plaintext shown once, sha256 hash in DB); agent acts on behalf of the token owner and sees only their data. The old shared MCP_TOKEN from .env is no longer used (empty in .env; old value preserved in pre-update backup). Verified: POST /mcp/ without token → 401 - **Multi-tenancy (since ac8aefb, ТЗ 0.34):** users table, user_id on tasks/projects/tags/attachments/xp/garden, per-user settings, claim on first login; alembic migration f9a0b1c2d3e4 applied 2026-09-21 (e7f8a9b0c1d2 → f9a0b1c2d3e4). Supersedes the earlier "no user_id" architecture note - **Update 2026-09-21 (400e69a → ac8aefb):** multitenancy (ТЗ 0.34), webhooks from gnexus-auth (ТЗ 3.16), mobile UI fixes, GAUTH_WEBHOOK_SECRET in compose. Procedure: backup → git pull --ff-only → .env edit → docker compose up -d --build. Pre-update backup: /srv/gntodo-backups/gntodo-pre-multitenant-20260921-231508.sql.gz + env-pre-multitenant-20260921-231508.bak (contains the old MCP_TOKEN f4993e...) +- **Update 2026-09-22 (42aada2 → dcb6976, rei):** MCP project management (ТЗ 3.10: create_project / update_project / archive_project / restore_project — archive instead of deletion, project note summarization for detailing context) and detailing improvement (dropped title details are moved to description; fallback puts the original title into description when the model shortens it without a description; ТЗ 0.46). Backend-only change: rebuilt only the `api` image (`docker compose build api` — service is named `api`, not backend), `up -d api`; web/db containers untouched. No migrations. Verified: api healthy, /api/health 200 local and public, MCP list_projects works through the new build - **Deploy notes:** built by ayame via peer task (docker compose up -d --build; build takes several minutes on 2 vCPU — run in background with nohup, first attempt hit a 20s command timeout); docker requires sudo (ubuntu user not in docker group); /srv/gntodo owned by root — git operations need sudo - **Verified 2026-09-21 after update (external):** https://tasks.gnexus.space/ → 200 text/html (fresh SPA build), /api/health → {"status":"ok"}, /auth/webhook unsigned → 400 Invalid webhook, /mcp/ without token → 401; signed webhook.test with current secret → 200 (local, via web container) @@ -64,7 +65,7 @@ - The per-user MCP credential for the rei instance was issued by the owner in the web UI (Settings → MCP tokens; plaintext shown once, value not documented here). - Credential reference: gnexus-creds secret titled "gntodo MCP token (tasks.gnexus.space)" (value stored encrypted). -- **Endpoint verified live:** POST https://tasks.gnexus.space/mcp/ with a Bearer authorization header → initialize 200 (serverInfo gntodo 1.30.0, protocol 2025-03-26, SSE response, Mcp-Session-Id header), tools/list → 8 tools: list_projects, get_project, create_task, update_task, complete_task, list_tasks, get_task, list_tags. +- **Endpoint verified live:** POST https://tasks.gnexus.space/mcp/ with a Bearer authorization header → initialize 200 (serverInfo gntodo 1.30.0, protocol 2025-03-26, SSE response, Mcp-Session-Id header). Since dcb6976 (2026-09-22) tools/list → 12 tools: list_projects, get_project, create_project, update_project, archive_project, restore_project, create_task, update_task, complete_task, list_tasks, get_task, list_tags. - **rei (192.168.1.168):** config /home/ubuntu/navi-1/mcp_servers.d/gntodo.json (transport streamable_http, Bearer header, groups read/write), profile server_admin config.json got `gntodo: [read, write]` in tools.agent.mcp and tools.subagent.mcp. Applied via navi.service restart (restart kills the running agent turn — service enters deactivating until the turn ends, then systemd starts the new process; Restart=always). - **Other instances (ayame, tsukiko, pilar, kael, zoe):** same config shape applies; not yet deployed there. @@ -86,5 +87,5 @@ ## Notes - Known non-critical warnings (same as other swarm instances): MCP server 'navi_ui' connect failed (anyio CancelledError), tool_loader.file_error for gmail.py (ModuleNotFoundError: html2text) -- gntodo update procedure: backup (pg_dump + .env copy to /srv/gntodo-backups/) → `cd /srv/gntodo && git pull --ff-only && docker compose up -d --build` (migrations run automatically at api start; build in background via nohup on this 2-vCPU host) +- gntodo update procedure: backup (pg_dump + .env copy to /srv/gntodo-backups/) → `cd /srv/gntodo && git pull --ff-only && docker compose up -d --build` (migrations run automatically at api start; build in background via nohup on this 2-vCPU host). For backend-only changes `docker compose build api && docker compose up -d api` is enough (web image untouched) - MCP token for agents: owner generates in Settings → Токены MCP and distributes; no shared token anymore