cf-integration 0.1.0

Integration and conformance harness for ContextForge control-plane and data-plane services
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Public MCP route shape and backend identity expectation.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum GatewayTopology {
    /// `/mcp` routes directly to the control plane.
    Direct,
    /// `/servers/{virtual_host_id}/mcp` routes through the dataplane.
    Dataplane,
}

impl GatewayTopology {
    /// Returns whether responses require trusted dataplane backend identity.
    #[must_use]
    pub(crate) const fn requires_dataplane(self) -> bool {
        matches!(self, Self::Dataplane)
    }
}