pub struct DiscoverResponse {
pub control_plane_url: Option<String>,
pub daemon_url: String,
pub name: String,
}Expand description
Daemon discovery response (no auth required)
JSON schema
{
"description": "Daemon discovery response (no auth required)",
"type": "object",
"required": [
"daemon_url",
"name"
],
"properties": {
"control_plane_url": {
"description": "Daemon-visible URL of this app's control plane.\nMay differ from the user-visible URL in Docker/cloud deployments where\nthe bind address (0.0.0.0) differs from the routable hostname.\nThe MCP bridge uses this URL (instead of the user-provided app_url)\nwhen forwarding wake requests to the daemon, so the daemon can reach\nthe app across network boundaries (e.g. http://order-service:8091).\nPresent only when the client knows its routable hostname (advertise_host\nor non-bind-all control_host).\n",
"type": "string",
"example": "http://order-service:8091",
"nullable": true
},
"daemon_url": {
"description": "External daemon URL (daemon_advertise_url if set, else daemon_url).\nUsed by MCP bridge to discover which daemon to connect to.\n",
"type": "string",
"example": "http://localhost:8095"
},
"name": {
"description": "Connection name for this client",
"type": "string",
"example": "order-service"
}
},
"example": {
"control_plane_url": "http://order-service:8091",
"daemon_url": "http://localhost:8095",
"name": "order-service"
}
}Fields§
§control_plane_url: Option<String>Daemon-visible URL of this app’s control plane. May differ from the user-visible URL in Docker/cloud deployments where the bind address (0.0.0.0) differs from the routable hostname. The MCP bridge uses this URL (instead of the user-provided app_url) when forwarding wake requests to the daemon, so the daemon can reach the app across network boundaries (e.g. http://order-service:8091). Present only when the client knows its routable hostname (advertise_host or non-bind-all control_host).
daemon_url: StringExternal daemon URL (daemon_advertise_url if set, else daemon_url). Used by MCP bridge to discover which daemon to connect to.
name: StringConnection name for this client
Trait Implementations§
Source§impl Clone for DiscoverResponse
impl Clone for DiscoverResponse
Source§fn clone(&self) -> DiscoverResponse
fn clone(&self) -> DiscoverResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoverResponse
impl Debug for DiscoverResponse
Source§impl<'de> Deserialize<'de> for DiscoverResponse
impl<'de> Deserialize<'de> for DiscoverResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&DiscoverResponse> for DiscoverResponse
impl From<&DiscoverResponse> for DiscoverResponse
Source§fn from(value: &DiscoverResponse) -> Self
fn from(value: &DiscoverResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiscoverResponse
impl RefUnwindSafe for DiscoverResponse
impl Send for DiscoverResponse
impl Sync for DiscoverResponse
impl Unpin for DiscoverResponse
impl UnsafeUnpin for DiscoverResponse
impl UnwindSafe for DiscoverResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more