d804ee933dcf7543ea13f12b61fc3b8298c7e3ae
- Drop SsdpAliveListener/SsdpListener and wol.py; move send_wol into TvManager and rely on asymmetric backoff (2s -> 5s -> 15s -> 30s)
- Consolidate tv_core protocols to WebSocketTransport and CaptureTransport, aligning the classDiagram 1:1
- Delegate HTTP serving to FastMCP built-in streamable_http_app()/TransportSecuritySettings wrapped by minimal Bearer middleware
- Couple CaptureClient SSH/SFTP teardown to STANDBY_OFFLINE (1008) and bound SSH/SFTP operation timeouts to 3-4s (< 10s ui_lock budget)
- Apply PAIRING_REQUIRED uniformly across all SSAP-backed tools and specify atomic os.replace .client_key.json ({ip: client_key}) reload on backoff/SIGHUP
- Remove press_enter_first from type_text and strip implementation details from Goals and CUJ 2
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/:
- docs/poc/capabilities.md — Verified SSAP/DIAL endpoints, deep-link formats,
401boundaries, and Developer Mode SSH screenshot pipeline. - docs/poc/crunchyroll-e2e-experiment.md — Timed end-to-end vision-loop experiment (Crunchyroll → Attack on Titan Ep 1) and latency findings.
- docs/poc/discover.py — SSDP multicast probe (
--allto list DIAL/DLNA/SSAP services and MAC address). - docs/poc/tv_test.py — One-shot SSAP pairing + command runner.
Design & RFC
- docs/designs/lg-smtv-mcp.md — Architecture RFC for the
lg-smtv-mcpserver.
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%