Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
ADR 0142: Allow non-loopback HTTP MCP endpoints with explicit risk disclosure
Context
Self-hosted MCP servers often sit on a private LAN behind plain HTTP, and the MCP
client already speaks streamable HTTP, yet validation rejected every non-loopback
http:// URL, including servers the user had deliberately configured. Removing
that restriction must not remove the plugin permission or the egress boundary,
because an HTTP endpoint observes credentials, tool arguments, and results without
confidentiality or integrity.
Decision
- User-owned and plugin-declared MCP servers accept absolute
http://andhttps://URLs; unsupported schemes and malformed URLs stay invalid. - The user MCP editor warns that credentials and tool calls may be intercepted, and saving a user-owned endpoint is that user's consent.
- A plugin-declared HTTP MCP server still requires
mcp.server.remoteand a host covered bymanifest.net.domains, with the same warning in review surfaces. - The MCP HTTP client follows no redirect automatically, allows five hops, only HTTP(S) targets, and applies the endpoint policy to every hop.
- Marketplace catalog and package download policy is unchanged; non-loopback HTTP package downloads stay refused.
Consequences
- LAN-hosted MCP servers work without TLS termination.
- The network allowlist stays authoritative for plugin egress, redirect targets included.
- The host can disclose an unencrypted connection but cannot make it safe, so trusted network placement remains an operational requirement.