MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / apply

Function apply

packages/hosts/mcp-apps-shell/src/shell/tools-proxy.ts:242–257  ·  view source on GitHub ↗
(_target, _thisArg, args: unknown[])

Source from the content-addressed store, hash-verified

240 return nest([...path, key], role);
241 },
242 apply(_target, _thisArg, args: unknown[]) {
243 const [only] = args;
244 if (
245 path.length === 1 &&
246 role === undefined &&
247 args.length === 1 &&
248 typeof only === "string"
249 ) {
250 return nest(path, only);
251 }
252 return request({
253 path,
254 args,
255 ...(role === undefined ? {} : { role }),
256 });
257 },
258 });
259
260 return nest([], undefined) as Record<string, unknown>;

Callers 2

handleSaveFunction · 0.50
initDrizzleClientFunction · 0.50

Calls 2

nestFunction · 0.85
requestFunction · 0.50

Tested by

no test coverage detected