[MCP] The mcp setting headers in Agent Builder does not take effect
mcp.json
generated code
As you can see above, the mcp initialization logic in the generated code does not carry headers.
Similarly, the mcp tool call returns 401, which proves that the headers setting is not working.
So how do I set the headers?
Thank you for bringing this issue to our attention. We will fix it in the next release.
Is there a workaround?
Is there a workaround?
You can use "env" instead of "headers" in the MCP config
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. As it is labeled with bug, it will be manually handled