Blame

ab518b Claude (MCP) 2026-03-15 06:11:00
[mcp] Document VPS deployment progress through V2
1
---
2
category: reference
3
tags: [dev, vps, progress]
4
last_updated: 2026-03-15
5
confidence: high
6
---
7
8
# VPS Deployment Progress
9
10
Tracking the implementation of robot.wtf on the Debian 12 / Proxmox VM. See [[Tasks/VPS_Phases]] for the full plan.
11
12
## Completed
13
14
### V0: VM Infrastructure (2026-03-15)
15
- Ansible playbook provisioning: base packages, `/srv` directory structure, Python venv, crypto keys, SQLite schema
16
- RS256 signing keypair + EC P-256 ATProto client JWK generated
17
- Playbook idempotent, tested via full re-run
18
- VPS at 192.168.77.107 (WireGuard backplane), Caddy on separate host
19
20
### V1: Otterwiki on Caddy (2026-03-15)
21
- **V1-1/V1-2:** Data access layer ported from DynamoDB to SQLite (21 files, 2399 lines, 55 tests)
22
- **V1-3:** Gunicorn entry points, systemd units, Ansible deploy role (4 services on ports 8000-8003)
23
- **V1-4:** Caddy wildcard config with on-demand TLS, `/api/internal/check-slug` for cert validation
24
- **V1-5:** Full stack smoke tested — otterwiki serving pages, MCP connected via Claude Code
25
26
Key findings during V1:
27
- `RETAIN_PAGE_NAME_CASE = True` required (otterwiki lowercases filenames without it)
28
- `TREAT_UNDERSCORE_AS_SPACE_FOR_TITLES = True` for clean URLs
29
- ManagementMiddleware needed `/api/v1/*` and `/api/internal/*` passthroughs
30
- numpy/chromadb X86_V2 issue on the Proxmox VM (semantic search deferred)
31
32
### VS-1: ATProto OAuth Spike (2026-03-15)
33
- Bluesky cookbook demo adapted for robot.wtf
34
- Real Bluesky login completed end-to-end
35
- ATProto client JWK must be EC P-256 / ES256 (not RSA) — V0 playbook corrected
36
- DPoP nonce handling works, identity-only scope validated
37
- Findings at [[Dev/VS-1_ATProto_Spike]]
38
39
### V2: Migrate Dev Wiki (2026-03-15)
40
- Dev wiki cloned from dev.wikibot.io via git smart HTTP (`/.git/info/refs`)
41
- Running at https://dev.robot.wtf/ with MCP connected
42
- 3gw wiki NOT migrated (DNS CNAME exception keeps it on home server)
43
- MCP bearer token auth working for Claude Code
44
45
## In Progress
46
47
### VS-2: MCP OAuth for Claude.ai
48
- Making FastMCP's OAuth provider persistent (SQLite-backed) so Claude.ai doesn't lose auth on restart
49
- Caddy routes updated to proxy OAuth paths to MCP sidecar
50
- Manager agent running in otterwiki-mcp repo
51
52
### V3: ATProto OAuth Production Auth Service
53
- Evolving VS-1 spike into production auth service on port 8003
54
- Platform JWT cookie on `.robot.wtf` domain
55
- Signup flow (choose username from Bluesky handle)
56
- Manager agent running in robot.wtf repo
57
58
## Not Started
59
60
- V4: Management API + Wiki Lifecycle
61
- V5: MCP OAuth AS (Claude.ai — production, replacing VS-2 stub)
62
- V6: Frontend + Landing Page
63
- V7: Semantic Search + Operational Hardening
64
65
## Architecture Notes
66
67
| Service | Port | Process | Status |
68
|---------|------|---------|--------|
69
| Otterwiki WSGI | 8000 | Gunicorn | Running |
70
| MCP sidecar | 8001 | uvicorn (FastMCP) | Running |
71
| Platform API | 8002 | Gunicorn | Running (stubs) |
72
| Auth service | 8003 | Gunicorn | Running (stubs) |
73
74
All deployed via Ansible (`ansible/deploy.yml`). Config in `/srv/data/robot.env` and `/srv/data/settings.cfg`, both generated from Jinja2 templates with `force: false` (won't overwrite existing secrets).
75
76
Repos:
77
- `robot.wtf` — platform code (Ansible, middleware, auth, management)
78
- `otterwiki-mcp` — standalone MCP server (FastMCP, 12 tools, dual auth)
79
- `otterwiki` — upstream fork (`wikibot-io` branch: lifecycle hooks, proxy auth, platform mode)
80
- `otterwiki-api` — REST API plugin
81
- `otterwiki-semantic-search` — semantic search plugin (ChromaDB/FAISS)