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

Method decide

tutorials/04_permission_system.py:107–108  ·  view source on GitHub ↗
(self, request: PermissionRequest)

Source from the content-addressed store, hash-verified

105class AlwaysAllowPrompter:
106 """总是允许 —— 用于测试或信任环境。"""
107 def decide(self, request: PermissionRequest) -> PermissionDecision:
108 return PermissionDecision(allowed=True, reason="auto-approved")
109
110
111class AlwaysDenyPrompter:

Callers

nothing calls this directly

Calls 1

PermissionDecisionClass · 0.70

Tested by

no test coverage detected