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

Class AlwaysAllowPrompter

tutorials/04_permission_system.py:105–108  ·  view source on GitHub ↗

总是允许 —— 用于测试或信任环境。

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected