Skip to main content

Module dev_server

Module dev_server 

Source
Expand description

POST /api/v1/agent/dev_server/register — backs the RegisterDevServer MCP tool. See docs/specs/SPEC_NATIVE_CONTAINER_DEV_PROXY_2026_09_19.md.

Identity is verified the same way ClosePane/UIClick/UIQuery do (ui_handlers::verified_block_id) — the calling agent proves it IS auth.agent_id via its own AGENTMUX_JEKT_KEY signature; there is no client-supplied agent id to spoof. The container’s internal dev-proxy network address is then resolved server-side from THAT agent’s own container (ContainerManager::agent_network_ip) — never a client-supplied address, so there is nothing left to spoof there either.

Functions§

browse_url 🔒
What a browser should be pointed at. Lowercased to match the actual routing key (DevProxyRegistry::routing_key lowercases both halves), not necessarily agent_id’s on-disk casing. The port is the one the proxy bound, which is not 8090 when another instance on this host holds it.
container_of_pane 🔒
The container the verified pane block_id runs in.
handle_register_dev_server 🔒
remember 🔒
What is kept up for project in container after this registration: the spec if there is a command; registered again without one, nothing.