pub struct RegisterDevServerRequest {
pub auth: UiAutomationAuth,
pub project: String,
pub port: u16,
pub command: Option<String>,
pub dir: Option<String>,
}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).
command: Option<String>The shell command that starts the server (e.g. npm run dev). With it AgentMux starts the
server when it isn’t listening yet and starts it again, and re-registers it, whenever the
container is recreated; without it the registration lasts only as long as the container.
dir: Option<String>The folder the command runs in: /workspace/... or relative to /workspace (default /workspace).
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