MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildSuggestions

Function buildSuggestions

src/tools/WebFetchTool/WebFetchTool.ts:399–408  ·  view source on GitHub ↗
(ruleContent: string)

Source from the content-addressed store, hash-verified

397} satisfies ToolDef<InputSchema, Output>)
398
399function buildSuggestions(ruleContent: string): PermissionUpdate[] {
400 return [
401 {
402 type: 'addRules',
403 destination: 'localSettings',
404 rules: [{ toolName: WEB_FETCH_TOOL_NAME, ruleContent }],
405 behavior: 'allow',
406 },
407 ]
408}

Callers 1

checkPermissionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected