Skip to content

MCP: connect falls back to mDNS discovery when no connection is configured - #23

Merged
wardviaene merged 1 commit into
mainfrom
mcp-connect-discover
Oct 9, 2026
Merged

wardviaene merged 1 commit into
mainfrom
mcp-connect-discover

Conversation

@wardviaene

Copy link
Copy Markdown
Member

connect with no connection, no --connection and no BENCHPOD_CONNECTION used to fail with "no connection given" (without mentioning discover). The embeddedci.com docs (embeddedci-server#71) now present BENCHPOD_CONNECTION and BENCHPOD_LA_VOLTAGE as optional for Claude/Codex app users, so the MCP server needs to find the pod itself.

  • Session.connect falls back to embeddedci.benchpod.connection._discover_one() (mDNS) when nothing is configured, and connects to the host:port it finds.
  • No pod, several pods, or mDNS unavailable: ConnectionConfigError naming the pods heard (name + address) and what to pass instead: host[:port], 'usb', 'embeddedci:<device>' (cloud_list_devices lists them), or BENCHPOD_CONNECTION / --connection.
  • connect description, status not-connected hint and server instructions updated (tools_surface.json refreshed: only the connection description changed).
  • README (env vars optional, options table, tool table) and CHANGELOG (Unreleased).
  • Unit tests with discovery mocked: one pod, configured connection skips mDNS, no pod, two pods, zeroconf missing. No hardware used.

No release cut.

🤖 Generated with Claude Code

…gured

connect() with no connection, no --connection and no BENCHPOD_CONNECTION
used to fail with "no connection given". It now finds the one pod on the
LAN over mDNS (as 'discover' does). When discovery finds none or several
pods, or mDNS is unavailable, the error lists the pods it heard and what to
pass instead: host[:port], 'usb', or 'embeddedci:<device>' from
cloud_list_devices.

The connect description, the status hint, the server instructions, the
README and the CHANGELOG say so; unit tests mock discovery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wardviaene
wardviaene merged commit c1e5ec6 into main Oct 9, 2026
20 checks passed
@wardviaene
wardviaene deleted the mcp-connect-discover branch October 9, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant