microsoft-foundry / microsoft-foundry/foundry-samples

Multiagent with MCP tool approval giving "ApprovalStorage is required to load approval request."

Open
#747 5 comments 0 reactions 10 assignees View on GitHub

@dooriya is already working on this.

Since Aug 13, 2026.

bug question
Dominant language
Bicep
Stars
445
Forks
494
Avg merge
11h 35m
Merged PRs (30d)
38

Description

I am trying to create a sample Foundry hosted agent with WorkflowBuilder as given below:

workflow_agent = (
        WorkflowBuilder(
            start_executor=summary_executor,
            output_executors=[change_executor],
        )
        .add_edge(summary_executor, change_executor)
        .build()
        .as_agent()
    )

    server = ResponsesHostServer(workflow_agent)
    server.run()

I ahve added each agent with their respective MCP tools with approval_mode.

mcp_tool = MCPStreamableHTTPTool(
            name="HostedMCP",
            url=mcp_url,
            load_prompts=False,
            allowed_tools=allowed_tools,
            approval_mode={
                "always_require_approval": always_require_approval,
                "never_require_approval": never_require_approval,
            },
        )

When trying to run the code in local venv, I am getting the error "ApprovalStorage is required to load approval request.". I see the .function_approval/approval_requests.json is also not creating any approval requests in the WorkFlowBuilder introduction.

FYI, When I use a single agent and use the same MCP, I am getting the approval saved in the JSON and approvals works as expected

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.