MCPcopy Create free account
hub / github.com/Louisym/MiniCC / is_allowed

Method is_allowed

tutorials/18_design_patterns_for_agents.py:550–552  ·  view source on GitHub ↗
(self, tool_name: str)

Source from the content-addressed store, hash-verified

548 return self # 链式调用
549
550 def is_allowed(self, tool_name: str) -> bool:
551 required = self._requirements.get(tool_name, PermissionMode.DangerFullAccess)
552 return self._active_mode >= required
553
554 policy = (
555 PermissionPolicy(PermissionMode.WorkspaceWrite)

Callers 1

lesson_3_builder_patternFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected