kiskaadee 7dbfb529b9 docs(design): apply Stage 7 critic mitigations and Stage 8 nits
- Add keys button allowlist and batch/delay/settle bounds (<=20 keys, <=500ms delay, <=2000ms settle) with 25s ui_lock acquire timeout
- Specify single-owner tv_wake coalescing, 45s WAKE_TIMEOUT for cold boot, 3-4s TLS open_timeout, WS ping/pong keepalive, and failing pending Futures on disconnect
- Default asyncssh known_hosts=None with optional SSH_KNOWN_HOSTS_PATH, fail-closed MCP_BEARER_TOKEN, TransportSecuritySettings ALLOWED_HOSTS, and pair --fetch-ssh-key
- Bind TvManager startup/shutdown and SIGHUP to ASGI lifespan, and sweep orphaned /tmp/lg_smtv_cap_*.jpg on SFTP connect/reconnect
- Add Risks & Mitigations section, align classDiagram and Key Contract Signatures table 1:1, clarify flat get_state dict, and tighten prose style
2026-11-15 07:03:49 -05:00
2026-11-14 21:23:53 -05:00

lg-smtv-mcp

Model Context Protocol (MCP) server for local network control of LG Smart TVs (webOS) over SSAP WebSockets, Wake-on-LAN, and optional Developer Mode SSH screenshot capture.

Setup

nix develop

Provisions Python 3.14, websockets, ruff, and pyright via flake.nix.

Historical PoC & Empirical Notes

Initial feasibility probes and verified device findings (65UR8750PSA / WebOS/4.1.0) are archived in docs/poc/:

Design & RFC

S
Description
In-development Python MCP server for persistent, local-network control of LG webOS Smart TVs through SSAP, with Wake-on-LAN, remote input, state tracking, and optional Developer Mode screenshots.
Readme Unlicense
832 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 99.1%
Nix 0.7%
Shell 0.2%