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

Method check_path

tutorials/18_design_patterns_for_agents.py:818–819  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

816 def __init__(self, workspace: str):
817 self.workspace = workspace
818 def check_path(self, path):
819 return path.startswith(self.workspace)
820 def name(self): return "WorkspaceOnly"
821
822 class AllowList(IsolationStrategy):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected