MCPcopy Index your code
hub / github.com/codeaashu/claude-code / checkPermissions

Function checkPermissions

src/tools/ConfigTool/ConfigTool.ts:98–107  ·  view source on GitHub ↗
(input: Input)

Source from the content-addressed store, hash-verified

96 : `${input.setting} = ${input.value}`
97 },
98 async checkPermissions(input: Input) {
99 // Auto-allow reading configs
100 if (input.value === undefined) {
101 return { behavior: 'allow' as const, updatedInput: input }
102 }
103 return {
104 behavior: 'ask' as const,
105 message: `Set ${input.setting} to ${jsonStringify(input.value)}`,
106 }
107 },
108 renderToolUseMessage,
109 renderToolResultMessage,
110 renderToolUseRejectedMessage,

Callers

nothing calls this directly

Calls 1

jsonStringifyFunction · 0.85

Tested by

no test coverage detected