MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / setPermission

Function setPermission

packages/node-sdk/src/rpc.ts:333–340  ·  view source on GitHub ↗
(input: SetSessionPermissionRpcInput)

Source from the content-addressed store, hash-verified

331 }
332
333 async setPermission(input: SetSessionPermissionRpcInput): Promise<void> {
334 const rpc = await this.getRpc();
335 return rpc.setPermission({
336 sessionId: input.sessionId,
337 agentId: this.interactiveAgentId,
338 mode: input.mode,
339 });
340 }
341
342 async setPlanMode(input: SetSessionPlanModeRpcInput): Promise<void> {
343 const rpc = await this.getRpc();

Callers

nothing calls this directly

Calls 2

getRpcMethod · 0.45
setPermissionMethod · 0.45

Tested by

no test coverage detected