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

Class AlwaysDenyPrompter

tutorials/04_permission_system.py:111–114  ·  view source on GitHub ↗

总是拒绝 —— 用于测试。

Source from the content-addressed store, hash-verified

109
110
111class AlwaysDenyPrompter:
112 """总是拒绝 —— 用于测试。"""
113 def decide(self, request: PermissionRequest) -> PermissionDecision:
114 return PermissionDecision(allowed=False, reason="auto-denied for safety")
115
116
117class InteractivePrompter:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected