Skip to content

[Bug]无法为tool指令设置admin权限 #2212

@ctrlkk

Description

@ctrlkk

发生了什么

无法为tool指令设置admin权限,普通用户甚至可以停用所有MCP工具!

如何复现?

使用

/alter_cmd tool admin

后,使用普通用户执行/tool ls或者/tool off_all都会生效,这对于依赖MCP的机器人来说是灾难性的!

AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

docker部署,astrbot版本v3.5.22

操作系统

Linux

报错日志

Image Image

你愿意提交 PR 吗?

  • 是的,我愿意提交 PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions