MCPcopy Create free account
hub / github.com/codeaashu/claude-code / preparePermissionMatcher

Function preparePermissionMatcher

src/tools/FileReadTool/FileReadTool.ts:395–397  ·  view source on GitHub ↗
({ file_path })

Source from the content-addressed store, hash-verified

393 }
394 },
395 async preparePermissionMatcher({ file_path }) {
396 return pattern => matchWildcardPattern(pattern, file_path)
397 },
398 async checkPermissions(input, context): Promise<PermissionDecision> {
399 const appState = context.getAppState()
400 return checkReadPermissionForTool(

Callers

nothing calls this directly

Calls 1

matchWildcardPatternFunction · 0.50

Tested by

no test coverage detected