docs: refine client surfaces — MCP-preferred for external agents, HTTP/SSE for human clients (web GUI, Android)

This commit is contained in:
adm committed 2026-11-25 19:30:59 +01:00
1 parent b63e58da3c
commit 08ce62bdec
1 file changed
+11 -7
+11 -7
View File
@@ -315,13 +315,17 @@ Protocol-first: harden and version the existing client contract (session/turn JS
+ SSE, uploads, stats, settings) and give non-browser clients real auth, then build
every surface as a client/adapter of that one contract — the web GUI already is one.
- **Android:** cheapest first step is an installable PWA / thin WebView shell over
the existing mobile-first GUI; a native Kotlin/Compose app is a separate codebase
and only worth it for native capabilities (notifications, share intents, offline).
- **External agents:** an MCP server adapter (e.g. `rmcp`, stdio or streamable-HTTP
mounted on the existing axum router) exposing turn/sessions/stats/upload as tools;
the OpenAI/Anthropic HTTP endpoints already let LLM-style clients drive it today.
(SCP is file copy, not an agent protocol; MCP / ACP / A2A are the relevant ones.)
- **External agents (MCP preferred):** an MCP server adapter (`rmcp`; stdio for local
harnesses, streamable-HTTP on the existing axum router for remote) exposing a small
closed tool set mirroring the GUI: session create/list/send/history/rename/delete,
settings get/set, stats, upload. `session.send` returns the final answer + tool
trajectory + usage (MCP is request/response); live token streaming stays a GUI /
HTTP-SSE feature, with optional MCP progress notifications.
- **Human clients (web GUI, Android):** the same JSON contract over HTTP + SSE — not
MCP. One core, two wire adapters: MCP JSON-RPC for agents, HTTP/SSE for humans.
Android's cheapest first step is an installable PWA / thin WebView shell over the
existing mobile-first GUI; native Kotlin/Compose only for native capabilities
(notifications, share intents, offline).
## License and credits