28d3a8cbabfcabcab925c1230ea1962c702498b4
- Add standalone ConfigError(Exception) in errors.py decoupled from runtime TvError - Convert TvConfig from dataclass to frozen Pydantic v2 BaseModel with field_validator hooks using PydanticCustomError - Validate TV_IP and WOL_BROADCAST as IPv4 addresses, PORT in 1..65535, and MAX_VOLUME in 0..100 on both load_config() and direct TvConfig instantiation - Redirect Pydantic ValidationError to ConfigError in TvConfig.__init__ and raise ConfigError from require_bearer_token/require_mac - Declare pydantic explicitly in flake.nix runtimeDeps and pyproject.toml dependencies - Expand tests/test_config.py to cover ConfigError and direct TvConfig validation
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%