kiskaadee 8574132baf
Core Architecture & Invariant CI / validate (pull_request) Successful in 17s
test(tv-core): harden boundary coverage, inject wait/sleep seams, and replace polling sleeps
- Inject sleep_fn in PointerClient and wait_fn (EventWaitFn) in TvManager to eliminate monkeypatching asyncio.sleep/wait_for in tests
- Add inclusive upper/lower boundary tests for max_volume (0, 35), send_keys (20 keys, delay_ms=500, settle_ms=2000), and type_text (1, 500 chars)
- Replace blind polling loops and fixed sleeps with _wait_for/_wait_for_state and an _started async context manager guaranteeing mgr.close() cleanup
- Split multi-behavior tests into focused test_<unit>_<behavior> functions and parametrize capture partial-success cases
2026-11-15 19:48:05 -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, mcp, pydantic, asyncssh, uvicorn, httpx, pytest, ruff, and pyright via flake.nix, and configures .githooks/ (ruff check, ruff format --check, pyright, pytest).

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%