Server
Run TnsAI as a backend — WebSocket API, session management, human-in-the-loop tool approval.
Pages
- WebSocket — The v1 WebSocket protocol.
- Tool Approval — Human-gated destructive operations.
- Advanced — Scaling, persistence, multi-tenant deployment.
For production RAG pipelines, see RAG Pipeline.
Server tools
ServerFileTools, ServerGitTools, and ServerShellTools are the
backend POJO tools. TnsAI 0.14.0 (TnsAI@11035829, TAN-4383)
drains ServerShellTools stdout and stderr on separate threads
before waitFor, matching ServerGitTools. Maven Central 0.13.0
read both pipes only after the process exited, so any command that
filled the OS pipe buffer (~16–64 KB) hung until timeout and returned
{"error":"Command timed out"}. Maven Central 0.14.1 drains first.
MCP Advanced Features
Composio integration, database MCP clients, Goose interoperability, Stripe payments, testing utilities, and OAuth authentication.
WebSocket Protocol
The Server module is a Javalin-based backend that bridges frontends (CLI, IDE, web) to the TnsAI agent framework via WebSocket. It provides multi-agent sessions, real-time streaming, risk-based tool approval, hybrid RAG search, and an audit trail.