microsoft / microsoft/foundry-dev-tools

[MCP] The mcp setting headers in Agent Builder does not take effect

Open
#243 4 comments 0 reactions 1 assignee View on GitHub

@XiaofuHuang is already working on this.

Since Jul 21, 2025.

bug needs more info no recent activity
Dominant language
JavaScript
Stars
2.1k
Forks
260
Avg merge
42m
Merged PRs (30d)
29

Description

mcp.json
Image

generated code
Image

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?

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.