文档中标注的携带 env 配置 MCP 的方式会提示 MCP stdio command `env` is not allowed.

Open Beginner friendly
#8,494 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
docker-compose
Domain
documentation

Research direction

Open https://docs.astrbot.app/use/mcp.html and start with the “一个例子” section. Replace the documented env-command approach with the supported env-field configuration, then verify the example no longer instructs users to run env and matches the current behavior.

Written by the indexing model from the issue text.

Description

bug
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 吗?
  • Yes!
Code of Conduct
Dominant language
Python
Stars
40.7k
Forks
2.9k
Avg merge
1d 5h
Merged PRs (30d)
112

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AstrBotDevs/AstrBot

All issues in AstrBotDevs/AstrBot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.