You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Loopback hygiene: the Java attach guidance says address=*:<port>, and the per-session port probe listens on every interface #1389
Two places where the server itself, or its own words to agents, go beyond loopback. Found by a sweep of every listener after #1387.
1. The Java attach guidance tells agents to open the debug port on every interface
The text an agent reads when it wants to attach to a JVM says to start it with -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:<port>. * makes the JVM listen on every network interface, and JDWP has no authentication. A local attach needs loopback only.
Where it is said:
src/server/tool-schemas.ts, the attach_to_process description (every agent sees it)
packages/adapter-java/src/java-adapter-factory.ts, the attach hint
src/skill-content.ts and skills/debugging/SKILL.md
examples/kubernetes/attach-presets.md
Java is the outlier: the Python hint says 127.0.0.1:<port>, Ruby's and Node's defaults are loopback, and docs/java/README.md uses a bare port, which is loopback on JDK 9 and later.
Expected: the guidance says address=127.0.0.1:<port>. Where another machine really has to reach the port, the text says so as a choice the operator makes.
2. The per-session free-port probe listens on every interface for a moment
src/implementations/network-manager-impl.ts finds a free port with server.listen(0, ...) and no host, so Node binds every interface for one tick, once per session. Nothing answers on it, but it is a listener beyond loopback, and on Windows a wildcard listen is what raises a firewall prompt. Every adapter then binds 127.0.0.1, so the probe should test that address: listen(0, '127.0.0.1'), as the COBOL shim's probe already does.
3. A guard, so the class does not come back one line at a time
A check in the unit suite that scans the shipped sources and the agent-facing text for the shapes above (address=*, a listen with no host, 0.0.0.0) against a short recorded list of the places where binding wider is deliberate (the HTTP transport's --bind, the image's MCP_HTTP_BIND). A new occurrence fails until someone adds it to the list on purpose.
Activity