v1.3.2

Ghost
Wed, 25 Mar 2026 03:10:09 +0000

Complete MCP communication pipeline:

Backend HTTP server (axum on localhost:0):

POST /mcp/sessions — list active sessions

POST /mcp/terminal/read — read scrollback (ANSI stripped)

POST /mcp/terminal/execute — send command + marker, capture output

Port written to data_dir/mcp-port at startup

Shares SshService and ScrollbackRegistry with AppState via Clone

Bridge binary (wraith-mcp-bridge):

Speaks JSON-RPC 2.0 over stdio (MCP protocol)

Translates tool calls to HTTP requests against running Wraith

Implements initialize, tools/list, tools/call

Exposes: terminal_read, terminal_execute, list_sessions

Reads MCP port from data_dir/mcp-port

Auto-config:

PTY spawn injects WRAITH_MCP_BRIDGE env var

SshService and ScrollbackRegistry derive Clone for sharing

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com