docs: update mcp-server - #608
Open
1parado wants to merge 1 commit into
Open
Conversation
Reason: MCP LLM_* config can trigger Hub agent rebuild. This can cause Task aborted during startup.
Author
|
Hi,@gaomeng1900. 如果你有时间的话请你看看这个问题这样解决是否合理,如果你有更好的办法请告诉我,谢谢。 相关issue: 我在本地复现了这个问题,原因是 Page Agent Hub 收到 MCP 传来的 LLM_* 配置时,容易触发扩展端 Agent 重建,导致任务 Task aborted. 并且解决方式其实很简单,只需要在Agent端不给page agent配置URL, KEY,MODEL,在浏览器页配置page agent的URL, KEY, MODEL既可稳定调用MCP。我本地也是Windows + Chromium内核的浏览器。Agent端以claudecode为例: 在Agent端如果配置env(模型url,key,model)会出现中断,无响应的现象:
在Agent端只配置MCP信息,不配置模型参数:
为了验证该错误,再次加上env之后:
所以推荐在docs下,将示例改为: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





What
Updates the @page-agent/mcp setup example to omit
LLM_*env variables and directs users to configure the URL, API key, and model in the browser extension.Closes #(issue)
Type
Testing
npm run cipassesValidation run:
npx prettier --check packages/mcp/README.mdpasses.npm run lintpasses.npm run typecheckpasses afternpm run postinstall -w @page-agent/ext.npm testpasses.npm run ciwas attempted with Node v24.16.0 and npm 11.13.0, but the format step failed on existing repository-wide Prettier warnings outside this change.Requirements / 要求