Bind a local HTTP server to 127.0.0.1 for an AI coding agent on a multi-tenant developer workstation or shared build host, and you immediately inherit port-collision races, DNS-rebinding vectors, ambient localhost SSRF exposure, and orphaned daemon processes that outlive the parent IDE session.
When architecting local Model Context Protocol (MCP) bridges—such as glab mcp serve and the GitLab Language Server ( gitlab-lsp --stdio )—the transport layer dictates both the security boundary and the process lifecycle contract. Local HTTP requires opening a TCP listener on the loopback interface, negotiating ephemeral ports, managing CORS preflights, and implementing custom bearer-token handshakes just to verify that a local socket caller is actually the spawning IDE rather than an unprivileged local process probing localhost ports.…