MCPcopy Create free account
hub / github.com/cloudflare/computer / createShellServer

Function createShellServer

packages/rpc/src/server.ts:320–322  ·  view source on GitHub ↗
(runner: RunnerLike)

Source from the content-addressed store, hash-verified

318// Construct a ShellRPC bound to a Runner. computerd holds the only
319// Runner today; tests can pass a fake that implements RunnerLike.
320export function createShellServer(runner: RunnerLike): ShellRPC {
321 return new ShellRPCServer(runner);
322}
323
324// Construct the composite WorkspaceRPC. The wire serves this on
325// /ws so clients reach `.sync` and `.shell` through one session.

Callers 2

createWorkspaceServerFunction · 0.85
startShellHarnessFunction · 0.85

Calls

no outgoing calls

Tested by 1

startShellHarnessFunction · 0.68