Add TCP support for Meshtastic MCP interface / tests and update docs (#10355)

* Add TCP support for Meshtastic MCP interface / tests and update docs

* Address TCP endpoint validation and error handling in connection

* TCP connection handling and device listing logic

* Fix docstring formatting in normalize_tcp_endpoint function
This commit is contained in:
Ben Meadors
2026-04-30 13:51:29 -05:00
committed by GitHub
co-authored by GitHub
parent 173ac58ed7
commit 21cef8c2e5
9 changed files with 714 additions and 39 deletions
@@ -71,6 +71,10 @@ def open_session(
If `env` is supplied, pio resolves baud and filters from platformio.ini.
Otherwise uses the supplied `baud` and `filters` (default `['direct']`).
"""
# Lazy import to avoid circular: registry imports serial_session.
from . import connection
connection.reject_if_tcp(port, "serial_open")
args = ["device", "monitor", "--port", port, "--no-reconnect"]
effective_filters: list[str]
effective_baud: int = baud