MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / connect

Function connect

atomic-cli/src/remote_sandbox.rs:141–147  ·  view source on GitHub ↗

Connect to whatever serves the daemon socket — never starting one: a remote sandbox has no daemon of its own to start.

(token: Option<&[u8]>)

Source from the content-addressed store, hash-verified

139/// Connect to whatever serves the daemon socket — never starting one: a
140/// remote sandbox has no daemon of its own to start.
141pub async fn connect(token: Option<&[u8]>) -> Result<SandboxChannel, String> {
142 let client = atomic_client::AtomicClient::connect_existing().await?;
143 Ok(InterceptedService::new(
144 client.channel,
145 TokenInterceptor::new(token),
146 ))
147}
148
149fn sandbox_client(
150 channel: SandboxChannel,

Callers 4

exchangeFunction · 0.70
materializeFunction · 0.70
connect_channelFunction · 0.50

Calls

no outgoing calls

Tested by 1