Repository navigation
Opt-in MCP rediscovery of a host whose IP changed - #86
Merged
Merged
Conversation
The app rediscovers a moved host (same pinned host key on the phone's own networks), but MCP connects never did, so a device on a phone hotspot was unreachable to agents after each hotspot restart. Adds a per-connection "Find host if its IP changed" toggle, off by default; when on, MCP connects use the same pinned-key rediscovery and save the new address. The pooled session keeps the updated record so the next call reuses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CiTeuLynZ1g6ie1LPaMmMU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MCP connects passed
allowRediscover = false, so a host on a phone hotspot (new random subnet per session) became unreachable to agents until the owner reconnected from the app.allowMcpRediscoverper connection, off by default; toggle "Find host if its IP changed" in the connection editor (enabled only when MCP exec or read is on)connect_failedhint points at the toggle when it's offGenerated by Claude Code