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

Class PermissionRequest

tutorials/04_permission_system.py:75–80  ·  view source on GitHub ↗

权限请求 —— 告诉用户 "谁要做什么"。

Source from the content-addressed store, hash-verified

73
74@dataclass(frozen=True)
75class PermissionRequest:
76 """权限请求 —— 告诉用户 "谁要做什么"。"""
77 tool_name: str # 哪个工具在请求
78 input_preview: str # 工具要做什么(参数预览)
79 current_mode: PermissionMode # 当前的权限等级
80 required_mode: PermissionMode # 需要的权限等级
81
82
83@dataclass(frozen=True)

Callers 1

authorizeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected