文档中标注的携带 env 配置 MCP 的方式会提示 MCP stdio command `env` is not allowed.
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
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
- I have read and agree to abide by the project's Code of Conduct。
- Dominant language
- Python
- Stars
- 40.7k
- Forks
- 2.9k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 112
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AstrBotDevs/AstrBot
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AstrBotDevs/AstrBot#10033 · 3 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
AstrBotDevs/AstrBot#9999 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AstrBotDevs/AstrBot#9945 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AstrBotDevs/AstrBot#9938 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
AstrBotDevs/AstrBot#9929 · 2 comments ·
All issues in AstrBotDevs/AstrBot
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100