What happened / 发生了什么
https://docs.astrbot.app/use/mcp.html 中描述携带env配置MCP的方式为使用 env 命令,然而现在使用该命令进行配置会提示 MCP stdio command env is not allowed. Allowed commands: bun, bunx, deno, node, npm, npx, pnpm, py, python, python3, uv, uvx, yarn. Set ASTRBOT_MCP_STDIO_ALLOWED_COMMANDS to override this list if you trust another launcher. (tools: null) 。经过翻阅代码发现目前已经支持通过 env 字段配置MCP的方式,希望能够将文档进行修改以同步变更。
Reproduce / 如何复现?
按照 https://docs.astrbot.app/use/mcp.html#%E4%B8%80%E4%B8%AA%E4%BE%8B%E5%AD%90 中写到的携带环境变量方式配置 MCP。
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
docker compose 部署 soulter/astrbot:latest
OS
Linux
Logs / 报错日志
无
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct
What happened / 发生了什么
https://docs.astrbot.app/use/mcp.html 中描述携带env配置MCP的方式为使用
env命令,然而现在使用该命令进行配置会提示MCP stdio commandenvis not allowed. Allowed commands: bun, bunx, deno, node, npm, npx, pnpm, py, python, python3, uv, uvx, yarn. Set ASTRBOT_MCP_STDIO_ALLOWED_COMMANDS to override this list if you trust another launcher. (tools: null)。经过翻阅代码发现目前已经支持通过env字段配置MCP的方式,希望能够将文档进行修改以同步变更。Reproduce / 如何复现?
按照 https://docs.astrbot.app/use/mcp.html#%E4%B8%80%E4%B8%AA%E4%BE%8B%E5%AD%90 中写到的携带环境变量方式配置 MCP。
AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器
docker compose 部署 soulter/astrbot:latest
OS
Linux
Logs / 报错日志
无
Are you willing to submit a PR? / 你愿意提交 PR 吗?
Code of Conduct