MCPcopy Index your code
hub / github.com/coder/mux / registerObject

Method registerObject

src/node/services/ptc/runtime.ts:42–42  ·  view source on GitHub ↗

* Register an object with methods (for namespaced tools like mux.bash). * Each method on the object becomes callable from the sandbox.

(name: string, obj: Record<string, (...args: unknown[]) => Promise<unknown>>)

Source from the content-addressed store, hash-verified

40 * Each method on the object becomes callable from the sandbox.
41 */
42 registerObject(name: string, obj: Record<string, (...args: unknown[]) => Promise<unknown>>): void;
43
44 /**
45 * Set memory/CPU limits for the sandbox.

Callers 2

registerMethod · 0.65

Implementers 1

QuickJSRuntimesrc/node/services/ptc/quickjsRuntime.t

Calls

no outgoing calls

Tested by

no test coverage detected