pub struct RegisterDevServerRequest {
pub auth: UiAutomationAuth,
pub project: String,
pub port: u16,
}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.
auth is reused unchanged from UiAutomationAuth, same as
ClosePaneRequest above — 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 backend address the routing table actually
stores is resolved server-side from THAT agent’s own container (never a
client-supplied address) — this request only ever supplies the PORT the
caller’s own dev server is listening on inside its own container.
Fields§
§auth: UiAutomationAuth§project: StringProject name — becomes part of the routing hostname,
<project>-<agent_id>.localhost. Lowercased server-side before use;
should be a short, hostname-safe slug.
port: u16Port the dev server is listening on INSIDE the caller’s own container (container-internal — never a host-published port).
Trait Implementations§
Source§impl Clone for RegisterDevServerRequest
impl Clone for RegisterDevServerRequest
Source§fn clone(&self) -> RegisterDevServerRequest
fn clone(&self) -> RegisterDevServerRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more